mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
25 lines
708 B
C#
25 lines
708 B
C#
|
using FluentAssertions;
|
||
|
using Xunit;
|
||
|
|
||
|
namespace PKHeX.Core.Tests.Legality;
|
||
|
|
||
|
public class BallTests
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Some species can't use ability patch yet.
|
||
|
/// </summary>
|
||
|
[Theory]
|
||
|
[InlineData(Species.Lunatone)]
|
||
|
[InlineData(Species.Solrock)]
|
||
|
[InlineData(Species.Rotom)]
|
||
|
[InlineData(Species.Archen)]
|
||
|
[InlineData(Species.Pikachu, true)] // can use ability patch
|
||
|
public void IsAbilityPatchPossible(Species species, bool expect = false)
|
||
|
{
|
||
|
var p7 = BallContextHOME.IsAbilityPatchPossible(7, (ushort)species);
|
||
|
p7.Should().Be(false);
|
||
|
var p8 = BallContextHOME.IsAbilityPatchPossible(8, (ushort)species);
|
||
|
p8.Should().Be(expect);
|
||
|
}
|
||
|
}
|