示例#1
0
        public void TestGameOptionsIfUpgradeCanBeAddedToList()
        {
            GameOption GameOption = new GameOption();
            Upgrade    upg        = new Upgrade("random", "ClickDamage", 30);

            GameOption.Upgrades.Clear();
            GameOption.addUpgrade(upg);
            Upgrade upg1 = GameOption.Upgrades[0];

            Assert.AreEqual(upg1, upg);
        }
示例#2
0
        public void TestGameOptionsAddUpgradeCanFail()
        {
            GameOption GameOptions = new GameOption();

            GameOptions.addUpgrade(null);
        }