Ejemplo n.º 1
0
        public void PersonFullName_FullNameReverse_Returns_Correct_String()
        {
            // Arrange
            string firstName = "John";
            string lastName  = "Doe";

            // Act
            var personFullName = new PersonFullName(firstName, lastName);

            // Assert
            Assert.Equal("Doe, John", personFullName.FullNameReverse);
        }
Ejemplo n.º 2
0
        public void PersonFullName_Given_Valid_Names_Is_Valid()
        {
            // Arrange
            string firstName = "John";
            string lastName  = "Doe";

            // Act
            var personFullName = new PersonFullName(firstName, lastName);

            // Assert
            Assert.Equal(personFullName.First, firstName);
            Assert.Equal(personFullName.Last, lastName);
        }