Capturing Output > xUnit.net
xunit.net › docs › capturing-outputxUnit.net offers two such methods for adding output, depending on what kind of code you're trying to diagnose. Capturing output in unit tests; Capturing output in extensibility classes; If you used xUnit.net 1.x, you may have previously been writing output to Console, Debug, or Trace. When xUnit.net v2 shipped with parallelization turned on by default, this output capture mechanism was no longer appropriate; it is impossible to know which of the many tests that could be running in parallel ...
Code Inspection: Console output in Xunit tests | JetBrains Rider
www.jetbrains.com › help › riderMar 8, 2021 · Code Inspection: Console output in Xunit tests. You can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether. Output of unit tests is often printed using Console.WriteLine. However, this may not work correctly with xUnit.net 2.x, because parallelization is turned on by default there.