Ejemplo n.º 1
0
 public void Test2()
 {
     using FakeConsole console = new FakeConsole("hello hello hi hello. hello, hi, hello, hello. hi hi. hi hi,,");
     Program.Main();
     Assert.AreEqual("The most frequent word is hi with 6 occurances.", console.Output);
 }
Ejemplo n.º 2
0
 public void Test3()
 {
     using FakeConsole console = new FakeConsole(" . . . ..  ,, ., .. ,. .., ., .,,");
     Program.Main();
     Assert.AreEqual("Could not find any words.", console.Output);
 }
Ejemplo n.º 3
0
 public void Test4()
 {
     using FakeConsole console = new FakeConsole("e- -e e- e- - -");
     Program.Main();
     Assert.AreEqual("The most frequent word is e- with 3 occurances.", console.Output);
 }