public void Disturbed()
        {
            SimpleCore core = new SimpleCore();
            core.Species = new Species.Dataset(null);
            core.Landscape = DisturbedSites.MixedLandscape;
            core.SuccessionCohorts = new MyCohorts();

            const int successionTimestep = 10;
            MySuccession succession = new MySuccession(successionTimestep);
            succession.Initialize(core);

            //  Assert that no sites are flagged as disturbed before Run()
            foreach (Site site in DisturbedSites.MixedLandscape.AllSites)
                Assert.IsFalse(succession.Disturbed[site]);

            foreach (Location location in DisturbedSites.Locations) {
                ActiveSite site = DisturbedSites.MixedLandscape[location];
                succession.Disturbed[site] = true;
            }

            core.CurrentTime = successionTimestep + 1;
            succession.Run();
            AssertAreEqual(DisturbedSites.Locations,
                           succession.SitesVisited.ToArray());

            //  Confirm that the Disturbed site variable has been reset at end
            //  of the Run() method.
            foreach (Site site in DisturbedSites.MixedLandscape.AllSites)
                Assert.IsFalse(succession.Disturbed[site]);
        }
        public void Disturbed()
        {
            SimpleCore core = new SimpleCore();

            core.Species           = new Species.Dataset(null);
            core.Landscape         = DisturbedSites.MixedLandscape;
            core.SuccessionCohorts = new MyCohorts();

            const int    successionTimestep = 10;
            MySuccession succession         = new MySuccession(successionTimestep);

            succession.Initialize(core);

            //  Assert that no sites are flagged as disturbed before Run()
            foreach (Site site in DisturbedSites.MixedLandscape.AllSites)
            {
                Assert.IsFalse(succession.Disturbed[site]);
            }

            foreach (Location location in DisturbedSites.Locations)
            {
                ActiveSite site = DisturbedSites.MixedLandscape[location];
                succession.Disturbed[site] = true;
            }

            core.CurrentTime = successionTimestep + 1;
            succession.Run();
            AssertAreEqual(DisturbedSites.Locations,
                           succession.SitesVisited.ToArray());

            //  Confirm that the Disturbed site variable has been reset at end
            //  of the Run() method.
            foreach (Site site in DisturbedSites.MixedLandscape.AllSites)
            {
                Assert.IsFalse(succession.Disturbed[site]);
            }
        }