Пример #1
0
        public void ShouldJoinNames()
        {
            NameJoiner test = new NameJoiner();
            string result = test.Join("Andrii", "Yuskov");

            Assert.Equal("Andrii Yuskov", result);
        }
        public void ShouldJoinNames_CaseInsensitiveAssert()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("sarah", "smith");

            Assert.That(fullName, Is.EqualTo("SARAH SMITH").IgnoreCase);
        }
        public void ShouldJoinNames_NotEqualDemo()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("Sarah", "Smith");

            Assert.That(fullName, Is.Not.EqualTo("Gentry Smith"));
        }
Пример #4
0
        public void ShouldJoinNames()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Jon", "Arryn");

            Assert.That(result, Is.EqualTo("Jon Arryn"));
        }
        public void ShouldJoinNames()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("Sarah", "Smith");

            Assert.That(fullName, Is.EqualTo("Sarah Smith"));
        }
Пример #6
0
        public void ShouldJoinNames_NotEqualsDemo()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Jon", "Arryn");

            Assert.That(result, Is.Not.EqualTo("Lysa Arryn"));
        }
Пример #7
0
        public void ShouldJoinNames_CaseInsensitiveAssertDemo()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Jon", "Arryn");

            Assert.That(result, Is.EqualTo("JON ARRYN").IgnoreCase);
        }
Пример #8
0
        public void ShouldJoinNames_NotEqualDemo()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("wendy", "lee");

            Assert.That(fullName, Is.Not.EqualTo("EENDY Lee").IgnoreCase);
        }
Пример #9
0
        public void ShouldJoinNames_CaseUnsensitive()
        {
            NameJoiner test = new NameJoiner();
            string result = test.Join("ANDRII", "YUSKOV");

            Assert.Equal("Andrii Yuskov", result, ignoreCase: true);
        }
Пример #10
0
        public void ShouldJoinNamesCaseInsensitive()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("sarah", "smith");

            Assert.Equal("SARAH SMITH", result, ignoreCase: true);
        }
Пример #11
0
        public void ShouldJoinNames()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("Wendy", "Lee");

            Assert.That(fullName, Is.EqualTo("Wendy Lee"));
        }
Пример #12
0
        public void ShouldJoinNames_CaseInsensitiveAssertDemo()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("wendy", "lee");

            Assert.That(fullName, Is.EqualTo("WENDY Lee").IgnoreCase);
        }
Пример #13
0
        public void ShouldContainFirstNameAfterJoining()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Sarah", "Smith");

            Assert.Contains("Sarah", result);
        }
        public void ShouldJoinName_Regex()
        {
            var namejoiner = new NameJoiner();
            var fullName   = namejoiner.Join("Rakesh", "Tiwari");

            Assert.Matches("[A-Z]{1}[a-z]+ [A-Z]{1}[a-z]+", fullName);
        }
        public void ShouldJoinName()
        {
            var namejoiner = new NameJoiner();
            var fullName   = namejoiner.Join("Rakesh", "Tiwari");

            Assert.Equal("Rakesh Tiwari", fullName);
        }
        public void ShouldJoinName_EndsWith()
        {
            var namejoiner = new NameJoiner();
            var fullName   = namejoiner.Join("Rakesh", "Tiwari");

            Assert.EndsWith("ri", fullName);
        }
        public void ShouldJoinName_SubStringContent()
        {
            var namejoiner = new NameJoiner();
            var fullName   = namejoiner.Join("Rakesh", "Tiwari");

            Assert.Contains("Tiwari", fullName);
        }
        public void ShouldJoinName_CaseInsensitive()
        {
            var namejoiner = new NameJoiner();
            var fullName   = namejoiner.Join("Rakesh", "Tiwari");

            Assert.Equal("RAKESH TIWARI", fullName, ignoreCase: true);
        }
Пример #19
0
        public void ShouldEndWithLastNameAfterJoining()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Sarah", "Smith");

            Assert.EndsWith("Smith", result);
        }
Пример #20
0
        public void ShouldBeValidFullNameAfterJoining()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Sarah", "Smith");

            Assert.Matches("[A-Z][a-z]+ [A-Z][a-z]+", result);
        }
Пример #21
0
        public void ShouldJoinNames()
        {
            var sut    = new NameJoiner();
            var result = sut.Join("Sarah", "Smith");

            Assert.Equal("Sarah Smith", result);
        }
Пример #22
0
        public void ShouldJoinNames_Regex()
        {
            var sut = new NameJoiner();

            var result = sut.Join("Priscila", "Lima");

            Assert.Matches("^P", result);
        }
Пример #23
0
        public void ShouldJoinNames_StartsWith()
        {
            var sut = new NameJoiner();

            var result = sut.Join("Diego", "Dantas");

            Assert.StartsWith("Diego", result);
        }
Пример #24
0
        public void ShouldJoinNames_EndsWith()
        {
            var sut = new NameJoiner();

            var result = sut.Join("Victor", "Ferreira");

            Assert.EndsWith("ira", result);
        }
Пример #25
0
        public void ShouldJoinNamesIgnoringCase()
        {
            var sut = new NameJoiner();

            var result = sut.Join("GILBERTO", "MADEIRA");

            Assert.Equal("gilberto madeira", result, ignoreCase: true);
        }
Пример #26
0
        public void ShouldJoinNamesVerifyingContent()
        {
            var sut = new NameJoiner();

            var result = sut.Join("Joselia", "Amancio");

            Assert.Contains("Amancio", result);
        }
Пример #27
0
        public void ShouldJoinNames()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.That(fullName, Is.EqualTo("Sarah Smith"));
        }
Пример #28
0
        public void ShouldJoinNames_SubstringContents()
        {
            NameJoiner test = new NameJoiner();
            string actualResult = test.Join("Andrii", "Yuskov");
            string expectedResult = "Andrii";

            Assert.Contains(expectedResult, actualResult);
        }
Пример #29
0
        public void ShouldJoinNames_Regex()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.Matches("[A-Z]{1}[a-z]+ [A-Z]{1}[a-z]", fullName);
        }
Пример #30
0
        public void ShouldJoinNames_SubstringContents()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.Contains("Sarah", fullName);
        }
Пример #31
0
        public void ShouldJoinNames_CaseInsensitiveAssertDemo()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("SARAH", "SMITH");

            Assert.That(fullName, Is.EqualTo("SARAH SMITH"));
        }
Пример #32
0
        public void ShouldJoinNames_CaseInsensitiveAssertDemo()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("sarah", "smith");

            Assert.Equal("SARAH SMITH", fullName, ignoreCase: true);
        }
Пример #33
0
        public void ShouldJoinNames_CaseInsensitiveAssertDemo()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("sarah", "smith");

            Assert.That(fullName, Is.EqualTo("SARAH SMITH").IgnoreCase);
        }
Пример #34
0
        public void ShouldJoinNames_EndsWith()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.EndsWith("ith", fullName);
        }
Пример #35
0
        public void ShouldJoinNames_NotEqualDemo()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.That(fullName, Is.Not.EqualTo("Gentry Smith"));
        }        
Пример #36
0
        public void ShouldJoinNames()
        {
            var sut = new NameJoiner();

            var fullName = sut.Join("Sarah", "Smith");

            Assert.Equal("Sarah Smith", fullName);
        }
Пример #37
0
        public void ShouldJoinNames_StringStartsWith()
        {
            NameJoiner test = new NameJoiner();
            string actualResult = test.Join("Andrii", "Yuskov");
            string expectedResult = "Andrii";

            Assert.StartsWith(expectedResult, actualResult);
        }