コード例 #1
0
        public void Init_CreateInstance_CheckForNull()
        {
            var logManager = new NLogManagerAdapter();

            Assert.IsNotNull(logManager);

            logManager.ShutDown();
        }
コード例 #2
0
        public void GlobalThreshold_SetGlobalThreshold_ValueEqualsExpected(LogLevel loglevel)
        {
            var input      = loglevel;
            var logManager = new NLogManagerAdapter();

            logManager.GlobalThreshold = input;
            var result = logManager.GlobalThreshold;

            var expected = loglevel;

            Assert.AreEqual(expected, result);

            logManager.ShutDown();
        }
コード例 #3
0
        public void GetLogger_CreateInstance_GetLogger_CheckResultForNull()
        {
            var logManager = new NLogManagerAdapter();

            var result = logManager.GetLogger("Test");

            Assert.IsNotNull(result);

            const String ExpectedName = "Test";

            Assert.AreEqual(ExpectedName, result.Name);

            logManager.ShutDown();
        }