예제 #1
0
        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());
        }