public void WriteTwoLines() { StringWriter writer = new StringWriter(); Puts puts = new Puts(writer); var result = puts.Call(null, new object[] { "hello", "world" }); Assert.IsNull(result); writer.Close(); Assert.AreEqual("hello\r\nworld\r\n", writer.ToString()); }
public void WriteEmptyLine() { StringWriter writer = new StringWriter(); Puts puts = new Puts(writer); var result = puts.Call(null, null); Assert.IsNull(result); writer.Close(); Assert.AreEqual("\r\n", writer.ToString()); }