public void AddMagicBonus_AppropriatelyRasiesEvent([Values] MagicStatType magicStatType, [Values] MagicType magicType, [Values(1, 5)] int bonusAmount, [Values] bool isSecret) { _fighter.AddMagicBonus(magicStatType, magicType, bonusAmount, isSecret); List <EventLog> logs = _logger.Logs; Assert.AreEqual(1, logs.Count); EventLog log = logs[0]; Assert.AreEqual(EventType.MagicBonusApplied, log.Type); MagicBonusAppliedEventArgs e = log.E as MagicBonusAppliedEventArgs; Assert.NotNull(e); Assert.AreEqual(magicStatType, e.MagicStatType); Assert.AreEqual(magicType, e.MagicType); Assert.AreEqual(bonusAmount, e.BonusAmount); Assert.AreEqual(isSecret, e.IsSecretStatBonus); }
public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false) { fighter.AddMagicBonus(_magicStatType, _magicType, BonusAmount, isSecretBonus); }