Esempio n. 1
0
        public void AbsMethodTest(double x, double expected)
        {
            var actualValue = calculator.Abs(x);

            Assert.AreEqual(expected, actualValue, _tolerance);
        }
Esempio n. 2
0
 public void PositiveAbsTests(double initValue, double expectedValue)
 {
     Assert.AreEqual(calc.Abs(initValue), expectedValue);
 }