NextDay() public static method

다음 요일
public static NextDay ( this day ) : DayOfWeek
day this
return DayOfWeek
Example #1
0
 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);
 }