8 packages tagged with “DeepEqual”
What you have been waiting for. Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects.
An extensible deep comparison library for .NET
Add deep object comparison to your NUnit assertions. Simply use Is.DeepEqualTo in place of Is.EqualTo.
Test helpers
Forked https://github.com/GregFinzer/Compare-Net-Objects added new config for personal use
DeepEqual.Bindings extends the idea of comparing 2 object graphs (DeepEqual library). By default, nodes not matched by name between graphs make objects not equal. With DeepEqual.Bindings you can override that behavior. You can bind nodes with different names by specifying how they are compared by expression. The most common usage looks like this: var a1 = new A1 { B1 = new B1 { Y = "value" } }; var a2 = new A2 { B2 = new B2 { Y = "value" } }; var comparer = ExtendedComparer<A1, A2>.New() .Bind(x1 => x1.B1, x2 => x2.B2); var result = comparer.Compare(a1, a2); //result is true.
An extension to DeepEqual for comparing System.Test.Json types