void RuntimeErrorStub_CheckLastError(void) { TEST_ASSERT_EQUAL_STRING("No Error", RuntimeErrorStub_GetLastError()); TEST_ASSERT_EQUAL(-1, RuntimeErrorStub_GetLastParameter()); RuntimeErrorStub_Reset(); return; }
TEST_F(LedDriver, OutOfBoundsProducesRuntimeError) { LedDriver_TurnOn(-1); ASSERT_STREQ("LedDriver: out-of-bounds LED", RuntimeErrorStub_GetLastError()); ASSERT_EQ(-1, RuntimeErrorStub_GetLastParameter()); }
void RuntimeErrorStub_ConfirmLastError(const char * message) { TEST_ASSERT_EQUAL_STRING(message, RuntimeErrorStub_GetLastError()); RuntimeErrorStub_Reset(); return; }