public void Setup() { calculator = new Calculator(); }
public void OneTimeSetUp() { calc = new Calculator(); }
public void ModuloIsCorrect(int a, int b, int expected) { int actual = Calculator.Modulo(a, b); Assert.AreEqual(expected, actual); }
public void AddIsCorrect(int a, int b, int expected) { int actual = Calculator.Add(a, b); Assert.AreEqual(expected, actual); }
public void DivideIsCorrect(int a, int b, int expected) { int actual = Calculator.Divide(a, b); Assert.AreEqual(expected, actual); }
public void DivideByZeroCheck(int a, int b) { Assert.Throws <Exception>(() => Calculator.Divide(a, b)); }
public void MultiplyBoundaryCheck(int a, int b) { Assert.Throws <Exception>(() => Calculator.Multiply(a, b)); }
public void MultiplyIsCorrect(int a, int b, int expected) { int actual = Calculator.Multiply(a, b); Assert.AreEqual(expected, actual); }
public void SubtractBoundaryCheck(int a, int b) { Assert.Throws <Exception>(() => Calculator.Subtract(a, b)); }
public void SubtractIsCorrect(int a, int b, int expected) { int actual = Calculator.Subtract(a, b); Assert.AreEqual(expected, actual); }
public void AddBoundaryCheck(int a, int b) { Assert.Throws <Exception>(() => Calculator.Add(a, b)); }