public void TestDebug() { var mockListener = new MockTraceListener(); TraceLogger logger = new TraceLogger(mockListener); logger.Verbose("something"); Assert.AreEqual("something", mockListener.Message); Assert.AreEqual("CodeCoveragePublisherTrace Verbose: 0 : ", mockListener.WriteMessage); }
public void TestVerbose() { TraceLogger.Verbose("something"); Assert.AreEqual("verbose: something", _logger.Log.Trim()); }