Today() public method

public Today ( ) : int
return int
Ejemplo n.º 1
0
    public void Today_for_busy_day()
    {
        var counts    = new int[] { 8, 8, 9, 5, 4, 7, 10 };
        var birdCount = new BirdCount(counts);

        Assert.Equal(10, birdCount.Today());
    }
Ejemplo n.º 2
0
    public void Today_for_disappointing_day()
    {
        var counts    = new int[] { 0, 0, 1, 0, 0, 1, 0 };
        var birdCount = new BirdCount(counts);

        Assert.Equal(0, birdCount.Today());
    }
Ejemplo n.º 3
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());
    }
Ejemplo n.º 4
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());
    }