File: src\Tools\Shared\TestHelpers\TestReporter.cs
Web Access
Project: src\src\Tools\GetDocumentInsider\tests\GetDocumentInsider.Tests.csproj (Microsoft.Extensions.ApiDescription.Tool.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Xunit.Abstractions;
 
namespace Microsoft.Extensions.Tools.Internal;
 
public class TestReporter : IReporter
{
    private readonly ITestOutputHelper _output;
 
    public TestReporter(ITestOutputHelper output)
    {
        _output = output;
    }
 
    public void Verbose(string message)
    {
        _output.WriteLine("verbose: " + message);
    }
 
    public void Output(string message)
    {
        _output.WriteLine("output: " + message);
    }
 
    public void Warn(string message)
    {
        _output.WriteLine("warn: " + message);
    }
 
    public void Error(string message)
    {
        _output.WriteLine("error: " + message);
    }
}