public void calculateTest()
        {
            Multiplicator calculator = new Multiplicator();

            Assert.AreEqual(10, calculator.calculate(2, 5));
            Assert.AreEqual(36, calculator.calculate(4, 9));
            Assert.AreEqual(0.75, calculator.calculate(0.25, 3));
        }
示例#2
0
        public void CalculationTest()
        {
            var    calculator = new Multiplicator();
            double actual     = calculator.calculate(2, 3);

            Assert.AreEqual(6, actual, 0.00);
        }
            public void CalculateTest(double firstValue, double secondValue, double expected)
            {
                Multiplicator calculator   = new Multiplicator();
                var           actualResult = calculator.calculate(firstValue, secondValue);

                Assert.AreEqual(expected, actualResult);
            }