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