示例#1
0
        public void SolveFirstPuzzle()
        {
            var sut = new AgeModel(REAL_AGES);

            sut.Advance(80);
            Assert.Equal(379114, sut.CountAllFishes());
        }
示例#2
0
        public void SolveSecondPuzzle()
        {
            var sut = new AgeModel(REAL_AGES);

            sut.Advance(256);
            Assert.Equal(1702631502303, sut.CountAllFishes());
        }
示例#3
0
        public void CalculateSpawnRateCorrectly_WhenSampleDataIsUsed(int days, long expectedFishes)
        {
            var sut = new AgeModel(SAMPLE_AGES);

            sut.Advance(days);
            Assert.Equal(expectedFishes, sut.CountAllFishes());
        }