fluentassertions / fluentassertions/fluentassertions.datasets

NotHaveColumn assertion for data tables

オープン
#1 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
1
フォーク
4
平均マージ
8時間 19分
マージ済み PR(30日)
3

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。