benaston/NBasicExtensionMethod — pull request #1 by mcantillon (2012-06-08 09:26:12+00:00)
Title: Small fix to IsInFuture

Hi,

I like this project and thought I would help out be writing some unit tests for it. In doing this for IsInFuture I found that it didn't work as expected.
When writing the following I found it returned false.

DateTime dtFutureDate = DateTime.Now.AddDays(2);
dtFutureDate.IsInFuture().Should().BeTrue();

From looking at the MSDN for DateTime.Compare I found that the expected result of <= 0 in IsInFuture was wrong for the order of the parameters. So I have changed it to > 0 and the tests pass.

Thought I would send you this small change now so you can benefit from it. I'll send you the unit tests when I am done or there is a large number.

Thank you for your efforts with this code and with NFeature they have helped me a lot. :)

Matt.