public void sharedMathMinusTwoNumbers() { var sharedMath = new sharedMath(); var result = sharedMath.minusTwoNumbers(5, 2); Assert.AreEqual(3, result); }
public ActionResult <sharedMath> Get(int a, int b) { sharedMath myObj = new sharedMath(); myObj.mathresult = myObj.minusTwoNumbers(a, b); return(myObj); }
public void minusTwoNumbersReturnsExpectedResult() { //arrange sharedMath myObj = new sharedMath(); //act int myTest = myObj.minusTwoNumbers(2, 1); //assert Assert.AreEqual(myTest, 1); }