Esempio n. 1
0
        public void Logs()
        {
            var sink      = new TestSimpleSink();
            var mahLogger = LoggerManager.Get <IBasicsLog>(sink);

            mahLogger.Message();

            Assert.True(sink.HasMessage(nameof(IBasicsLog.Message)));
        }
Esempio n. 2
0
        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));
        }