public void GetHashCodeSameEmailsShouldBeEqual() { var comparer = new EmailBatchNotificationDispatcher.EmailEqComparer(); Assert.AreEqual(comparer.GetHashCode(GetNotifiable1()), comparer.GetHashCode(GetNotifiable2())); }
public void GetHashCodeDifferentEmailsShouldNotBeEqual() { var comparer = new EmailBatchNotificationDispatcher.EmailEqComparer(); Assert.AreNotEqual(comparer.GetHashCode(GetNotifiable1()), comparer.GetHashCode(GetNotifiable3())); }