public void Equal_When_All_Fields_Are_Equal() { var x = GetPrescriptionProduct(); var y = GetPrescriptionProduct(); var comparer = new PrescriptionProductComparer(); bool result = comparer.Equals(x, y); Assert.IsTrue(result); }
public void Not_Equal_When_PrNmNr_Is_Different() { var x = GetPrescriptionProduct(); var y = GetPrescriptionProduct(); y.PrNmNr = 3; var comparer = new PrescriptionProductComparer(); bool result = comparer.Equals(x, y); Assert.IsFalse(result); }
public void Not_Equal_When_MutKod_Is_Different() { var x = GetPrescriptionProduct(); var y = GetPrescriptionProduct(); y.MutKod = MutKod.RecordUpdated; var comparer = new PrescriptionProductComparer(); bool result = comparer.Equals(x, y); Assert.IsFalse(result); }