Esempio n. 1
0
 public void CharacterCanPerformAttackActionWhenWithinRange()
 {
     var c = new Character();
     c.SetCharacterLocation(0, 0);
     var o = new Character();
     o.SetCharacterLocation(1, 1);
     var e = new TestHelpers.TestWeapon();
     c.EquipEquipment(e);
     var s = new TestHelpers.TestAttack();
     Assert.IsTrue(s.CanBePerformed(c, o));
 }
Esempio n. 2
0
 public void CharacterCannotPerformAttackWhenOutOfRange()
 {
     var c = new Character();
     c.SetCharacterLocation(0, 0);
     var o = new Character();
     o.SetCharacterLocation(10, 10);
     var e = new TestHelpers.TestWeapon();
     c.EquipEquipment(e);
     var s = new TestHelpers.TestAttack();
     Assert.IsFalse(s.CanBePerformed(c, o));
 }