ValeraT1982 / ObjectsComparer

C# Framework provides mechanism to compare complex objects, allows to override comparison rules for specific properties and types.
MIT License
352 stars 86 forks source link

Same DateTime property value is being returned under differences #20

Closed abhishekkandi closed 3 years ago

abhishekkandi commented 3 years ago

image image image

ValeraT1982 commented 3 years ago

@abhishekkandi, I think it's because values are actually different. You call GetSample1Data() 2 times (which calls DateTime.UtcNow 2 times). Values have the same string representation, but the second one must be bigger by several milliseconds.

abhishekkandi commented 3 years ago

Right, Makes sense.