public void MultiplDBTest() { BasicOperations target = new BasicOperations(); int x = Convert.ToInt32(TestContext.DataRow["arg1"]); int y = Convert.ToInt32(TestContext.DataRow["arg2"]); int expected = Convert.ToInt32(TestContext.DataRow["result"]); int actual = target.Multiply(x, y); Assert.AreEqual(expected, actual); }
public void MultiplyTest() { BasicOperations target = new BasicOperations(); // TODO: Initialize to an appropriate value int numberA = 0; // TODO: Initialize to an appropriate value int numberB = 0; // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.Multiply(numberA, numberB); Assert.AreEqual(expected, actual); }