コード例 #1
0
        public void StartWar_Starts_The_War()
        {
            var fighters = new List <IFighter> {
                new Barbarian(), new Barbarian(), new FightingFarmerAdapter(new Farmer())
            };
            var troop = new Troops(fighters);

            troop.StartWar();
        }
コード例 #2
0
        public void StartWar_Moves_And_Attacks()
        {
            var farmer = new Farmer();

            var troops = new List <IFighter>
            {
                new Barbarian(),
                new FightingFarmer(farmer)
            };

            var warTroops = new Troops(troops);

            warTroops.StartWar();
        }