DeepEqual 4.1.0
DeepEqual
DeepEqual is an extensible deep equality comparison library.
Installing
Install via NuGet
Install-Package DeepEqual
Usage
To test equality simply call the IsDeepEqual extension method.
bool result = object1.IsDeepEqual(object2);
When used inside a test you might want to call ShouldDeepEqual instead. This method throws an exception with a detailed description of the differences between the 2 objects.
object1.ShouldDeepEqual(object2);
You can pass a custom comparison as the second argument to the ShouldDeepEqual method to override the default behaviour. You can also customize the behaviour inline using the WithDeepEqual extension method.
object1.WithDeepEqual(object2)
.SkipDefault<MyEntity>()
.IgnoreSourceProperty(x => x.Id)
.Assert()
No packages depend on DeepEqual.
.NET Core 3.1
- No dependencies.
.NET 6.0
- No dependencies.
.NET Standard 2.0
- Microsoft.CSharp (>= 4.7.0)
- System.Collections.Immutable (>= 6.0.0)
.NET Standard 2.1
- Microsoft.CSharp (>= 4.7.0)
- System.Collections.Immutable (>= 6.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.0.0-rc2 | 5 | 09/29/2026 |
| 6.0.0-rc1 | 8 | 09/29/2026 |
| 6.0.0-alpha3 | 7 | 09/29/2026 |
| 6.0.0-alpha2 | 7 | 09/29/2026 |
| 6.0.0-alpha | 8 | 09/29/2026 |
| 5.1.0 | 6 | 09/29/2026 |
| 5.0.0 | 6 | 09/29/2026 |
| 4.2.1 | 10 | 09/28/2026 |
| 4.2.0 | 6 | 09/29/2026 |
| 4.1.0 | 7 | 09/29/2026 |
| 4.0.1 | 7 | 09/29/2026 |
| 4.0.0 | 7 | 09/30/2026 |
| 3.0.0 | 7 | 09/29/2026 |
| 2.0.0 | 9 | 09/28/2026 |
| 1.7.1 | 5 | 09/30/2026 |
| 1.6.0 | 7 | 09/29/2026 |
| 1.5.1 | 7 | 09/29/2026 |
| 1.5.0 | 5 | 09/29/2026 |
| 1.4.0 | 10 | 09/29/2026 |
| 1.3.0 | 9 | 09/29/2026 |
| 1.2.0 | 8 | 09/29/2026 |
| 1.1.1 | 8 | 09/29/2026 |
| 1.1.0 | 7 | 09/29/2026 |
| 1.0.0 | 7 | 09/29/2026 |