Beispiel #1
0
        public void CalculationTest()
        {
            var    calculator = new Calculator.OneArgumentCalculator.SqrtCalculator();
            double actual     = calculator.Calculate(81);

            Assert.AreEqual(9, actual);
        }
Beispiel #2
0
        public void CalculationError()
        {
            var calculator = new Calculator.OneArgumentCalculator.SqrtCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(-3));
        }