mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-01 00:09:14 +00:00
734aa33898
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.
36 lines
No EOL
972 B
C#
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();
|
|
}
|
|
}
|
|
} |