public void WrapsCreatedLogsInsideProxyLogIfLogIsNotMarshalByRefObject()
        {
            var name = "a name";
              var mockLog = new Mock<ILog>();
              mockLog.Setup(x => x.Name).Returns(name);

              var mockFactory = new Mock<ILoggerFactory>();
              mockFactory.Setup(x => x.GetLog(name)).Returns(mockLog.Object);

              ProxyLoggerFactory tested = new ProxyLoggerFactory(mockFactory.Object);
              ILog log = tested.GetLog(name);

              Assert.IsInstanceOfType(log, typeof(ProxyLog));
        }
        public void UsesInnerFactoryToCreateLogs()
        {
            var name = "a name";
              var mockLog = new Mock<ILog>();
              mockLog.Setup(x => x.Name).Returns(name);

              var mockFactory = new Mock<ILoggerFactory>();
              mockFactory.Setup(x => x.GetLog(name)).Returns(mockLog.Object).Verifiable();

              ProxyLoggerFactory tested = new ProxyLoggerFactory(mockFactory.Object);
              ILog log = tested.GetLog(name);

              mockFactory.Verify();
        }