Skip to content

Missing overloads/methods of assertions that existed prior to 0.70 #3391

Description

@benjaminsampica

Prior to 0.70, these methods existedIsOrderedByDescending and IsOrderedBy that had the following surface.

        await Assert.That(result.Items).IsOrderedBy(i => i.Name);
        await Assert.That(result.Items).IsOrderedByDescending(i => i.Name);

Additionally an overload for Contains on IEnumerable were pruned, too. For example:

        await Assert.That(httpResponse.Headers).Contains(h => h.Key == "HX-Trigger");

Also it seems like the pull request that closed #3387 and released in 0.71.4 did not fix IsTypeOf<>(), as this still does not compile. An example:

        await Assert.That(new List<string>()).IsTypeOf<List<string>>();

Anything prior to 0.70.x works for all of the above.

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