public void GivenEvening_ThenEveningMessage(int hour) { // Arrange var eveningTime = new TestTimeManager(); eveningTime.SetDateTime(new DateTime(2017, 7, 13, hour, 0, 0)); var messageUtility = new MessageUtility(eveningTime); // Act var message = messageUtility.GetMessage(); // Assert Assert.Equal("Good evening", message); }
public void GivenAfternoon_ThenAfternoonMessage(int hour) { // Arrange var afternoonTime = new TestTimeManager(); afternoonTime.SetDateTime(new DateTime(2017, 7, 13, hour, 0, 0)); var messageUtility = new MessageUtility(afternoonTime); // Act var message = messageUtility.GetMessage(); // Assert Assert.Equal("Good afternoon", message); }