fluentassertions / fluentassertions/fluentassertions.datasets

NotHaveColumn assertion for data tables

Đang mở
#1 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
1
Fork
4
Merge trung bình
8 giờ 19 phút
Pull request đã merge (30 ngày)
3

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.