fluentassertions / fluentassertions/fluentassertions.datasets

NotHaveColumn assertion for data tables

未关闭
#1 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
1
派生
4
平均合并
8 小时 19 分钟
30 天内合并 PR
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_

贡献指南

打开贡献指南

调研方向

从现有的 DataTableAssertions HaveColumn assertion 入手,查看 issue 中链接的 data-table 文档。为所示的 DataTable 用法添加提议的 NotHaveColumn API,然后验证该 assertion 的行为是否正确,并遵循现有的 assertion 约定。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
testing
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。