Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (23 sloc)
781 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Divergic.Logging.Xunit.UnitTests | |
{ | |
using global::Xunit; | |
using global::Xunit.Abstractions; | |
using Microsoft.Extensions.Logging; | |
public class ScenarioTests : LoggingTestsBase | |
{ | |
public ScenarioTests(ITestOutputHelper output) : base(output) | |
{ | |
} | |
[Fact] | |
public void TestOutputWritesMessages() | |
{ | |
Logger.LogCritical("Writing critical message"); | |
Logger.LogDebug("Writing debug message"); | |
Logger.LogError("Writing error message"); | |
Logger.LogInformation("Writing information message"); | |
Logger.LogTrace("Writing trace message"); | |
Logger.LogWarning("Writing warning message"); | |
Output.WriteLine("All finished"); | |
} | |
} | |
} |