Meziantou.FluentAssertionsAnalyzers

August 2, 2025 ยท View on GitHub

NuGet build GitHub license

Meziantou.FluentAssertionsAnalyzers

Meziantou.FluentAssertionsAnalyzers is a Roslyn analyzer to help migrate from Xunit or NUnit assertions to Fluent Assertions.

Installation

Install the NuGet package: Meziantou.FluentAssertionsAnalyzers

Configuration

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)

Contents

  1. 1Installation
  2. 2Configuration