コード例 #1
0
        public void TrainerShouldNotHaveAnyPokemonLeftToBattle()
        {
            ITrainer trainer = TrainerFactory.CreateTrainer <Player>();

            trainer?.PokemonTeam?.ForEach(pkmn => pkmn?.SetAsFainted());
            Assert.False(trainer?.HasAvailablePokemon());
        }