IncrementTodaysCount() 공개 메소드

public IncrementTodaysCount ( ) : void
리턴 void
예제 #1
0
    public void Increment_todays_count_with_multiple_previous_visits()
    {
        var counts    = new int[] { 8, 8, 9, 2, 1, 6, 4 };
        var birdCount = new BirdCount(counts);

        birdCount.IncrementTodaysCount();
        Assert.Equal(5, birdCount.Today());
    }
예제 #2
0
    public void Increment_todays_count_with_no_previous_visits()
    {
        var counts    = new int[] { 0, 0, 0, 4, 2, 3, 0 };
        var birdCount = new BirdCount(counts);

        birdCount.IncrementTodaysCount();
        Assert.Equal(1, birdCount.Today());
    }