public void EqualsTestInequality() { NewsQuery o1 = new NewsQuery(); o1.Interest = InterestStatus.Interesting; NewsQuery o2 = new NewsQuery(); o2.Interest = InterestStatus.Uninteresting; Assert.IsFalse(o1.Equals(o2)); }
public void EqualsTestReferenceEquals() { NewsQuery o1 = new NewsQuery(); o1.Interest = InterestStatus.Interesting; NewsQuery o2 = o1; Assert.IsTrue(o1.Equals(o2)); }
public void EqualsTestObjectReferenceEquality() { NewsQuery o1 = new NewsQuery(); o1.Interest = InterestStatus.Interesting; NewsQuery o2 = new NewsQuery(); o2.Interest = InterestStatus.Interesting; Assert.IsTrue(o1.Equals((Object) o2)); }