public void TrainerShouldNotHaveAnyPokemonLeftToBattle() { ITrainer trainer = TrainerFactory.CreateTrainer <Player>(); trainer?.PokemonTeam?.ForEach(pkmn => pkmn?.SetAsFainted()); Assert.False(trainer?.HasAvailablePokemon()); }