jozefizso / SystemWrapper

.NET library for easier testing of system APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IDateTime doesn't implement IComparable

galmok opened this issue · comments

I was using linq with DateTime objects, now converted to IDateTime, but ordering them didn't work due to IComparable not being implemented for IDateTime.

The original DateTime object inherits from these interfaces:

IComparable, IFormattable, IConvertible, ISerializable, IComparable,IEquatable

Is this something IDateTime is supposed to offer?

Yes, it makes sense for the wrapper to implement all the interfaces of the wrapped type.

commented

See here for a change which adds support for equality and comparison.