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