fluentassertions / fluentassertions/fluentassertions.analyzers

Missing negation when transforming OnlyContain

Aperta
#2 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.