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

        Assert.Equal(7, birdCount.Yesterday());
    }
Exemplo n.º 2
0
    public void YesterdayForDisappointingWeek()
    {
        var counts    = new int[] { 0, 0, 1, 0, 0, 1, 0 };
        var birdCount = new BirdCount(counts);

        Assert.Equal(1, birdCount.Yesterday());
    }