public void SafeWriteObjectWritesToWriter() { var writer = new FakeWriter(); var cmd = new FakeCmdlet(writer); cmd.Write("Test"); Assert.AreEqual("Test", writer.Messages[0]); }