37 lines
922 B
C#
37 lines
922 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |