Esempio n. 1
0
 public void Test_Exercise2()
 {
     using FakeConsole console = new FakeConsole("2", "50", "1050");
     Program.Main();
     Assert.AreEqual("You have a total of $1100.", console.Output);
 }
Esempio n. 2
0
 public void Test_Exercise2_testForBroke()
 {
     using FakeConsole console = new FakeConsole("2", "0", "0");
     Program.Main();
     Assert.AreEqual("You're broke.", console.Output);
 }
Esempio n. 3
0
 public void Test_Exercise1()
 {
     using FakeConsole console = new FakeConsole("1");
     Program.Main();
     Assert.AreEqual("7, 19, 4, 3", console.Output);
 }