Microsoft
70-355 · Question #39
You are developing a Universal Windows Platform (UWP) app that has the following unit test. public class UnitTest1 { } [TestMethod] public void TestMethod1() { } You need to ensure that TestMethod1…
The correct answer is D. [TestClass] before the UnitTest1 declaration. See the full explanation below for the reasoning.
Question
You are developing a Universal Windows Platform (UWP) app that has the following unit test.
public class UnitTest1
{
}
[TestMethod]
public void TestMethod1()
{
}
You need to ensure that TestMethod1 appears in the Test Explorer window of Microsoft Visual Studio. What should you add?
Options
- A[TestProperty("AutoStart", "True")] before the TestMethod1 declaration
- B[TestCategory("Enabled")] before the UnitTest1 declaration
- C[TestProperty("Enabled", "True")] before the TestMethod1 declaration
- D[TestClass] before the UnitTest1 declaration
How the community answered
(19 responses)- A5% (1)
- B16% (3)
- C5% (1)
- D74% (14)
Community Discussion
No community discussion yet for this question.