Exemplo n.º 1
0
        public void ContainsRaceTest()
        {
            var d = new Demographics();

            Assert.AreEqual(0, d.Populations.Count);
            var r  = MakeTestRace("test race");
            var r2 = MakeTestRace("test race 2");

            Assert.IsFalse(d.ContainsRace(r));
            Assert.IsFalse(d.ContainsRace(r2));

            d.IncreasePopulationFor(r);
            Assert.IsTrue(d.ContainsRace(r));
            Assert.IsFalse(d.ContainsRace(r2));

            d.IncreasePopulationFor(r2);
            Assert.IsTrue(d.ContainsRace(r));
            Assert.IsTrue(d.ContainsRace(r2));
        }