Пример #1
0
        public void Remove_NoConditions_Test()
        {
            var character  = CreateMockCharacter();
            var restrained = new Restrained();

            restrained.Apply(character);
            restrained.Remove(character);
            Assert.AreEqual(0, character.Conditions.Count);
        }
Пример #2
0
        public void Remove_FlatFootedToOneExists_Test()
        {
            var character  = CreateMockCharacter();
            var flatFooted = new FlatFooted(1);

            flatFooted.Apply(character);
            var restrained = new Restrained();

            restrained.Apply(character);
            restrained.Remove(character);
            Assert.AreEqual(0, character.Conditions.Count);
        }
Пример #3
0
        public void Remove_ImmobilizedExists_Test()
        {
            var character   = CreateMockCharacter();
            var immobilized = new Immobilized();

            immobilized.Apply(character);
            var restrained = new Restrained();

            restrained.Apply(character);
            restrained.Remove(character);
            Assert.AreEqual(1, character.Conditions.Count);
            Assert.IsTrue(character.Conditions.Contains(immobilized));
        }
Пример #4
0
        public void Remove_FlatFootedToAllExists_Test()
        {
            var character  = CreateMockCharacter();
            var flatFooted = new FlatFooted(FlatFooted.AllCharacters);

            flatFooted.Apply(character);
            var restrained = new Restrained();

            restrained.Apply(character);
            restrained.Remove(character);
            Assert.AreEqual(1, character.Conditions.Count);
            Assert.IsTrue(character.Conditions.Contains(flatFooted));
        }