What would be an alternate to [TearDown] and [SetUp] in MSTest?

Maya picture Maya · May 31, 2011 · Viewed 85.3k times · Source

When I use MSTest Framework, and copy the code that Selenium IDE generated for me, MSTest doesn't recognize [TearDown] and [SetUp]. What is the alternative to this?

Answer

Tejs picture Tejs · May 31, 2011

You would use [TestCleanup] and [TestInitialize] respectively.