public virtual void PageRangeNotEqualsAndHashCodeTest() { PageRange range1 = new PageRange("3-8"); PageRange range2 = new PageRange("1-2"); bool result = range1.Equals(range2); NUnit.Framework.Assert.IsFalse(result); NUnit.Framework.Assert.AreNotEqual(range1.GetHashCode(), range2.GetHashCode()); }
public virtual void PageRangeEqualsNullTest() { PageRange range1 = new PageRange("3-8"); NUnit.Framework.Assert.IsFalse(range1.Equals(null)); }