public void ShouldAutomaticallyCreateInstance() { LogA log1 = LogA.Instance; LogA log2 = LogA.Instance; Assert.IsNotNull(log1); Assert.IsNotNull(log2); Assert.AreSame(log1, log2); }
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()); }
public ConditionalAttributeTests() { LogA.Prefix(this, "XXXA "); LogB.Prefix(this, "XXXB "); }