fluentassertions.analyzers icon indicating copy to clipboard operation
fluentassertions.analyzers copied to clipboard

Analyzers based on the FluentAssertions best practices docs

Results 46 fluentassertions.analyzers issues
Sort by recently updated
recently updated
newest added

Remaining issues from #145 Assertions with `StringComparison comparisonType` - [ ] `Contains(string expectedSubstring, string actualString, StringComparison comparisonType)` - [ ] `DoesNotContain(string expectedSubstring, string actualString, StringComparison comparisonType)` - [ ] `Equal(string...

FluentAssertions-V7

### Description When running this analyzer on the codebase at https://github.com/SteeltoeOSS/Steeltoe, the fixers produce code that doesn't compile in several cases. After fixing them manually, various tests start to fail....

bug

for each diagnostic the line https://github.com/fluentassertions/fluentassertions.analyzers/blob/2d7b3b499b22412846c4a90f83fe96bf9d49ceb9/src/FluentAssertions.Analyzers/Tips/CodeFixProviderBase.cs#L40C17-L40C107 is evaluated for mstest/xunit/nunit for each diagnostic the following code https://github.com/fluentassertions/fluentassertions.analyzers/blob/2d7b3b499b22412846c4a90f83fe96bf9d49ceb9/src/FluentAssertions.Analyzers/Tips/TestingFrameworkCodeFixProvider.cs#L95C1-L113C29 is executed. additional code-fixers are ignored at this point this https://github.com/fluentassertions/fluentassertions.analyzers/pull/327/files#diff-37b65e82eec06aaabf9005eea356845af2c134bfe87ea4278308c625cbd8b1a5R50 is not...

### Description `Assert.NotNull` from xunit has annotations that .NET. This method is thus not just to convert in the same vein as most other xunit assertions. ### Complete minimal example...