コード例 #1
0
 public void TestWriteLine()
 {
     var ui = new LocalHostUserInterface(null, true);
     string str = "foobar";
     ui.WriteLine(str);
     Assert.AreEqual(str + Environment.NewLine, GetOutput());
 }
コード例 #2
0
        public void TestReadLine()
        {
            SetInput("foobar" + Environment.NewLine);
            var ui = new LocalHostUserInterface(null, true);

            Assert.AreEqual("foobar", ui.ReadLine());
        }