コード例 #1
0
        public void GetLogger_SendInAnyName_ReturnsLogAdapterWithCorrectName()
        {
            var adapter = new LogManagerAdapter();

            var result = (LogAdapter)adapter.GetLogger("Any name");

            Assert.AreEqual("Any name", result.LoggerName);
        }
コード例 #2
0
        public void GetLogger_SendInAnyType_ReturnsLogAdapterWithCorrectName()
        {
            var adapter = new LogManagerAdapter();

            var result = (LogAdapter)adapter.GetLogger(GetType());

            Assert.AreEqual(GetType().FullName, result.LoggerName);
        }
コード例 #3
0
        public void GetLogger_SendInAnyType_ReturnsLogAdapter()
        {
            var adapter = new LogManagerAdapter();

            var result = adapter.GetLogger(GetType());

            Assert.IsInstanceOf <LogAdapter>(result);
        }