public void ManyCohorts_GrowAllDie()
        {
            SpeciesCohorts cohorts = MakeCohorts(10, 20, 50, 100, 150);

            cohorts.Grow((ushort)species.Longevity, new ActiveSite(), null);
            Assert.AreEqual(0, cohorts.Count);
        }
        public void NoCohorts_Grow()
        {
            SpeciesCohorts cohorts = MakeCohorts();

            cohorts.Grow(5, new ActiveSite(), null);
            Assert.AreEqual(0, cohorts.Count);
        }
        public void ManyCohorts_Grow()
        {
            SpeciesCohorts cohorts = MakeCohorts(10, 20, 50, 100, 150);

            cohorts.Grow(10, new ActiveSite(), null);
            CheckAges(cohorts, 20, 30, 60, 110, 160);
        }
        public void NoCohorts_Grow()
        {
            SpeciesCohorts cohorts = MakeCohorts();

            cohorts.Grow(5, null, null);
            Assert.AreEqual(0, Count(cohorts));
        }
        public void OneCohort_GrowMaxAge()
        {
            SpeciesCohorts cohorts = MakeCohorts(species.Longevity);

            cohorts.Grow(1, new ActiveSite(), null);
            Assert.AreEqual(0, cohorts.Count);
        }
        public void OneCohort_GrowMaxAge()
        {
            SpeciesCohorts cohorts = MakeCohorts(species.Longevity);

            cohorts.Grow(1, null, null);
            Assert.AreEqual(0, Count(cohorts));
        }
        public void ManyCohorts_GrowSomeDie()
        {
            SpeciesCohorts cohorts = MakeCohorts(10, 20, species.Longevity - 5,
                                                 species.Longevity);

            cohorts.Grow(10, new ActiveSite(), null);
            CheckAges(cohorts, 20, 30);
        }
        public void OneCohort_Grow()
        {
            SpeciesCohorts cohorts = MakeCohorts(10);

            cohorts.Grow(5, new ActiveSite(), null);
            Assert.AreEqual(1, cohorts.Count);
            CheckAges(cohorts, 15);
        }
        public void OneCohort_Grow()
        {
            SpeciesCohorts cohorts = MakeCohorts(10);

            cohorts.Grow(5, null, null);
            Assert.AreEqual(1, Count(cohorts));
            CheckAges(cohorts, 15);
        }
Ejemplo n.º 10
0
        public void OneCohort()
        {
            SpeciesCohorts cohorts = MakeCohorts(species.Longevity);

            cohorts.Grow(1, activeSite);
            Assert.AreEqual(0, Count(cohorts));
            CheckDeadCohorts(species.Longevity + 1);
        }
Ejemplo n.º 11
0
        public void OneCohort()
        {
            SpeciesCohorts cohorts = MakeCohorts(species.Longevity);

            expectedSender = cohorts;
            cohorts.Grow(1, activeSite, null);
            Assert.AreEqual(0, cohorts.Count);
            CheckDeadCohorts(species.Longevity + 1);
        }
Ejemplo n.º 12
0
        public void ManyCohort()
        {
            SpeciesCohorts cohorts = MakeCohorts(10, 20,
                                                 species.Longevity - 9,
                                                 species.Longevity - 5,
                                                 species.Longevity);

            cohorts.Grow(10, activeSite);
            Assert.AreEqual(2, Count(cohorts));
            CheckDeadCohorts(species.Longevity + 1,
                             species.Longevity + 5,
                             species.Longevity + 10);
        }
Ejemplo n.º 13
0
        public void ManyCohort()
        {
            SpeciesCohorts cohorts = MakeCohorts(10, 20,
                                                 species.Longevity - 9,
                                                 species.Longevity - 5,
                                                 species.Longevity);

            expectedSender = cohorts;
            cohorts.Grow(10, activeSite, null);
            Assert.AreEqual(2, cohorts.Count);
            CheckDeadCohorts(species.Longevity + 1,
                             species.Longevity + 5,
                             species.Longevity + 10);
        }