Ejemplo n.º 1
0
        public void CalculateTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new PowerOfDivision();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
Ejemplo n.º 2
0
        public void NegativePowerOfDivisionTest()
        {
            var calculator = new PowerOfDivision();

            Assert.Throws <Exception>(() => calculator.Calculate(1, 0));
        }