public CountForFirstDays ( int numberOfDays ) : int | ||
numberOfDays | int | |
Результат | int |
public void Count_for_first_six_days_of_busy_week() { var counts = new int[] { 5, 9, 12, 6, 8, 8, 17 }; var birdCount = new BirdCount(counts); Assert.Equal(48, birdCount.CountForFirstDays(6)); }
public void Count_for_first_three_days_of_disappointing_week() { var counts = new int[] { 0, 0, 1, 0, 0, 1, 0 }; var birdCount = new BirdCount(counts); Assert.Equal(1, birdCount.CountForFirstDays(3)); }