mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Add vc sim->pk test case
This commit is contained in:
parent
4fe1a5b4e0
commit
03e2c71285
1 changed files with 28 additions and 0 deletions
|
@ -116,6 +116,23 @@ namespace PKHeX.Tests.Simulator
|
|||
Assert.IsTrue(la.Valid);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[TestCategory(SimulatorParse)]
|
||||
public void SimulatorGetVCEgg1()
|
||||
{
|
||||
var set = new ShowdownSet(SetSlowpoke12);
|
||||
var pk7 = new PK7 { Species = set.Species, AltForm = set.FormIndex, Moves = set.Moves, HT_Name = "PKHeX" };
|
||||
var encs = EncounterMovesetGenerator.GenerateEncounters(pk7, set.Moves, GameVersion.GD).ToList();
|
||||
Assert.IsTrue(encs.Count > 0);
|
||||
|
||||
var info = new SimpleTrainerInfo();
|
||||
var enc = encs[0];
|
||||
var pk = enc.ConvertToPKM(info);
|
||||
|
||||
var la = new LegalityAnalysis(pk);
|
||||
Assert.IsTrue(la.Valid);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[TestCategory(SimulatorParse)]
|
||||
public void SimulatorGetSmeargle()
|
||||
|
@ -239,6 +256,17 @@ Adamant Nature
|
|||
- Self-Destruct
|
||||
- Fire Punch";
|
||||
|
||||
private const string SetSlowpoke12 =
|
||||
@"Threat (Slowpoke) @ Eviolite
|
||||
Ability: Regenerator
|
||||
Shiny: Yes
|
||||
EVs: 248 HP / 252 Atk / 8 SpD
|
||||
Adamant Nature
|
||||
- Body Slam
|
||||
- Earthquake
|
||||
- Belly Drum
|
||||
- Iron Tail";
|
||||
|
||||
private static readonly string[] Sets =
|
||||
{
|
||||
SetGlaceonUSUMTutor,
|
||||
|
|
Loading…
Reference in a new issue