public void TestWarning()
        {
            var         mockListener = new MockTraceListener();
            TraceLogger logger       = new TraceLogger(mockListener);

            logger.Warning("something");
            Assert.AreEqual("something", mockListener.Message);
            Assert.AreEqual("CodeCoveragePublisherTrace Warning: 0 : ", mockListener.WriteMessage);
        }
Ejemplo n.º 2
0
 public void TestWarning()
 {
     TraceLogger.Warning("something");
     Assert.AreEqual("warning: something", _logger.Log.Trim());
 }