I gave written a data-driven unit test in C# and the unit test uses MS Visual Studio unit test framework. For unsuccessful unit tests, exception would be thrown and a message would be shown in the unit test result windows. I hope to display some message for successful unit tests and the messages should be shown in the unit test output window. How to do it? I have tried Console.WriteLine("Message") but it doesn't work as I wish. Any suggestions?
Aucun commentaire:
Enregistrer un commentaire