nerdexam
Microsoft

70-497 · Question #104

You are using Microsoft Visual Studio Unit Test Framework. What are the two minimum requirements for a test class? (Choose two.)

The correct answer is C. The class must have the TestClass attribute. D. One of the methods must have the TestMethod attribute. See the full explanation below for the reasoning.

Question

You are using Microsoft Visual Studio Unit Test Framework. What are the two minimum requirements for a test class? (Choose two.)

Options

  • AOne of the methods must have the TestCategory attribute.
  • BThe class must have the Testlnitialize attribute.
  • CThe class must have the TestClass attribute.
  • DOne of the methods must have the TestMethod attribute.

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    15% (4)
  • C
    73% (19)

Community Discussion

No community discussion yet for this question.

Full 70-497 Practice