Skip to content

Extensions

Michael Brown edited this page Nov 30, 2018 · 1 revision

Using the extensions is the most straightforward to perform diffs:

using AnyDiff.Extensions;

var object1 = new MyComplexObject(1, "A string");
var object2 = new MyComplexObject(2, "A different string");
var diff = object1.Diff(object2);
Assert.AreEqual(diff.Count, 2);