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: Resolved with changeset 62358.
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: Resolved with changeset 62358.