コード例 #1
0
        public void ShouldNotHaveAttackActionWhenOutOfRange()
        {
            var a = new Arena();
            a.BuildArenaFloor(10);
            var c = new Player();
            a.AddCharacterToArena(c, Alliance.TeamOne, 0, 0);
            var o = new Dumbass();
            a.AddCharacterToArena(o, Alliance.TeamTwo, 5, 5);
            var e = new Sword();
            EquipmentHelper.EquipEquipment(c, e);
            var tile = a.SelectFloorTile(o.ArenaLocation.GetTileLocation());
            var actions = c.TargetTileAndSelectActions(tile);

            Assert.IsFalse(actions.Exists(i => i.Name == "Swing"));
        }