public void TestConstructorGood() { double a = 1011.1011; int b = 2; int c = 4; double extend = 1011.1011; IPNumber iP = new IPNumber(a, b, c); double result = iP.GetPNumber(); Assert.AreEqual(extend, result); }
public void TestConstructorFailC() { double a = 1011.1010; int b = 2; int c = -1; double extend = 0.0; IPNumber iP = new IPNumber(a, b, c); double result = iP.GetPNumber(); Assert.AreEqual(extend, result); }