Skip to content

Migrate from Should to FluentAssertions #2893

@TheCakeIsNaOH

Description

@TheCakeIsNaOH

Is Your Feature Request Related To A Problem? Please describe.

Currently, the integration tests library uses the Should nuget package for assertions in tests.
This package is only build for .Net framework, and not newer Dotnet versions.
It appears to be abandoned, with the last release to nuget.org pushed what is getting close to a decade ago, and old un-merged pulled requests on the source repository:
erichexter/Should#19

It does not have a complete complement of assertions, there are other libraries with more.

Describe The Solution. Why is it needed?

So it would be good to switch to another library that is built for .Net Standard, so it can be used with .Net 4.8 and the forthcoming dotnet build.

There are two popular options for assertion libraries that I am aware of:
https://www.nuget.org/packages/FluentAssertions
And
https://www.nuget.org/packages/Shouldly

As far as I am aware, they should be both good options, and it is up to whatever team members like better, or which is already in use elsewhere.

Additional Context.

N/A

Related Issues

Metadata

Metadata

Labels

5 - ReleasedNO RELEASE NOTESShould not be included in the release notes - not enhancing or fixing end product.TaskTestsIssues related to the tests (NUnit or Pester)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions