Add vc sim->pk test case

This commit is contained in:
Kurt 2018-10-01 16:48:37 -07:00
parent 4fe1a5b4e0
commit 03e2c71285

View file

@ -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,