Example #1
0
        public void CanInvertConditionTestResult()
        {
            var e = new LogEntry();
            var c = new HasExceptionCondition();

            Assert.False(c.TestInternal(e));
            c.Invert = true;
            Assert.True(c.TestInternal(e));
        }
Example #2
0
        public void CanTestLogEntryForException()
        {
            var e = new LogEntry();
            var c = new HasExceptionCondition();

            Assert.False(c.TestInternal(e));

            e.Exception = new Exception();
            Assert.True(c.TestInternal(e));
        }