tags:

views:

466

answers:

2

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.

A: 

I don't believe there is.

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

AdaTheDev