示例#1
0
        public void GetDefaultLogger_AlwaysReturnsSameInstance()
        {
            var firstInstance  = manager.GetDefaultLogger();
            var secondInstance = manager.GetDefaultLogger();
            var thirdInstance  = new LoggerService("DefaultLogger");

            Assert.That(firstInstance, Is.SameAs(secondInstance));
            Assert.That(firstInstance, Is.Not.SameAs(thirdInstance));
        }