Upgrading to version 9.0
Changing all FluentAssertions namings to AwesomeAssertions
As of v9, we’ve decided to change all FluentAssertions namings to AwesomeAssertions. This affects namespaces as well as assembly, project and solution names.
There are no functional changes in this release on purpose to give users more time to migrate without missing any new features and fixes.
Upgrading
Replacing namespaces
When upgrading to v9 it should be sufficient in most cases to simply replace all occurrences of FluentAssertions with AwesomeAssertions.
Unfortunately, global using cannot be used to map between the namespaces, because no using alias can be used in the declaration of a using directive.
But, global using can be used to migrate step by step:
- Add global usings for FluentAssertions like this in your
csprojfile:<ItemGroup> <Using Include="FluentAssertions"/> <Using Include="FluentAssertions.Execution"/> <Using Include="FluentAssertions.Extensions"/> </ItemGroup> - Start removing explicit
usingstatements for FluentAssertions in your tests. - When you’re done, simply update the package reference and the global usings in your project file.