mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 00:13:10 +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`
24 lines
780 B
C#
24 lines
780 B
C#
using FluentAssertions;
|
|
using Xunit;
|
|
|
|
namespace PKHeX.Core.Tests.Legality;
|
|
|
|
public static class Wild8bRNGTests
|
|
{
|
|
[Fact]
|
|
public static void TryGenerateLatias()
|
|
{
|
|
PB8 test = new() { Species = (int)Species.Latias};
|
|
const ulong s0 = 0xdf9cf5c73e4a160b;
|
|
const ulong s1 = 0xd0b8383103a7f201;
|
|
Wild8bRNG.TryApplyFromSeed(test, EncounterCriteria.Unrestricted, Shiny.Random, 3, new XorShift128(s0, s1), AbilityPermission.Any12);
|
|
test.IV_HP.Should().Be(31);
|
|
test.IV_ATK.Should().Be(4);
|
|
test.IV_DEF.Should().Be(31);
|
|
test.IV_SPA.Should().Be(31);
|
|
test.IV_SPD.Should().Be(6);
|
|
test.IV_SPE.Should().Be(8);
|
|
test.HeightScalar.Should().Be(123);
|
|
test.WeightScalar.Should().Be(115);
|
|
}
|
|
}
|