public void LogMessage_ShouldHaveCorrectLoggingSection() { //Arrange LoggingSection loggingSection = new LoggingSection(this); LogMessage logMessage; //Act logMessage = loggingSection.Log(LogLevel.INFO, "Test"); //Assert Assert.NotNull(logMessage); Assert.Equal(loggingSection, logMessage.LoggingSection); }
public void LogMessage_ShouldHaveCorrectMessage() { //Arrange LoggingSection loggingSection = new LoggingSection(this); LogMessage logMessage; string message = "Test"; //Act logMessage = loggingSection.Log(LogLevel.INFO, message); //Assert Assert.NotNull(logMessage); Assert.Equal(message, logMessage.Message); }