How do I write additional test information on the screen during testing?

I want to output some additional information about a test run that I can quickly visualize. This does not affect the test result.

I'm familiar with Assert.Inconclusive(String)

but I want the test to pass / endure myself.

0


a source to share


2 answers


You can also use TestContext.WriteLine()

to record dry run information.



This information will appear in the Additional Information heading in the test run results window.

+1


a source


In my opinion, you should use Trace.Write () to print info messages before calling Assert methods. It's really a matter of preference, but Trace.Write () seems to be the tool for the job.



+1


a source







All Articles