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.
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.PropertiesEqualclass.This class gets all the properties of a class and calls the method recursively on those.
If any properties implements
IEquatable<>it will call theEqualsmethod instead.It would be a nice feature to add for NUnit4 so that we can compare more classes.