public void EqualsTest_Equal() { RangeF thisRange = new RangeF(1, 3); RangeF otherRange = new RangeF(1, 3); Assert.IsTrue(thisRange.Equals(otherRange)); Assert.IsTrue(otherRange.Equals(thisRange)); Assert.AreEqual(thisRange.GetHashCode(), otherRange.GetHashCode()); }
public void EqualsTest_BothNotEqual() { RangeF thisRange = new RangeF(2, 3); RangeF otherRange = new RangeF(1, 4); Assert.IsFalse(thisRange.Equals(otherRange)); Assert.IsFalse(otherRange.Equals(thisRange)); Assert.AreNotEqual(thisRange.GetHashCode(), otherRange.GetHashCode()); }