Beispiel #1
0
 public void Test_LettersAndOtherCharacters()
 {
     using FakeConsole console = new FakeConsole("?_-\"\'abcdefghijklm!#¤%&/ (\\@£$€{{[nopqrstuvwxyz]}");
     Program.Main();
     Assert.AreEqual("?_-\"\'nopqrstuvwxyz!#¤%&/ (\\@£$€{{[abcdefghijklm]}", console.Output);
 }
Beispiel #2
0
 public void Test_Blankspace()
 {
     using FakeConsole console = new FakeConsole(" ");
     Program.Main();
     Assert.AreEqual("", console.Output);
 }
Beispiel #3
0
 public void Test_NonLetters()
 {
     using FakeConsole console = new FakeConsole("?_-\"\'!#¤%&/ (\\@£$€{{[]}");
     Program.Main();
     Assert.AreEqual("?_-\"\'!#¤%&/ (\\@£$€{{[]}", console.Output);
 }
Beispiel #4
0
 public void Test_Alphabet()
 {
     using FakeConsole console = new FakeConsole("abcdefghijklmnopqrstuvwxyz");
     Program.Main();
     Assert.AreEqual("nopqrstuvwxyzabcdefghijklm", console.Output);
 }