FritzAndFriends / BlazorWebFormsComponents

A collection of Blazor components that emulate the ASP.NET Web Forms controls of the same name
MIT License
428 stars 72 forks source link

Start using the xUnit Logger #113

Open csharpfritz opened 4 years ago

csharpfritz commented 4 years ago

Let's start using the xUnit logger for logging data during unit tests going forward.

Syntax is similar to:

// RazorComponentTest.razor
<Fixture Setup="Setup" ...>
    ...
</Fixture>
@code {
    private ITestOutputHelper _output;

    public RazorComponentTest(ITestOutputHelper output)
    {
        _output = output;
    }

    void Setup()
    {
        Services.AddXunitLogger(_output, minimumLogLevel: LogLevel.Debug);
    }
}

More information at: https://github.com/egil/bunit/releases/tag/v1.0.0-beta-6

hishamco commented 4 years ago

I can work on this