fluentassertions / fluentassertions/fluentassertions.analyzers
Missing negation when transforming OnlyContain
- Langage dominant
- C#
- Étoiles
- 131
- Forks
- 25
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Localisez le codefix pour CollectionShouldNotContainProperty et examinez comment il transforme OnlyContain. Reproduisez l’exemple avant/après, puis vérifiez que l’assertion générée utilise NotContain et nie la comparaison de la lambda.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- testing-qa, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100