Exemplo n.º 1
0
        public void accept_entries_that_got_an_exception()
        {
            var sut   = new ExceptionsOnly();
            var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", new Exception());

            var actual = sut.IsSatisfiedBy(entry);

            Assert.AreEqual(actual, true);
        }
Exemplo n.º 2
0
        public void accept_entries_that_got_an_exception()
        {
            var sut = new ExceptionsOnly();
            var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", new Exception());

            var actual = sut.IsSatisfiedBy(entry);

            actual.Should().BeTrue();
        }
Exemplo n.º 3
0
        public void reject_entry_without_exception()
        {
            var sut   = new ExceptionsOnly();
            var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", null);

            var actual = sut.IsSatisfiedBy(entry);

            Assert.AreEqual(actual, false);
        }
Exemplo n.º 4
0
        public void reject_entry_without_exception()
        {
            var sut = new ExceptionsOnly();
            var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", null);

            var actual = sut.IsSatisfiedBy(entry);

            actual.Should().BeFalse();
        }