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
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
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);
}