Esempio n. 1
0
        public void CalculateTest()
        {
            ITwoArgumentsCalculator calculator = new NegPower();
            double result = calculator.Calculate(4, 2);

            Assert.AreEqual(2, result);
        }
Esempio n. 2
0
        public void CalculateTestExceptionTest()
        {
            ITwoArgumentsCalculator calculator = new NegPower();

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