public void When_Greeted_After_12_Greets_GoodEvening() { //Arrange var timeService = new EveningTimeService(); var greeter = new Greeter(timeService); var name = "Magesh"; var expectedResult = "Hi Magesh, Good Evening"; //Act var greetMsg = greeter.Greet(name); //Assert Assert.AreEqual(expectedResult, greetMsg); }
public void When_Greeted_After_12_Greets_GoodEvening() { //Arrange var timeService = new EveningTimeService(); var greeter = new Greeter(timeService); var name = "Magesh"; var expectedResult = "Hi Magesh, Good Evening"; //Act var greetMsg = greeter.Greet(name); //Assert Assert.AreEqual(expectedResult, greetMsg); }