Extends ITestOutputHelper to allow output of a generic type using a serializer.
Install-Package Frank.Testingdotnet add package Frank.Testingusing Xunit;
using Xunit.Abstractions;
public class MyTestClass
{
private readonly ITestOutputHelper _outputHelper;
public MyTestClass(ITestOutputHelper outputHelper)
{
_outputHelper = outputHelper;
}
[Fact]
public void MyTestMethod()
{
_outputHelper.WriteLine(new { MyProperty = "MyValue" });
}
}