Include Minutes(), Hours() and Days() extension methods on integers, for better readability of DateTime assertions.
For example:
public static TimeSpan Minutes(this int source)
{
return TimeSpan.FromMinutes(source);
}
This allows assertions like:
theDateTime.Should().BeLessThan(10.Minutes().Before(otherDateTime));
Comments: ** Comment from web user: dennisdoomen **
For example:
public static TimeSpan Minutes(this int source)
{
return TimeSpan.FromMinutes(source);
}
This allows assertions like:
theDateTime.Should().BeLessThan(10.Minutes().Before(otherDateTime));
Comments: ** Comment from web user: dennisdoomen **
Should be closed after the release