Comparing two objects that are the same in MbUnit
Posted
by Coppermill
on Stack Overflow
See other posts from Stack Overflow
or by Coppermill
Published on 2010-05-07T11:49:56Z
Indexed on
2010/05/07
13:08 UTC
Read the original article
Hit count: 313
mbunit
|unit-testing
From MBUnit I am trying to check if the values of two objects are the same using
Assert.AreSame(RawDataRow, result);
However I am getting the following fail:
======================
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"}
Remark : Both values look the same when formatted but they are distinct instances.
======================
I don't want to have to go through each property, can I do this from MbUnit
© Stack Overflow or respective owner