Beispiel #1
0
        public void FirstMiddleAndLastName_Should_ReturnFirstMidlleAndLastMameSeparatedBySpaces()
        {
            string fullName = "Francis Scott Fitzgerald";

            IName authorName = new AuthorName(
                firstName: new OneWordName("Francis"),
                middleName: new OneWordName("Scott"),
                lastName: new OneWordName("Fitzgerald"));

            Assert.Equal(fullName, authorName.GetFullName());
        }
Beispiel #2
0
        public void NameWithFirstAndLastName_Should_ReturnFirstAndLastMameSeparatedBySpace()
        {
            string fullName = "Gustave Flaubert";

            IName authorName = new AuthorName(
                firstName: new OneWordName("Gustave"),
                middleName: null,
                lastName: new OneWordName("Flaubert"));

            Assert.Equal(fullName, authorName.GetFullName());
        }