示例#1
0
    public void TotalForBusyWeek()
    {
        var counts    = new int[] { 5, 9, 12, 6, 8, 8, 17 };
        var birdCount = new BirdCount(counts);

        Assert.Equal(65, birdCount.Total());
    }
示例#2
0
    public void TotalForDisappointingWeek()
    {
        var counts    = new int[] { 0, 0, 1, 0, 0, 1, 0 };
        var birdCount = new BirdCount(counts);

        Assert.Equal(2, birdCount.Total());
    }