//[TestCase("!2c-1fj", "!2j-1fc")] public void CheckTranslate(string input, string output) { //Act var actual = GoatLatin.Translate(input); //Assert Assert.AreEqual(output, actual); }
static void Main(string[] args) { try { GoatLatin rez = new GoatLatin(); string s = "I speak Goat Latin"; Console.WriteLine("I speak Goat Latin"); Console.WriteLine(rez.GoatLatinString(s)); Console.ReadLine(); } catch (ArgumentNullException e) { Console.WriteLine(e.Message); } catch (ArgumentException e) { Console.WriteLine(e.Message); } Console.ReadLine(); }
public static void TestGoatLatin(string input, string expected) { Assert.AreEqual(GoatLatin.GoatLatinn(input), expected); }
public void SetUp() { txt = new GoatLatin.GoatLatin(); }
public void Init() { goat = new GoatLatin(); }
public void CheckNull() { //Assert Assert.Throws <ArgumentNullException>( () => GoatLatin.Translate(null)); }
public void CheckNullArgument(string input) { Assert.Throws <ArgumentNullException>(() => GoatLatin.ToGoatLatin(input)); }
public void Check(string input, string output) { Assert.AreEqual(output, GoatLatin.ToGoatLatin(input)); }