Esempio n. 1
0
        public IEnumerator JSONReadTest()
        {
            UpgradeSystem upgradeSystem = new UpgradeSystem();
            int           listCount     = upgradeSystem.GetUpgradeCount();

            upgradeSystem.LoadUpgrades();
            Assert.AreNotEqual(listCount, upgradeSystem.GetUpgradeCount());
            yield return(null);
        }
Esempio n. 2
0
        public IEnumerator UpgradeSystemObjectCreationTest()
        {
            UpgradeSystem upgradeSystem = new UpgradeSystem();
            int           listCount     = upgradeSystem.GetUpgradeCount();

            Assert.AreEqual(listCount, 0);
            Upgrade testUpgrade = new Upgrade("Attack", 1);

            upgradeSystem.AddUpgrade(testUpgrade);
            listCount = upgradeSystem.GetUpgradeCount();
            Assert.AreEqual(listCount, 1);
            yield return(null);
        }