Exemple #1
0
        public async Task TestLoggingAsync()
        {
            await instance.TestAsync(1, "2", null);

            logger.Verify(x => x.Log(LogLevel.Information, It.IsAny <EventId>(), It.Is <It.IsAnyType>((v, t) => true), It.IsAny <Exception>(), It.Is <Func <It.IsAnyType, Exception, string> >((v, t) => true)), Times.Exactly(2));
        }