fluentassertions / fluentassertions/fluentassertions.datasets
NotHaveColumn assertion for data tables
- Dominant language
- C#
- Stars
- 1
- Forks
- 4
- Avg merge
- 8h 19m
- Merged PRs (30d)
- 3
Description
### 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_
Contributor guide
Research direction
Start at the existing DataTableAssertions HaveColumn assertion and review the data-table documentation linked in the issue. Add the proposed NotHaveColumn API for the shown DataTable usage, then verify that the assertion behaves correctly and follows the existing assertion conventions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100