Shouldly 3.0.2

Shouldly - Assertion framework for .NET. The way asserting *Should* be

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Shouldly -Version 3.0.2
dotnet add package Shouldly --version 3.0.2
<PackageReference Include="Shouldly" Version="3.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Shouldly --version 3.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Shouldly Logo

Shouldly is an assertion framework which focuses on giving great error messages when the assertion fails while being simple and terse.

This is the old Assert way:

Assert.That(contestant.Points, Is.EqualTo(1337));

For your troubles, you get this message, when it fails:

Expected 1337 but was 0

How it Should be:

contestant.Points.ShouldBe(1337);

Which is just syntax, so far, but check out the message when it fails:

contestant.Points should be 1337 but was 0

Shouldly 3.0.2 Release Notes

Release notes for version 3.0.2 can be found here.

Shouldly Logo

Shouldly is an assertion framework which focuses on giving great error messages when the assertion fails while being simple and terse.

This is the old Assert way:

Assert.That(contestant.Points, Is.EqualTo(1337));

For your troubles, you get this message, when it fails:

Expected 1337 but was 0

How it Should be:

contestant.Points.ShouldBe(1337);

Which is just syntax, so far, but check out the message when it fails:

contestant.Points should be 1337 but was 0

Shouldly 3.0.2 Release Notes

Release notes for version 3.0.2 can be found here.

NuGet packages (48)

Showing the top 5 NuGet packages that depend on Shouldly:

Package Downloads
Takenet.MessagingHub.Client.Tester
The tester library for the C# SDK of the Messaging Hub
Lexepars.TestFixtures
Package Description
Saucery2
Sourcery for SauceLabs - Unlocking SauceLabs capability.
Saucery3
Sourcery for SauceLabs - Unlocking SauceLabs capability
AUT.ConfigureTestProjects
Helper methods collection. Explore functionality for increase coverage gain.

GitHub repositories (138)

Showing the top 5 popular GitHub repositories that depend on Shouldly:

Repository Stars
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
mono/mono
Mono open source ECMA CLI, C# and .NET implementation.
AutoMapper/AutoMapper
A convention-based object-object mapper in .NET.
reactiveui/ReactiveUI
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
ThreeMammals/Ocelot
.NET core API Gateway

Version History

Version Downloads Last updated
4.0.0-beta0004 934 10/16/2020
4.0.0-beta0003 4,007 9/21/2020
4.0.0-beta0002 274,056 6/14/2019
4.0.0-beta0001 131,150 1/11/2019
3.0.2 4,607,673 11/6/2018
3.0.1 508,219 9/20/2018
3.0.0 1,746,336 1/19/2018
3.0.0-beta0003 59,592 8/2/2017
3.0.0-beta0001 2,640 7/19/2017
2.8.3 885,021 6/5/2017
2.8.2 770,495 8/13/2016
2.8.1 41,876 7/23/2016
2.8.0 159,595 6/17/2016
2.7.0 120,780 4/4/2016
2.7.0-beta0003 3,008 2/2/2016
2.7.0-beta0002 1,049 1/30/2016
2.7.0-beta0001 1,458 1/2/2016
2.6.0 228,980 9/6/2015
2.5.0 89,002 4/12/2015
2.4.0 43,446 1/29/2015
2.3.1 13,930 12/15/2014
2.3.0 2,950 11/21/2014
2.2.1 4,905 10/22/2014
2.2.0 17,564 9/8/2014
2.1.1 37,480 3/19/2014
2.1.0 2,228 3/13/2014
1.1.1.1 124,411 4/21/2012
1.1.1 2,059 3/9/2012
1.1.0.6 772 4/21/2012
1.1.0.4 9,107 11/18/2011
1.1.0.3 813 11/15/2011
1.1.0.2 804 11/15/2011
1.1.0.1 853 11/3/2011
1.1.0 1,276 9/23/2011
1.0.1.77 974 9/13/2011
1.0.1.73 1,110 7/31/2011
1.0.1.71 885 7/31/2011
1.0.1.69 958 5/26/2011
1.0.1.68 951 5/25/2011
1.0.1.67 980 5/18/2011
1.0.1.66 957 5/18/2011
1.0.1.63 1,075 3/28/2011
1.0.1.62 1,026 3/17/2011
1.0.1.60 2,614 2/24/2011
Show less