public static NextDay ( this day ) : DayOfWeek | ||
day | this | |
return | DayOfWeek |
public void NextDayTest() { TimeTool.NextDay(DayOfWeek.Monday).Should().Be(DayOfWeek.Tuesday); TimeTool.NextDay(DayOfWeek.Tuesday).Should().Be(DayOfWeek.Wednesday); TimeTool.NextDay(DayOfWeek.Wednesday).Should().Be(DayOfWeek.Thursday); TimeTool.NextDay(DayOfWeek.Thursday).Should().Be(DayOfWeek.Friday); TimeTool.NextDay(DayOfWeek.Friday).Should().Be(DayOfWeek.Saturday); TimeTool.NextDay(DayOfWeek.Saturday).Should().Be(DayOfWeek.Sunday); TimeTool.NextDay(DayOfWeek.Sunday).Should().Be(DayOfWeek.Monday); }