From MBUnit I'm trying to check if the values of two objects are the same with
Assert.AreSame(RawDataRow, result);
However, I get the following crash:
Expected Value & Actual Value : {RawDataRow: CentreID = "CentreID1",
CentreLearnerRef = "CentreLearnerRef1",
ContactID = 1, DOB = 2010-05-05T00:00:00.0000000,
Email = "Email1", ErrorCodes = "ErrorCodes1",
ErrorDescription = "ErrorDescription1", FirstName = "FirstName1"}
Note. Both values look the same when formatted, but they are different instances.
I do not want to go through each property. Can I do this from MbUnit?
source
share