[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.
Great Article
ReplyDeleteC# Training
C# Training
C# OOP Interview Questions
C# Online Training
C-Sharp Training
Dot Net Training in Chennai
.Net Online Training
Dot Net Interview Questions