PrepAway - Latest Free Exam Questions & Answers

You need to ensure that TestMethod1 appears in the Test…

You are developing a Universal Windows Platform (UWP) app that has the following unit test.

You need to ensure that TestMethod1 appears in the Test Explorer window of Microsoft Visual Studio.
What should you add?

PrepAway - Latest Free Exam Questions & Answers

A.
[TestCategory(“Enabled”)]before the UnitTest1 declaration

B.
[TestProperty(“Enabled”,”True”)]before the TestMethod1 declaration

C.
[TestClass]before the UnitTest1 declaration

D.
[TestProperty(“AutoStart”,”True”)] before the TestMethod1 declaration

Explanation:
The [TestClass] attribute is required in the Microsoft unit testing framework for managed code for any class that
contains unit test methods that you want to run in Test Explorer.

https://msdn.microsoft.com/en-us/library/ms182532.aspx


Leave a Reply