mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 14:35:08 -05:00
Add vc sim->pk test case
This commit is contained in:
@@ -116,6 +116,23 @@ public void SimulatorGetSplitBreed()
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user