PKHeX/Tests/PKHeX.Core.Tests
Kurt 3c50983afd Use less efficient IsLevelWithinRange, for clarity
See previous commit for discussion; it's easier to read and maintain
this rather than have the precomputed min/max comparisons.

LevelMin - minDecrease <= min && max <= LevelMax + maxIncrease;
See EncounterArea7b:
Since we know min and minDecrease (0) before doing the linq filter we
can precompute the lowbound, same for highbound; but this isn't
immediately obvious to the reader. The perf cost is pretty much
negligible in the big picture, so leave it in the more readable state.

Thanks @fattard & @ammako !

#2389
2019-09-19 22:54:53 -07:00
..
Legality Use less efficient IsLevelWithinRange, for clarity 2019-09-19 22:54:53 -07:00
PKM Minor clean 2019-09-10 22:07:50 -07:00
Saves Fix dex gender set again 2019-07-12 23:43:12 -07:00
Simulator Fix Stationary haxorus encounter gen 2019-06-26 20:37:26 -07:00
TestData Fix build & tests 2018-11-13 18:03:18 -06:00
Util Add string quality tests 2019-07-08 22:05:59 -07:00
PKHeX.Core.Tests.csproj Fix starter bypass 2018-11-16 18:17:01 -08:00