public void CanInvertConditionTestResult() { var e = new LogEntry(); var c = new HasExceptionCondition(); Assert.False(c.TestInternal(e)); c.Invert = true; Assert.True(c.TestInternal(e)); }
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)); }