mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
fc754b346b
[Language Reference](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/file-scoped-namespaces) Updates all the files, one less level of indentation. Some small changes were made to API surfaces, renaming `PKM pkm` -> `PKM pk`, and `LegalityAnalysis.pkm` -> `LegalityAnalysis.Entity`
27 lines
801 B
C#
27 lines
801 B
C#
using System;
|
|
using FluentAssertions;
|
|
using PKHeX.Core;
|
|
using Xunit;
|
|
|
|
namespace PKHeX.Tests.PKM;
|
|
|
|
public class HiddenPowerTests
|
|
{
|
|
[Theory]
|
|
[InlineData(14, 15, 15, 14, 14, 15, MoveType.Dark, 69, typeof(PK2))]
|
|
[InlineData(30, 31, 31, 30, 31, 31, MoveType.Grass, 70, typeof(PK3))]
|
|
[InlineData(26, 31, 31, 30, 31, 31, MoveType.Grass, 70, typeof(PK3))]
|
|
public void HiddenPowerTest(int h, int a, int b, int c, int d, int s, MoveType type, int power, Type pkmType)
|
|
{
|
|
var pk = EntityBlank.GetBlank(pkmType);
|
|
pk.IV_HP = h;
|
|
pk.IV_ATK = a;
|
|
pk.IV_DEF = b;
|
|
pk.IV_SPA = c;
|
|
pk.IV_SPD = d;
|
|
pk.IV_SPE = s;
|
|
|
|
pk.HPType.Should().Be((int)type - 1); // no normal type, down-shift by 1
|
|
pk.HPPower.Should().Be(power);
|
|
}
|
|
}
|