public void Test2() { using FakeConsole console = new FakeConsole("0"); Program.Main(); Assert.AreEqual("Here are your numbers, repeated incase you forgot the numbers the first time you read them:", console.Output); }
public void Test() { using FakeConsole console = new FakeConsole("3", "1", "2", "3"); Program.Main(); Assert.AreEqual("1, 2, 3, 1, 2, 3", console.Output); }