コード例 #1
0
        public void CalculationTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new MinCalculator();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
コード例 #2
0
        public void CalculateTests(double firstValue, double secondValue, double expected)
        {
            MinCalculator minCalculator = new MinCalculator();
            double        result        = minCalculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, result);
        }