Beispiel #1
0
        public void Apply_NotACharacter_Test()
        {
            var entity = Mock.Of <IEntity>();
            var slowed = new Slowed();

            slowed.Apply(entity);
            Assert.IsTrue(true); // If we made it here without exception then the test passed
        }
Beispiel #2
0
        public void Remove_NoConditions_Test()
        {
            var character = CreateMockCharacter();
            var slowed    = new Slowed();

            slowed.Apply(character);
            slowed.Remove(character);
            Assert.AreEqual(0, character.Conditions.Count);
        }
Beispiel #3
0
        public void Apply_Character_WithExistingSlowedCondition_Test()
        {
            var character = CreateMockCharacter();

            character.Conditions.Add(new Slowed());
            var slowed = new Slowed();

            slowed.Apply(character);
        }
Beispiel #4
0
        public void Apply_Character_NoConditions_Test()
        {
            var character = CreateMockCharacter();
            var slowed    = new Slowed();

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