public ChangeDetector_Tests() { sut = new ChangeDetector(); originalObject = new SimplePoco() { ID = 30, name = "Name", boolean = true, date = DateTime.MinValue, number = 42 }; changedObject = new SimplePoco() { ID = 30, name = "Kyle", boolean = true, date = DateTime.MinValue, number = 42 }; }
public void SimplePocoMultipleChanges() { var old = new SimplePoco() { ID = 30, name = "Name", boolean = true, date = DateTime.MinValue, number = 42 }; var changed = new SimplePoco() { ID = 30, name = "Kyle", boolean = false, date = DateTime.MinValue, number = 42 }; List <Change> result = sut.GetChanges(old, changed, "Kyle", date); Assert.Equal(2, result.Count); }