コード例 #1
0
        public void GetTargetShipTest()
        {
            IFleet           fleet           = FleetFactory.CreateFleet(FleetConfigurationType.HeavyShips, BattleStratageyType.NoPriority);
            IAttackImplement attackImplement = AttackImplementFactory.CreateAttackImplement(AttackImplementType.Laser);
            var ship = attackImplement.GetTargetShip(null, fleet);

            Assert.NotNull(ship);
        }
コード例 #2
0
        public void GetWeekTargetShipTest()
        {
            IFleet           fleet           = FleetFactory.CreateFleet(FleetConfigurationType.SmallShips, BattleStratageyType.WeekShipsFirst);
            IAttackImplement attackImplement = AttackImplementFactory.CreateAttackImplement(AttackImplementType.Laser);
            var ship = attackImplement.GetTargetShip(BattleStratageyType.WeekShipsFirst, fleet);

            Assert.NotNull(ship);
        }