public void CalculateTest(double firstValue, double secondValue, double expected) { var calculator = new ModuloCalculator(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void NegativeModuloCalculatorTest() { var calculator = new ModuloCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(1, 0)); }