public void AddIntegers_FromDataSourceTest() { var target = new Maths(); // access the data int x = (int)TestContext.DataRow["FirstNumber"]; int y = (int)TestContext.DataRow["SecondNumber"]; int expected = (int)TestContext.DataRow["Sum"]; int actual = target.AddIntegers(x, y); Assert.AreEqual(expected, actual, "x:<{0}> y:<{1}>", new object[] { x, y }); }