public void Log_ReturnedLogMessage_ShouldHaveLogLevelCritical() { //Arrange LoggingSection loggingSection = new LoggingSection(this); LogMessage logMessage; //Act logMessage = loggingSection.Critical("Test"); //Assert Assert.NotNull(logMessage); Assert.Equal(LogLevel.CRITICAL, logMessage.LogLevel); }