void createFakeTimeController() { Time time; TimerServiceFake timeService; timeService.GetTime(&time); ASSERT_EQUAL(Time::UNKNOWN, time.GetMinuteOfDay()); ASSERT_EQUAL(Time::UNKNOWN, time.GetDayOfWeek()); }
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()); }