Пример #1
0
        public void PowTest(double first, double second, double expected)
        {
            ITwoArgumentsCalculator calculator = new Pow();
            double result = calculator.Calculate(first, second);

            Assert.AreEqual(expected, result);
        }
Пример #2
0
 public void PowByZeroTest(double first, double second)
 {
     ITwoArgumentsCalculator calculator = new Pow();
     Assert.Throws<Exception>(() => calculator.Calculate(first, second));
 }