Skip to content

Has.One as synonym for Has.Exactly(1).Items #2004

Closed
@CharliePoole

Description

@CharliePoole

As discussed in the context of issue #1790, we would like to implement this so that the following work:

Short Form Long Form
Has.One Has.Exactly(1).Items
Has.One.EqualTo("X") Has.Exactly(1).Items.EqualTo("X")

Similarly, we should add One wherever we now allow Exactly, e.g.: in ConstraintExpression.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions