Пример #1
0
        public void TestMixedWords()
        {
            var input = "it has more than three words";
            var r     = Interview2.RevertString(input);

            Assert.Equal("words three than more has it", r);
        }
Пример #2
0
        public void TestOddWords2()
        {
            var input = "every three words";
            var r     = Interview2.RevertString2(input);

            Assert.Equal("words three every", r);
        }
Пример #3
0
        public void TestEvenWords2()
        {
            var input = "this contains four alphas";
            var r     = Interview2.RevertString2(input);

            Assert.Equal("alphas four contains this", r);
        }
Пример #4
0
        public void TestWhitespace2()
        {
            var input = "        ";
            var r     = Interview2.RevertString2(input);

            Assert.Equal(string.Empty, r);
        }
Пример #5
0
        public void TestNull()
        {
            string input = null;
            var    r     = Interview2.RevertString(input);

            Assert.Equal(null, r);
        }
Пример #6
0
        public void TestEmpty2()
        {
            var input = string.Empty;
            var r     = Interview2.RevertString2(input);

            Assert.Equal(string.Empty, r);
        }