1

Closed

DateTime Issue

description

I got the following error when comparing two DateTime:

10/06/2011 9:47:23 Should Be Equal To 10/06/2011 9:47:23.

The code reproducing it is pretty much basic:

sameOrder.DateTime.Should().Be.EqualTo(order.DateTime);

I think this is an issue.
Closed Sep 25, 2011 at 2:31 PM by fabiomaulo
I had same problem (Fixed)
Thanks.

comments

mahara wrote Jun 10, 2011 at 4:04 AM

After using Assert.AreEqual(), it reveals the difference in time precision, especially milliseconds. I think ShartTestEx should display the milliseconds to make it clearer.