Beispiel #1
0
        public void FindProgressionTest()
        {
            ICollection <string> words = ChangeLetter.FindProgression("DOG", "CAT");

            Assert.IsTrue(words.SequenceEqual(new List <string>()
            {
                "DOG", "DOT", "COT", "CAT"
            }));
        }
Beispiel #2
0
        public void Test_LetterCapitalize()
        {
            ChangeLetter changer = new ChangeLetter();

            string str = "applez";

            Console.WriteLine("Letter Capitalize:");
            Console.WriteLine("Input: {0}", str);
            Console.WriteLine("Output:  {0}", changer.LetterCapitalize(str));
            Console.WriteLine();

            str = "coder byte";

            Console.WriteLine("Input: {0}", str);
            Console.WriteLine("Output:  {0}", changer.LetterCapitalize(str));
            Console.WriteLine();
        }