fluentassertions / fluentassertions/fluentassertions.analyzers
Missing negation when transforming OnlyContain
Aperta
bug
- Lingua principale
- C#
- Stelle
- 131
- Fork
- 25
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.