public void Apply_NotACharacter_Test() { var entity = Mock.Of <IEntity>(); var concealed = new Concealed(); concealed.Apply(entity); Assert.IsTrue(true); // If we made it here without exception then the test passed }
public void Remove_NoConditions_Test() { var character = CreateMockCharacter(); var concealed = new Concealed(); concealed.Apply(character); concealed.Remove(character); Assert.AreEqual(0, character.Conditions.Count); }
public void Apply_Character_WithExistingConcealedCondition_Test() { var character = CreateMockCharacter(); character.Conditions.Add(new Concealed()); var concealed = new Concealed(); concealed.Apply(character); }
public void Apply_Character_NoConditions_Test() { var character = CreateMockCharacter(); var concealed = new Concealed(); concealed.Apply(character); Assert.AreEqual(EntityIds.CONCEALED_CONDITION_ID, character.Conditions[0].Id); Assert.AreSame(concealed, character.Conditions[0]); Assert.AreEqual(ConditionGroup.Senses, character.Conditions[0].Group); }