public void Remove_NoConditions_Test() { var character = CreateMockCharacter(); var prone = new Prone(); prone.Apply(character); prone.Remove(character); Assert.AreEqual(0, character.Conditions.Count); }
public void Remove_WithExistingFlatFootedToOne_Test() { var character = CreateMockCharacter(); var flatFooted = new FlatFooted(1); flatFooted.Apply(character); var prone = new Prone(); prone.Apply(character); prone.Remove(character); Assert.AreEqual(0, character.Conditions.Count); }
public void Remove_WithExistingFlatFootedToAll_Test() { var character = CreateMockCharacter(); var flatFooted = new FlatFooted(FlatFooted.AllCharacters); flatFooted.Apply(character); var prone = new Prone(); prone.Apply(character); prone.Remove(character); Assert.AreEqual(1, character.Conditions.Count); Assert.AreSame(flatFooted, character.Conditions[0]); }