コード例 #1
0
        public void ShouldJoinNames()
        {
            NameJoiner test = new NameJoiner();
            string result = test.Join("Andrii", "Yuskov");

            Assert.Equal("Andrii Yuskov", result);
        }
コード例 #2
0
        public void ShouldJoinNames_CaseInsensitiveAssert()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("sarah", "smith");

            Assert.That(fullName, Is.EqualTo("SARAH SMITH").IgnoreCase);
        }
コード例 #3
0
        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"));
        }
コード例 #5
0
        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
ファイル: Class1.cs プロジェクト: ckky123/C-sharp-Practice
        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
ファイル: Class1.cs プロジェクト: ckky123/C-sharp-Practice
        public void ShouldJoinNames()
        {
            var sut      = new NameJoiner();
            var fullName = sut.Join("Wendy", "Lee");

            Assert.That(fullName, Is.EqualTo("Wendy Lee"));
        }
コード例 #12
0
ファイル: Class1.cs プロジェクト: ckky123/C-sharp-Practice
        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);
        }