Exemplo n.º 1
0
        public void Apply_NotACharacter_Test()
        {
            var entity    = Mock.Of <IEntity>();
            var quickened = new Quickened();

            quickened.Apply(entity);
            Assert.IsTrue(true); // If we made it here without exception then the test passed
        }
Exemplo n.º 2
0
        public void Remove_NoConditions_Test()
        {
            var character = CreateMockCharacter();
            var quickened = new Quickened();

            quickened.Apply(character);
            quickened.Remove(character);
            Assert.AreEqual(0, character.Conditions.Count);
        }
Exemplo n.º 3
0
        public void Apply_Character_WithExistingQuickenedCondition_Test()
        {
            var character = CreateMockCharacter();

            character.Conditions.Add(new Quickened());
            var quickened = new Quickened();

            quickened.Apply(character);
        }
Exemplo n.º 4
0
        public void Apply_Character_NoConditions_Test()
        {
            var character = CreateMockCharacter();
            var quickened = new Quickened();

            quickened.Apply(character);
            Assert.AreEqual(EntityIds.QUICKENED_CONDITION_ID, character.Conditions[0].Id);
            Assert.AreSame(quickened, character.Conditions[0]);
        }