Description
The CollectionShouldNotContainProperty is triggered when the assertions already seems idiomatic.
An example is when the expression inside OnlyContain contains no negations.
var list = new[] { "" };
list.Should().OnlyContain(e => e.Contains(""));
Expected behavior:
The analyzer should not be triggered, as the assertion is already idiomatic.
Actual behavior:
The analyzer is triggered.
Versions
Fluent Assertions Analyzers 0.11.2
.NET Framework 4.6.1