public void operator operatorPlusTest() { Calculator calculator = new Calculator(); // Input Parameter a = 3; b = 4; int expectedResult = 7; Assert.AreEqual(expectedResult, calculator.operatorPlus(a, b), "Expected Result is 7 but Actual Result is {0}", expectedResult); }
public void operator operatorSquareTest() { Calculator calculator = new Calculator(); // Input Parameter a = 5; b = 3; int expectedResult = 125; Assert.AreEqual(expectedResult, calculator.operatorSquare(a, b), "Expected Result is 125 but Actual Result is {0}", expectedResult); }
public void operator operatorMultiplyTest() { Calculator calculator = new Calculator(); // Input Parameter a = 10; b = 5; int expectedResult = 50; Assert.AreEqual(expectedResult, calculator.operatorMultiply(a, b), "Expected Result is 50 but Actual Result is {0}", expectedResult); }