Exemple #1
0
        public async Task Should_not_log_if_no_exception_happened()
        {
            await sut.Invoke(context);

            A.CallTo(() => log.Log(A <SemanticLogLevel> .Ignored, A <None> .Ignored, A <Action <None, IObjectWriter> > .Ignored))
            .MustNotHaveHappened();
        }
        public async Task Should_not_log_if_no_exception_happened()
        {
            await sut.Invoke(context);

            A.CallTo(() => log.Log(A <SemanticLogLevel> ._, A <Exception?> ._, A <LogFormatter> ._ !))
            .MustNotHaveHappened();
        }
Exemple #3
0
        public async Task Should_not_log_if_no_exception_happened()
        {
            await sut.Invoke(context);

            A.CallTo(() => logFactory.CreateLogger(A <string> ._))
            .MustNotHaveHappened();
        }