fluentassertions / fluentassertions/fluentassertions.analyzers
Don't suggest FAA0002 for xunit 3's Assert.Skip... usage
- Lingua principale
- C#
- Stelle
- 131
- Fork
- 25
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Currently when using conditional tests with xUnit 3's Assert.Skip... I get the notification that I should use the Fluent Assertions alternative, however no such alternative exists.
```csharp
[Fact]
public void TestsSomething()
{
Assert.SkipWhen(true, reason: "skip this when true"); // <- this should not raise an analyzer FAA0002 issue.
// Arrange
// ...
// Act
var result = true;
// Assert
result.Should().BeFalse();
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Locate the implementation and tests for diagnostic FAA0002, then reproduce the example using xUnit 3's Assert.SkipWhen. Update the analyzer behavior so Assert.Skip... calls do not raise FAA0002, and add a regression test confirming the diagnostic is absent while applicable Fluent Assertions guidance remains covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100