示例#1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new Abs();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult);
        }
示例#2
0
        public void CalculateTest(double argument, double result)
        {
            var calculator = new Abs();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult);
        }
示例#3
0
        public void CalculateTest(double argument, double result, double accracy)
        {
            var testingFunction = new Abs();
            var testResult      = testingFunction.Calculate(argument);

            Assert.AreEqual(result, testResult, accracy);
        }