Beispiel #1
0
        public void Calculate()
        {
            Degree2 calculator = new Degree2();
            double  result     = calculator.Calculate(2);

            Assert.AreEqual(4, result, 0.001);
        }
Beispiel #2
0
        public void CalculateTest(
            double firstValue,
            double expected)

        {
            var calculator   = new Degree2();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.001);
        }