Пример #1
0
 public void DegreeTest3()
 {
     using FakeConsole console = new FakeConsole("-12");
     Program.Main();
     Assert.AreEqual("Temp in celsius = -24.", console.Output);
 }
Пример #2
0
 public void ExampleTest()
 {
     using FakeConsole console = new FakeConsole("First input", "Second input");
     Program.Main();
     Assert.AreEqual("Hello!", console.Output);
 }