Skip to content

Awaiting HasSingleItem() doesn't return the item anymore #3420

@B3RR10

Description

@B3RR10

Sorry for all the issues, and thanks for your work.

Previously, awaiting the method HasSingleItem() returned the element, instead of the enumerable.

Previously (IMHO the correct one):

Item singleItem = await Assert.That(list).IsNotNull().And.HasSingleItem();

Now:

IEnumerable<Item> items = await Assert.That(list).IsNotNull().And.HasSingleItem();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions