Ejemplo n.º 1
0
        public void When_Greeted_Before_12_Greets_GoodMorning()
        {
            //Arrange
            var timeService    = new MorningTimeService();
            var greeter        = new Greeter(timeService);
            var name           = "Magesh";
            var expectedResult = "Hi Magesh, Good Morning";
            //Act
            var greetMsg = greeter.Greet(name);

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

            //Assert
            Assert.AreEqual(expectedResult, greetMsg);
        }