LANGUAGE
MSTest TestMethod
Identifies a test method in an MSTest class.
Formal Syntax & Structure
csharp syntaxcsharp
[TestMethod]Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.[TestMethod]Identifies a test method in an MSTest class.
[TestMethod]// Documentary fragment; see linked lesson for context.[TestMethod]