fluentassertions / fluentassertions/fluentassertions.datasets

NotHaveColumn assertion for data tables

Aperta
#1 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
1
Fork
4
Merge medio
8h 19m
PR unite (30g)
3

Descrizione

### Background and motivation

As per the documentation https://fluentassertions.com/data/

Currently there is a HaveColumn assertion for data tables, but there is no NotHaveColumn

### API Proposal

this probably isn't right, but should give an indication:

```C#
public class DataTableAssertions
{
public AndConstraint NotHaveColumn(string columnName, string because = "", params object[] becauseArgs);
}
```

### API Usage

```C#
var table = new DataTable();
table.Should().NotHaveColumn("User")
```

### Alternative Designs

_No response_

### Risks

_No response_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.