public void Do() { var capture = new ConsoleCapture(); using (capture.Output()) { LogA.WriteLine(this, "BLAHA"); LogB.WriteLine(this, "BLAHB"); } Assert.AreEqual("XXXA BLAHA\n", capture.ReadToEnd().ToLf()); }