public void Equal_When_All_Fields_Are_Equal() { var x = CreateProduct(); var y = CreateProduct(); var comparer = new ProductComparer(); bool result = comparer.Equals(x, y); Assert.IsTrue(result); }
public void Not_Equal_When_MutKod_Is_Different() { var x = CreateProduct(); var y = CreateProduct(); y.MutKod = MutKod.RecordUpdated; var comparer = new ProductComparer(); bool result = comparer.Equals(x, y); Assert.IsFalse(result); }
public void Not_Equal_When_HpKode_Is_Different() { var x = CreateProduct(); var y = CreateProduct(); y.HpKode = 4; var comparer = new ProductComparer(); bool result = comparer.Equals(x, y); Assert.IsFalse(result); }