A Roslyn analyzer to help migrate from Xunit / NUnit assertions to FluentAssertions
$ dotnet add package Meziantou.FluentAssertionsAnalyzersMeziantou.FluentAssertionsAnalyzers is a Roslyn analyzer to help migrate from Xunit or NUnit assertions to Fluent Assertions.
Install the NuGet package: Meziantou.FluentAssertionsAnalyzers
You can exclude assertion methods using the .editorconfig file:
[*.cs]
mfa_excluded_methods=M:NUnit.Framework.Assert.Fail|M:NUnit.Framework.Assert.Fail(System.String)