public void AddDaysTest() { Assert.Equal(DayOfWeek.Monday, TimeTool.AddDays(DayOfWeek.Sunday, 1)); Assert.Equal(DayOfWeek.Tuesday, TimeTool.AddDays(DayOfWeek.Monday, 1)); Assert.Equal(DayOfWeek.Wednesday, TimeTool.AddDays(DayOfWeek.Tuesday, 1)); Assert.Equal(DayOfWeek.Thursday, TimeTool.AddDays(DayOfWeek.Wednesday, 1)); Assert.Equal(DayOfWeek.Friday, TimeTool.AddDays(DayOfWeek.Thursday, 1)); Assert.Equal(DayOfWeek.Saturday, TimeTool.AddDays(DayOfWeek.Friday, 1)); Assert.Equal(DayOfWeek.Sunday, TimeTool.AddDays(DayOfWeek.Saturday, 1)); Assert.Equal(DayOfWeek.Sunday, TimeTool.AddDays(DayOfWeek.Monday, -1)); Assert.Equal(DayOfWeek.Monday, TimeTool.AddDays(DayOfWeek.Tuesday, -1)); Assert.Equal(DayOfWeek.Tuesday, TimeTool.AddDays(DayOfWeek.Wednesday, -1)); Assert.Equal(DayOfWeek.Wednesday, TimeTool.AddDays(DayOfWeek.Thursday, -1)); Assert.Equal(DayOfWeek.Thursday, TimeTool.AddDays(DayOfWeek.Friday, -1)); Assert.Equal(DayOfWeek.Friday, TimeTool.AddDays(DayOfWeek.Saturday, -1)); Assert.Equal(DayOfWeek.Saturday, TimeTool.AddDays(DayOfWeek.Sunday, -1)); Assert.Equal(DayOfWeek.Sunday, TimeTool.AddDays(DayOfWeek.Sunday, 14)); Assert.Equal(DayOfWeek.Monday, TimeTool.AddDays(DayOfWeek.Monday, 14)); Assert.Equal(DayOfWeek.Tuesday, TimeTool.AddDays(DayOfWeek.Tuesday, 14)); Assert.Equal(DayOfWeek.Wednesday, TimeTool.AddDays(DayOfWeek.Wednesday, 14)); Assert.Equal(DayOfWeek.Thursday, TimeTool.AddDays(DayOfWeek.Thursday, 14)); Assert.Equal(DayOfWeek.Friday, TimeTool.AddDays(DayOfWeek.Friday, 14)); Assert.Equal(DayOfWeek.Saturday, TimeTool.AddDays(DayOfWeek.Saturday, 14)); Assert.Equal(DayOfWeek.Sunday, TimeTool.AddDays(DayOfWeek.Sunday, -14)); Assert.Equal(DayOfWeek.Monday, TimeTool.AddDays(DayOfWeek.Monday, -14)); Assert.Equal(DayOfWeek.Tuesday, TimeTool.AddDays(DayOfWeek.Tuesday, -14)); Assert.Equal(DayOfWeek.Wednesday, TimeTool.AddDays(DayOfWeek.Wednesday, -14)); Assert.Equal(DayOfWeek.Thursday, TimeTool.AddDays(DayOfWeek.Thursday, -14)); Assert.Equal(DayOfWeek.Friday, TimeTool.AddDays(DayOfWeek.Friday, -14)); Assert.Equal(DayOfWeek.Saturday, TimeTool.AddDays(DayOfWeek.Saturday, -14)); } // AddDaysTest