Skip to content

Should().BeEquivalent() missing from IComparableAssertions #755

@wastaz

Description

@wastaz

Before the big 5.0 breaking change when ShouldBeEquivalentTo still existed I could do the following

var thing = GetMyComparable();
var expected = new MyClassThatImplementsIComparable();
thing.ShouldBeEquivalentTo(expected);

However after 5.0 when attempting to fix this by changing thing.ShouldBeEquivalentTo(expected) to thing.Should().BeEquivalentTo(expected) I notice that this is not possible. Should() is returning an IComparableAssertions object which does not have a BeEquivalentTo method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions