public void Clones_Have_Same_Value() { IntRangeParameter p0 = new IntRangeParameter("id", null, 68, 78, 72); IntRangeParameter p1 = p0.Clone() as IntRangeParameter; Assert.AreEqual((int)p0.GetValue(), (int)p1.GetValue()); Assert.AreEqual(p0.Maximum, p1.Maximum); Assert.AreEqual(p0.Minimum, p1.Minimum); }
public void ImplicitOperator_ReturnsValue() { IntRangeParameter p = new IntRangeParameter("id", null, 68, 78, 72); if (p > 5) { Assert.Pass(); } Assert.Fail(); }