NUnit - Assert to check all properties are equal?

nunit

Solution

I don't believe there is.

Assert.AreEqual compares non-numeric types by Equals. Assert.AreSame checks if they refer to the same object

Problem

Is there an assertion built into Nunit that checks all properties between 2 objects are the same, without me having to override Equals? I'm currently using reflection to Assert each individual property for a pair of objects.

Original source

Related problems