VOOZH about

URL: https://www.nuget.org/packages/DeepEqual/

⇱ NuGet Gallery | DeepEqual 5.1.0




DeepEqual 5.1.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package DeepEqual --version 5.1.0
 
 
NuGet\Install-Package DeepEqual -Version 5.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DeepEqual" Version="5.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DeepEqual" Version="5.1.0" />
 
Directory.Packages.props
<PackageReference Include="DeepEqual" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DeepEqual --version 5.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DeepEqual, 5.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DeepEqual@5.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DeepEqual&version=5.1.0
 
Install as a Cake Addin
#tool nuget:?package=DeepEqual&version=5.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DeepEqual

DeepEqual is an extensible deep equality comparison library.

Installing

Install via NuGet (https://www.nuget.org/packages/DeepEqual/)

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()
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 is compatible. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on DeepEqual:

Package Downloads
ShouldBeLike

Shouldly like tool for asserting likeness based on James Fosters' DeepEqual library.

DeepEqual.Bindings

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.

DeepEqual.System.Text.Json

An extension to DeepEqual for comparing System.Test.Json types

TestHelper

Test helpers

ExcelAbstraction.Tests

Tests for ExcelAbtraction implementations

GitHub repositories (7)

Showing the top 7 popular GitHub repositories that depend on DeepEqual:

Repository Stars
ppy/osu
rhythm is just a *click* away!
rnwood/smtp4dev
smtp4dev - the fake smtp email server for development and testing
linvi/tweetinvi
Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
SapphireDb/SapphireDb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
rpgmaker/NetJSON
Faster than Any Binary? Benchmark: http://theburningmonk.com/2014/08/json-serializers-benchmarks-updated-2/
MATRIX-feather/LLin
从mfosu中分离出来的下载加速 & 游戏内音乐播放器
TrakHound/MTConnect.NET
Fully featured .NET library in C# to build MTConnect Agent, Adapter, and Client Applications. Pre-built Agents with Windows Installers. Support for Windows and Linux. Supports MTConnect Versions up to 2.7. Supports .NET Framework 4.6.1 through .NET 9
Version Downloads Last Updated
6.0.0-rc2 142,113 6/3/2024
6.0.0-rc1 316 5/31/2024
6.0.0-alpha3 343 5/30/2024
6.0.0-alpha2 271 5/29/2024
6.0.0-alpha 294 5/29/2024
5.1.0 2,210,887 5/28/2024
5.0.0 635,953 2/6/2024
4.2.1 6,873,597 10/27/2022
4.2.0 6,436 10/27/2022
4.1.0 219,053 9/10/2022
4.0.1 83,885 8/20/2022
4.0.0 4,991 8/20/2022
3.0.0 6,814 8/20/2022
2.0.0 6,385,139 12/7/2018
1.7.1 88,295 12/4/2018
1.6.0 1,236,556 4/25/2016
1.5.1 51,497 3/8/2016
1.5.0 79,836 1/13/2016
Loading failed