2009-04-20 7 views
0

Possible en double:
In the teardown event during an NUnit test how can I get to the attribute applied to the method that was just tested?Comment savez-vous sur NUnit TearDown si un test a jeté une exception et quelle était cette exception?

J'ai un tas de tests NUnit que tous héritent d'une classe qui implémente la fonction NUnit Teardown.

[TearDown] TeardownTest public void() {}

Chaque fois que l'un des tests génèrent une exception, il saute tout droit à la fonction TEARDOWN. Comment puis-je savoir quelle exception a été générée qui l'a conduit à cette exception?

Répondre

1

Cela a déjà été discuté here.

Questions connexes