Beispiel #1
0
        public void OnCriticalAttackMethod_AppropriatelyFiresCriticalAttackEvent()
        {
            _fighter.OnCriticalAttack(new CriticalAttackEventArgs());

            var logs = _logger.Logs;

            Assert.AreEqual(1, logs.Count);
            Assert.AreEqual(EventType.CriticalAttack, logs[0].Type);
            Assert.AreEqual(_fighter, logs[0].Sender);
            var e = logs[0].E as CriticalAttackEventArgs;

            Assert.That(e, Is.Not.Null);
        }