exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 28 discussion

Actual exam question from Microsoft's 70-486
Question #: 28
Topic #: 1
[All 70-486 Questions]

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

You need to test the GoldMined method.
Which unit test should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cccanseco
Highly Voted 5 years, 10 months ago
Option D would be equals to C but [InitTest()] --> [TestMethod()]
upvoted 20 times
...
SG
Highly Voted 5 years, 10 months ago
D is the answer but its missing
upvoted 9 times
...
Leodolz
Most Recent 4 years, 5 months ago
By elimination it's D, from all the options the Assert are wrong except for C, however it has the incorrect [UnitTest()] instead of [TestMethod()]
upvoted 1 times
...
mr_
4 years, 11 months ago
Yes exactly - answer D would be correct because of [TestMethod] and Assert.AreEqual. I saw that question with that answer somewhere else, but here is missing. A, B, C are simply wrong because of either Assert line or wrong attribute -> '[UnitTest]'.
upvoted 2 times
TimboJones
4 years, 7 months ago
This is the same question as an earlier one, altough the earler question used BankLoans or something instead of Gold Mined. The spirit of the question is the same though, the structur of a TestMethod. Option D isn't available as code, but it says Option D as a possible correct answer. However, A is wrong because it uses Assert.True with two parameters, B is wrong because it's not public and C is wrong because it uses Unittest as Attribtue instead of TestMethod.
upvoted 1 times
...
...
gokhan
4 years, 12 months ago
Option D has Asset.AreEqual and [TestMethod()]. isnt it?
upvoted 3 times
...
Caloy
5 years ago
Option D. supposed to have Asset.AreEqual
upvoted 1 times
...
hungry_ape9000
5 years ago
FINAL ANSWER: D is correct The answer will look similar to C, the only difference would be the attribute at the top of the method. [TestMethod()] instead of [UnitTest()]. The big takeaway from this one is the use of AreEqual to compare between the two values.
upvoted 5 times
...
Vaginaraptor
5 years, 2 months ago
Answer D is missing. Please update
upvoted 3 times
AyeshaKhalid
4 years, 4 months ago
Please update!
upvoted 1 times
...
...
AT_TW
5 years, 3 months ago
Where is D?
upvoted 3 times
...
peterluttikhuis
5 years, 10 months ago
Option is the right answer. How? There's no option D too choose...
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...