public void Logs() { var sink = new TestSimpleSink(); var mahLogger = LoggerManager.Get <IBasicsLog>(sink); mahLogger.Message(); Assert.True(sink.HasMessage(nameof(IBasicsLog.Message))); }
public void ConfigurableText() { var sink = new TestSimpleSink(); var realmessage = "The real messsage"; var messageSource = new TestSimpleMessageSource() .MessageText(nameof(IBasicsLog.Message), realmessage); var mahLogger = LoggerManager.Get <IBasicsLog>(sink, messageSource); mahLogger.Message(); Assert.True(sink.HasMessage(realmessage)); }