Beispiel #1
0
LONGBOW_TEST_CASE(Object, parcStopwatch_IsValid)
{
    PARCStopwatch *instance = parcStopwatch_Create();
    assertTrue(parcStopwatch_IsValid(instance), "Expected parcStopwatch_Create to result in a valid instance.");

    parcStopwatch_Release(&instance);
    assertFalse(parcStopwatch_IsValid(instance), "Expected parcStopwatch_Release to result in an invalid instance.");
}
Beispiel #2
0
void
parcStopwatch_AssertValid(const PARCStopwatch *instance)
{
    assertTrue(parcStopwatch_IsValid(instance),
               "PARCStopwatch is not valid.");
}