Ejemplo n.º 1
0
        public void DivisionTest(double first, double second, double expected)
        {
            ITwoArgumentsCalculator calculator = new Division();
            double result = calculator.Calculate(first, second);

            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 2
0
 public void DivisionByZeroTest()
 {
     ITwoArgumentsCalculator calculator = new Division();
     Assert.Throws<Exception>(() => calculator.Calculate(1, 0));
 }