public void FormatEvent_WithValidEntryWithoutException_ReturnsExpectedFormattedString() { // Arrange LogEntry entry = new LogEntry(LoggingEventType.Critical, "Valid message", "Log source", null); string expectedFormattedEvent = "LoggingEvent:\r\n" + "Severity:\tCritical\r\n" + "Message:\tValid message\r\n" + "Source:\tLog source\r\n"; // Act string actualFormattedEvent = LoggingHelper.FormatEvent(entry); // Assert Assert.AreEqual(expectedFormattedEvent, actualFormattedEvent); }