public void Test_AddMethod() { MathFunctions testInstance = new MathFunctions(); double testResult = testInstance.Add(10, 4); Assert.AreEqual(14, testResult, "Test Failed! Expected result is 14."); }
public async Task WhenAnAPICallIsMadeToAddTheTwoNumbers() { var response = await mathFunctions.Add(new HttpRequestMessage(), num1, num2, log.Object); var actual = response as OkObjectResult; actualStatusCode = actual.StatusCode; actualValue = (int)actual.Value; }