public void MultiplyTest(double first, double second, double expected) { ITwoArgumentsCalculator calculator = new ClassMultiply(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result); }
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); }