2019-09-12 23:20:52 -07:00
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using PKHeX.Core;
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
2022-06-18 11:04:24 -07:00
|
|
|
|
namespace PKHeX.Tests.Legality;
|
|
|
|
|
|
|
|
|
|
public class LegalityRules
|
2019-09-12 23:20:52 -07:00
|
|
|
|
{
|
2022-06-18 11:04:24 -07:00
|
|
|
|
[Theory]
|
|
|
|
|
[InlineData(GameVersion.B)]
|
|
|
|
|
public void HasOriginalMetLocation5(GameVersion g)
|
2019-09-12 23:20:52 -07:00
|
|
|
|
{
|
2022-06-18 11:04:24 -07:00
|
|
|
|
var pk5 = new PK5 {Version = (int) g};
|
|
|
|
|
pk5.HasOriginalMetLocation.Should().BeTrue();
|
|
|
|
|
}
|
2019-09-12 23:20:52 -07:00
|
|
|
|
|
2022-06-18 11:04:24 -07:00
|
|
|
|
[Theory]
|
|
|
|
|
[InlineData(GameVersion.B)]
|
|
|
|
|
[InlineData(GameVersion.X)]
|
|
|
|
|
public void HasOriginalMetLocation6(GameVersion g)
|
|
|
|
|
{
|
|
|
|
|
var pk5 = new PK6 { Version = (int)g };
|
|
|
|
|
pk5.HasOriginalMetLocation.Should().BeTrue();
|
|
|
|
|
}
|
2019-09-12 23:20:52 -07:00
|
|
|
|
|
2022-06-18 11:04:24 -07:00
|
|
|
|
[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();
|
2019-09-12 23:20:52 -07:00
|
|
|
|
}
|
2022-06-18 11:04:24 -07:00
|
|
|
|
}
|