VIsual studio: Run cleanup on completion of ordered test

346 Views Asked by At

Say I have an ordered test which contain test method A, B and C.

How can I Run cleanup on completion of the entire ordered test, not after each method completes but when the entire ordered test completes?

1

There are 1 best solutions below

2
Dave Bush On

In NUnit, use TestFixtureTearDown attribute which will run once per text fixture (Class)

In MSTest, use ClassCleanup attribute.