I have been searching through the internet and documentation but cannot find if MS Unit testing can have a pre and post conditions around a unit test, does anyone know if this can be done?
I am using .net 4.5 and vs 2012.
EXAMPLE in Junit you can have a @before and @after that will run before each unit test and after each unit test, I am looking for the same idea.
Have a look at Spec#; that allows you to ‘declare’ pre/post conditions.
Edit
Oh, I might have understood the question wrong. I think you need to have a look at [TestInitialize] and [TestCleanup]