In C#, the __________ attribute is used to identify test methods in a test class.

  • [TestAttribute]
  • [TestCase]
  • [TestMethod]
  • [Test]
In C#, the "[TestMethod]" attribute is used to identify test methods in a test class. This attribute is part of the MSTest framework and is applied to methods that represent individual test cases. By using this attribute, the testing framework recognizes and executes the marked method as a test during test execution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *