Ejemplo n.º 1
0
        // [InlineData(null, "Hello!")] // Assumption: string will not be null
        public void GetGreeting(string personName, string expectedGreeting)
        {
            // Arrange
            ChallengesSet01 challenger = new ChallengesSet01();

            // Act
            string actual = challenger.GetGreeting(personName);

            // Assert
            Assert.Equal(expectedGreeting, actual);
        }
        // [InlineData(null, "Hello!")] // Assumption: string will not be null
        public void GetGreeting(string personName, string expectedGreeting) //ChallengesWithTest01.cs string was named nameOfPerson
        {
            // Arrange
            ChallengesSet01 challenger = new ChallengesSet01();

            // Act
            string actual = challenger.GetGreeting(personName);

            // Assert
            Assert.Equal(expectedGreeting, actual);
        }