fluentassertions / fluentassertions/fluentassertions.analyzers
Missing negation when transforming OnlyContain
Offen
bug
- Vorherrschende Sprache
- C#
- Sterne
- 131
- Forks
- 25
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When applying the codefix for `CollectionShouldNotContainProperty`, the comparison inside the lambda should also be negated.
```c#
actual.Should().OnlyContain(x => x.OtherProperty == expectedValue); // before
actual.Should().NotContain(x => x.OtherProperty == expectedValue); // after
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.