예제 #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));
 }