public static NextMonth ( this startMonth ) : YearAndMonth | ||
startMonth | this | |
Résultat | YearAndMonth |
public void NextMonthTest() { for (var i = 1; i <= TimeSpec.MonthsPerYear; i++) { TimeTool.NextMonth(i).Month.Should().Be(i % TimeSpec.MonthsPerYear + 1); } }