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