public void WriteLine() { this.writer.WriteLine("foo"); string[] lines = this.GetLines(); Assert.IsTrue(lines.Contains("foo")); }