Esempio n. 1
0
        public void GoatLatinTestMethod()
        {
            GoatLatin goatLatin = new GoatLatin();
            var       expected  = "Imaa peaksmaaa oatGmaaaa atinLmaaaaa";
            var       actual    = goatLatin.ToGoatLatin("I speak Goat Latin");

            Assert.AreEqual(expected, actual);

            var expected2 = "heTmaa uickqmaaa rownbmaaaa oxfmaaaaa umpedjmaaaaaa overmaaaaaaa hetmaaaaaaaa azylmaaaaaaaaa ogdmaaaaaaaaaa";
            var actual2   = goatLatin.ToGoatLatin("The quick brown fox jumped over the lazy dog");

            Assert.AreEqual(expected2, actual2);
        }
Esempio n. 2
0
 public static void TestGoatLatinExc(string input)
 {
     Assert.Throws <InvalidOperationException>(() => GoatLatin.ToGoatLatin(input));
 }
Esempio n. 3
0
 public static void TestGoatLatin(string input, string expected)
 {
     Assert.AreEqual(GoatLatin.ToGoatLatin(input), expected);
 }