Example #1
0
void createFakeTimeController()
{
	Time time;
	TimerServiceFake timeService;

	timeService.GetTime(&time);

	ASSERT_EQUAL(Time::UNKNOWN, time.GetMinuteOfDay());
	ASSERT_EQUAL(Time::UNKNOWN, time.GetDayOfWeek());
}
Example #2
0
void setFakeTimeController()
{
	Time time;
	TimerServiceFake timeService;

	timeService.SetMinute(142);
	timeService.SetDayOfWeek(Time::SUNDAY);

	timeService.GetTime(&time);

	ASSERT_EQUAL(142,time.GetMinuteOfDay());
	ASSERT_EQUAL(Time::SUNDAY, time.GetDayOfWeek());

}