I am using Jeff Wilcox’s unit test framework for Windows Phone 7 (based on Silverlight 3) and was wondering what class annotations are available in this library. Besides [TestClass], [TestMethod] there is [TestInitialize] which marks a method to be run before each test.
Does anyone know if there is a way to specify a method that is run after each test, such as junit’s @After? Also are there other annotations available to developers? I haven’t found anything with my google searches.
Thanks,
Alasdair.
The available attributes are described in the MSDN documentation for the Microsoft.VisualStudio.TestTools.UnitTesting namespace. You use the
[TestCleanupAttribute]to mark a method to run after each test. You can also use the[ClassInitialize]and[ClassCleanup]attributes for