Which unit test should you use?

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

microsoft-exams

One thought on “Which unit test should you use?

  1. D.
    [TestMethod()]
    public void GoldMinedTest()
    {
    double currentGold = 175.05;
    double newlyMinedGold = 76.03;
    double totalGold = 251.08;
    double result = 0.00;

    result = GoldMined(currentGold, newlyMinedGold);
    Assert.AreEqual(totalGold, result);
    }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.