Example #1
0
 public void Total4()
 {
     using FakeConsole console = new FakeConsole("First input", "Second input");
     Program.Main();
     Assert.AreEqual("3 * 8 / 4 * 8 = 12.", console.Output);
 }
Example #2
0
 public void Total3()
 {
     using FakeConsole console = new FakeConsole("First input", "Second input");
     Program.Main();
     Assert.AreEqual("10 + 2 / 3 = 10.", console.Output);
 }
Example #3
0
 public void ExampleTest()
 {
     using FakeConsole console = new FakeConsole("First input", "Second input");
     Program.Main();
     Assert.AreEqual("Hello!", console.Output);
 }
Example #4
0
 public void Total2()
 {
     using FakeConsole console = new FakeConsole("First input", "Second input");
     Program.Main();
     Assert.AreEqual("5 + 2 * 7 = 19.", console.Output);
 }
Example #5
0
 public void ExampleTest()
 {
     using FakeConsole console = new FakeConsole("Test Test Test");
     Program.Main();
     Assert.AreEqual("test_test_test", console.Output);
 }