コード例 #1
0
LONGBOW_TEST_CASE(Object, athenaLRUContentStore_IsValid)
{
    AthenaLRUContentStore *instance = _athenaLRUContentStore_Create(NULL);
    assertTrue(athenaLRUContentStore_IsValid(instance), "Expected athenaLRUContentStore_Create to result in a valid instance.");

    _athenaLRUContentStore_Release((AthenaContentStoreImplementation *) &instance);
    assertFalse(athenaLRUContentStore_IsValid(instance), "Expected athenaLRUContentStore_Release to result in an invalid instance.");
}
コード例 #2
0
ファイル: athena_LRUContentStore.c プロジェクト: PARC/Athena
void
athenaLRUContentStore_AssertValid(const AthenaLRUContentStore *instance)
{
    assertTrue(athenaLRUContentStore_IsValid(instance),
               "AthenaLRUContentStore is not valid.");
}