Which unit test should you use?

Posted by: Pdfprep Category: 70-486 Tags: , ,

You are developing an ASP.NET MVC web application that includes the following method.

You need to test the AccountBalance method.

Which unit test should you use?

A . Option A
B . Option B
C . Option C
D . Option D

Answer: C

Explanation:

All unit tests require the [TestMethod] attribute. The Assert.AreEqual method verifies that specified values are equal.

Incorrect: Not D: All unit tests require the [TestMethod] attribute.

References: http://msdn.microsoft.com/en­us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx

Leave a Reply

Your email address will not be published.