[TestMethod]
public void TestMethod1() ...
When you have more than a few test cases, it is useful to break them into groups or categories; you can use:
- Owner("name")
- TestCategory("category")
- TestProperty("name","value")
For example:
[TestMethod, Owner("Orlando"),TestCategory("stuff"),TestProperty("group","1")]
public void TestMethod1() ...
On the test explorer window, VS will show you your tests organized based on those values, and you can then select and run only those tests you want.
No comments:
Post a Comment