public void CoverConstructor() { var calculator = new Calculator(23); Assert.IsNotNull(calculator); }
public void CoverDivision() { var calculator = new Calculator(88); var result = calculator.Divide(2); Assert.AreEqual(44, result); }
public void CoverMultiplication() { var calculator = new Calculator(53); var result = calculator.Multiply(2); Assert.AreEqual(106, result); }
public void CoverSubtraction() { var calculator = new Calculator(33); var result = calculator.Subtract(5); Assert.AreEqual(28, result); }
public void CoverAddition() { var calculator = new Calculator(23); var result = calculator.Add(2); Assert.AreEqual(25, result); }
public void CoverTheory(int initialValue, int addition, int expectedValue) { var calculator = new Calculator(initialValue); var result = calculator.Add(addition); Assert.AreEqual(expectedValue, result); }