예제 #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);
 }
예제 #2
0
 public void Test_Exercise2_testForBroke()
 {
     using FakeConsole console = new FakeConsole("2", "0", "0");
     Program.Main();
     Assert.AreEqual("You're broke.", console.Output);
 }
예제 #3
0
 public void Test_Exercise1()
 {
     using FakeConsole console = new FakeConsole("1");
     Program.Main();
     Assert.AreEqual("7, 19, 4, 3", console.Output);
 }