public void NullCakeDoesntThrow(Mock <Serilog.ILogger> mockLogger, string message)
            {
                var sut = new CakeLoggerAbstraction(null, mockLogger.Object);

                sut.Debug(message);
                mockLogger.Verify(m => m.Debug(It.Is <string>(s => s == message)), Times.Once);
            }
 public void InformationLoggerCalledIfPresent([Frozen] Mock <Serilog.ILogger> mockLogger, [Frozen] Mock <ICakeLog> mockCake,
                                              CakeLoggerAbstraction sut, string message)
 {
     sut.Information(message);
     mockLogger.Verify(m => m.Information(It.Is <string>(s => s == message)), Times.Once);
     mockCake.Verify(m => m.Write(
                         It.Is <Verbosity>(v => v == Verbosity.Normal),
                         It.Is <LogLevel>(l => l == LogLevel.Information),
                         It.Is <string>(s => s == "{0}"),
                         It.Is <object[]>(o => o.Contains(message))), Times.Once);
 }
            public void NullSerilogDoesntThrow(Mock <ICakeLog> mockCake, string message)
            {
                var sut = new CakeLoggerAbstraction(mockCake.Object, null);

                sut.Debug(message);
                mockCake.Verify(m => m.Write(
                                    It.Is <Verbosity>(v => v == Verbosity.Diagnostic),
                                    It.Is <LogLevel>(l => l == LogLevel.Debug),
                                    It.Is <string>(s => s == "{0}"),
                                    It.Is <object[]>(o => o.Contains(message))), Times.Once);
            }