Esempio n. 1
0
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());
}