public void TeeLogger_Construction_1() { TeeLogger tee = new TeeLogger(); Assert.IsNotNull(tee.Loggers); Assert.AreEqual(0, tee.Loggers.Count); }
public void InitConsoleLogger() { Logger = new TeeLogger(); for (int i = 1; i <= LoggerCount; i++) { Logger.Add(i.ToString(), new ListLogger()); } }
public void TeeLogger_Trace_1() { Mock <IAmLogger> mock = _GetLogger(); IAmLogger logger = mock.Object; TeeLogger tee = new TeeLogger { Loggers = { logger } }; tee.Trace("message"); mock.Verify(m => m.Trace(It.IsAny <string>()), Times.Once); }
public void InitTeeLogger() { Logger = new TeeLogger(); }