Skip to content

NotHaveColumn assertion for data tables #1

Description

@MattFennerT1

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:

public class DataTableAssertions
{
    public AndConstraint<TAssertions> NotHaveColumn(string columnName, string because = "", params object[] becauseArgs);
}

API Usage

var table = new DataTable();
table.Should().NotHaveColumn("User")

Alternative Designs

No response

Risks

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions