PKHeX/Tests/PKHeX.Core.Tests/Legality/LegalityRules.cs
Kurt 734aa33898 Split encounter areas, relocate slot finding to obj
Now logic is reasonably split, and each format of area has its own way
of yielding slots

Too much junk with checking flute boosts or catch combo applicability;
just let the area dictate how slots match.
2019-09-12 23:20:52 -07:00

36 lines
No EOL
972 B
C#

using FluentAssertions;
using PKHeX.Core;
using Xunit;
namespace PKHeX.Tests.Legality
{
public class LegalityRules
{
[Theory]
[InlineData(GameVersion.B)]
public void HasOriginalMetLocation5(GameVersion g)
{
var pk5 = new PK5 {Version = (int) g};
pk5.HasOriginalMetLocation.Should().BeTrue();
}
[Theory]
[InlineData(GameVersion.B)]
[InlineData(GameVersion.X)]
public void HasOriginalMetLocation6(GameVersion g)
{
var pk5 = new PK6 { Version = (int)g };
pk5.HasOriginalMetLocation.Should().BeTrue();
}
[Theory]
[InlineData(GameVersion.B)]
[InlineData(GameVersion.X)]
[InlineData(GameVersion.SN)]
public void HasOriginalMetLocation7(GameVersion g)
{
var pk5 = new PK7 { Version = (int)g };
pk5.HasOriginalMetLocation.Should().BeTrue();
}
}
}