fluentassertions / fluentassertions/fluentassertions.datasets
NotHaveColumn assertion for data tables
- 主要语言
- 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