Exemple #1
0
        public void LifepathIsNotReference() //To ensure we're not modifying the base values stored in Aggregator
        {
            List <Lifepath> listA = LifepathIndex.getLifepathByName("Born Peasant");
            List <Lifepath> listB = LifepathIndex.getLifepathByName("Born Peasant");

            Assert.AreNotSame(listA[0], listB[0]);
            listA[0].ResPoints = 23848;
            Assert.AreNotEqual(listA[0].ResPoints, listB[0].ResPoints);
        }
Exemple #2
0
        public void LifepathFetchCorrectly()
        {
            List <Lifepath> list = LifepathIndex.getLifepathByName("Born Peasant");

            Assert.IsNotNull(list);
            Assert.AreEqual(list.Count, 1);
            Assert.AreEqual(list[0].Name, "Born Peasant");

            Lifepath lp = LifepathIndex.getLifepathByNameSetting("Born Peasant", "Human_Peasant");

            Assert.IsNotNull(lp);
            Assert.AreNotSame(list[0], lp);
        }