コード例 #1
0
 public void SafeWriteObjectWritesToWriter()
 {
     var writer = new FakeWriter();
     var cmd = new FakeCmdlet(writer);
     cmd.Write("Test");
     Assert.AreEqual("Test", writer.Messages[0]);
 }
コード例 #2
0
        public void SafeWriteObjectWritesToWriter()
        {
            var writer = new FakeWriter();
            var cmd    = new FakeCmdlet(writer);

            cmd.Write("Test");
            Assert.AreEqual("Test", writer.Messages[0]);
        }