Exemple #1
0
 public void Test_Exercise3_Variant2_InvalidTemperature1()
 {
     using FakeConsole console = new FakeConsole("17", "2");
     Program.Main();
     Assert.AreEqual("Unacceptable temperature! Temperature too low.", console.Output);
 }
Exemple #2
0
 public void Test_Exercise3_Variant2_ValidTemperature1()
 {
     using FakeConsole console = new FakeConsole("18", "2");
     Program.Main();
     Assert.AreEqual("Appropriate temperature!", console.Output);
 }
Exemple #3
0
 public void Test_Exercise3_Variant1_InvalidTemperature2()
 {
     using FakeConsole console = new FakeConsole("27", "1");
     Program.Main();
     Assert.AreEqual("Unacceptable temperature!", console.Output);
 }