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

TestOutput

public class TestOutput
The TestOutput class holds a unit of output from a test to a specific output stream
/* Exception of type 'System.OutOfMemoryException' was thrown. */