public void At_6_returns_morning() { ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(6); DayPartProvider tested = new DayPartProvider(current_hour_provider); DayPart result = tested.GetDayPart(); Assert.AreEqual(DayPart.Morning, result); }
public void At_12_returns_afternoon() { ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(12); DayPartProvider tested = new DayPartProvider(current_hour_provider); DayPart result = tested.GetDayPart(); Assert.AreEqual(DayPart.Afternoon, result); }
public void At_20_returns_night() { ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(20); DayPartProvider tested = new DayPartProvider(current_hour_provider); DayPart result = tested.GetDayPart(); Assert.AreEqual(DayPart.Night, result); }