Exemple #1
0
        public void MultiplyTest(double first, double second, double expected)
        {
            ITwoArgumentsCalculator calculator = new ClassMultiply();
            double result = calculator.Calculate(first, second);

            Assert.AreEqual(expected, result);
        }
Exemple #2
0
        public void MyTestMethodMultiply()
        {
            ClassMultiply target   = new ClassMultiply(); // TODO: Initialize to an appropriate value
            double        expected = 6;                   // TODO: Initialize to an appropriate value
            double        actual;

            actual = target.Result(3, 2);
            Assert.AreEqual(expected, actual);
        }