Example #1
0
        public void CalculateTest(double valueOne, double valueTwo, double result, double accuracy)
        {
            var calculator = new DivisionCalculator();
            var testResult = calculator.Calculate(valueOne, valueTwo);

            Assert.AreEqual(result, testResult, accuracy);
        }
Example #2
0
 public void DivisionZero()
 {
     var calculator = new DivisionCalculator();
     calculator.Calculate(5, 0);
 }