fluentassertions.analyzers
fluentassertions.analyzers copied to clipboard
Analyzers based on the FluentAssertions best practices docs
### Description When using [global usings](https://blog.jetbrains.com/dotnet/2021/11/18/global-usings-in-csharp-10/), analyzers no longer report any diagnostics. ### Expected behavior: Be able to use global usings, either: - From a source file `GlobalUsings.cs` that contains:...
### Description AssertIsTrue: Simplify Assertion does not offer automatic fix to apply. ### Complete minimal example reproducing the issue This gets a suggestion but there is no fix shown to...
### Description Newly added functionality enabling easy move from MSTest Asserts to fluent assertions does not work if Assert is not on the top level of nesting in a test...
Related to #124
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/ExceptionAsserts.cs
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/CollectionAsserts.cs - [ ] All - [ ] AllAsync? - [ ] Collection - [ ] CollectionAsync? - [ ] Contains - [ ] Distinct -...
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/TypeAsserts.cs
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/StringAsserts.cs
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/SpanAsserts.cs - [ ] `Contains(Span expectedSubSpan, Span actualSpan)` - [ ] `Contains(Span expectedSubSpan, ReadOnlySpan actualSpan)` - [ ] `Contains(ReadOnlySpan expectedSubSpan, Span actualSpan)` - [ ] `Contains(ReadOnlySpan...
The asserts defined in https://github.com/xunit/assert.xunit/blob/main/SetAsserts.cs - [x] Contains(T expected, ISet set) #234 - [x] Contains(T expected, IReadOnlySet set) #234 - [x] Contains(T expected, HashSet set) #234 - [x] Contains(T expected,...