Beispiel #1
0
        public void CalculateTest(double argument, double result, double accuracy)
        {
            var calculator = new SqrtCalculator();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult, accuracy);
        }
Beispiel #2
0
 public void SqrtNegativeTest()
 {
     var calculator = new SqrtCalculator();
     var testResult = calculator.Calculate(-0.1);
 }