lundi 6 juillet 2015

Get status and name of unit test inside of TestCleanup

I'm currently using Microsoft.VisualStudio.TestTools.UnitTesting Attribute <TestCleanup()> in a VB.Net project. Because some of my tests can leave the world a bit messy (after a fail that is) I need to find out wether the test for which a particular cleanup is running failed or not. Also the actual name of the "current" test (the one I'm cleaning up for) would be helpfull.

Is there a way to access this information?

Aucun commentaire:

Enregistrer un commentaire