Skip to content

Expand NUnitEquality to use Equality of all Properties #4394

@manfred-brands

Description

@manfred-brands

We have several class that we don't want to implement IEquatable<> for the sake of NUnit tests.

To compare these we have created a ReflectionAssert.PropertiesEqual class.
This class gets all the properties of a class and calls the method recursively on those.
If any properties implements IEquatable<> it will call the Equals method instead.
It would be a nice feature to add for NUnit4 so that we can compare more classes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions