private void AssertRange(Calculator ocalc, double p1, double p2, double expected) { double actual = ocalc.Divide(p1, p2); //Assert Assert.AreEqual(expected, actual); }
public void BasicDivideTest() { //arrange Calculator ocalc = new Calculator(); double expected = 4d; //act double actual = ocalc.Divide(20d, 5d); //assert Assert.AreEqual(expected, actual); }