CountForFirstDays() public method

public CountForFirstDays ( int numberOfDays ) : int
numberOfDays int
return int
Ejemplo n.º 1
0
    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));
    }
Ejemplo n.º 2
0
    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));
    }