private void AssertChange(string from, string name, ChangeType change, DiffConfig config) { PropertyDetail r1 = ExtractProperty(Subjects.One, from, name, config); PropertyDetail r2 = ExtractProperty(Subjects.Two, from, name, config); Align(r1, r2); Assert.AreEqual(change, r2.PerformCompare(r1)); }
public void EndToEnd_ChildrenOfAddedItem() { PropertyDetail pd1 = ExtractProperty(Subjects.One, "BasicClass", "PropertyAdded"); PropertyDetail pd2 = ExtractProperty(Subjects.Two, "BasicClass", "PropertyAdded"); Align(pd1, pd2); pd2.PerformCompare(pd1); Assert.AreEqual(ChangeType.Added, pd2.Change); foreach (ICanCompare child in pd2.FilterChildren <ICanCompare>()) { Assert.AreEqual(ChangeType.Added, child.Change); } }