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); }
public static void TestGoatLatinExc(string input) { Assert.Throws <InvalidOperationException>(() => GoatLatin.ToGoatLatin(input)); }
public static void TestGoatLatin(string input, string expected) { Assert.AreEqual(GoatLatin.ToGoatLatin(input), expected); }