<PackageReference Include="NUnit" Version="4.3.0" />

NUnit.Framework.Interfaces.TestOutput

public class TestOutput
The TestOutput class holds a unit of output from a test to a specific output stream
namespace NUnit.Framework.Interfaces { public class TestOutput { public string Text { get; } public string Stream { get; } public string TestName { get; } public string TestId { get; } public TestOutput(string text, string stream, string testId, string testName); public string ToXml(); } }