Skip to content

Commit

Permalink
Cover handling leap and not leap years
Browse files Browse the repository at this point in the history
  • Loading branch information
aidmsu committed Apr 20, 2017
1 parent 319bc6a commit d463234
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Cronos.Tests/CronExpressionFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,10 @@ public void GetNextOccurrence_ReturnsDateTimeWithUtcKind(bool inclusive)
[InlineData("* * * ? * *", "2099-12-09 16:46", "2099-12-09 16:46")]

// Day of 100-year and not 400-year.
[InlineData("* * * * * *", "1900-01-20 16:46", "1900-01-20 16:46")]
[InlineData("* * * * * *", "1900-02-20 16:46", "1900-02-20 16:46")]

// Day of 400-year
[InlineData("* * * * * *", "2000-02-28 16:46", "2000-02-28 16:46")]

// Last day of 400-year.
[InlineData("* * * * * *", "2000-12-31 16:46", "2000-12-31 16:46")]
Expand Down

0 comments on commit d463234

Please sign in to comment.