Пример #1
0
        public void DeselectSpell_Empty()
        {
            SpellCastState state = new SpellCastState();

            state.DeselectSpell();
            Assert.AreEqual(0, state.SelectedSpellCount);
        }
Пример #2
0
        public void DeselectSpell_One()
        {
            SpellCastState state = new SpellCastState();

            state.SelectSpell(SpellElement.Fire);
            state.DeselectSpell();
            Assert.AreEqual(0, state.SelectedSpellCount);
        }
Пример #3
0
        public void DeselectSpell_LIFO()
        {
            SpellCastState state = new SpellCastState();

            state.SelectSpell(SpellElement.Fire);
            state.SelectSpell(SpellElement.Water);
            state.DeselectSpell();
            Assert.AreEqual(SpellElement.Fire, state.SelectedSpells[0]);
        }