mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +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`
29 lines
736 B
C#
29 lines
736 B
C#
using FluentAssertions;
|
|
using PKHeX.Core;
|
|
using Xunit;
|
|
|
|
namespace PKHeX.Tests.Util;
|
|
|
|
public class DataUtilTests
|
|
{
|
|
[Fact]
|
|
public void GetsCorrectNumberOfSpeciesNames()
|
|
{
|
|
var names = Core.Util.GetSpeciesList(GameLanguage.DefaultLanguage);
|
|
names.Length.Should().Be((int)Species.MAX_COUNT);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetsCorrectNumberOfAbilityNames()
|
|
{
|
|
var names = Core.Util.GetAbilitiesList(GameLanguage.DefaultLanguage);
|
|
names.Length.Should().Be((int)Ability.MAX_COUNT);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetsCorrectNumberOfMoveNames()
|
|
{
|
|
var names = Core.Util.GetMovesList(GameLanguage.DefaultLanguage);
|
|
names.Length.Should().Be((int)Move.MAX_COUNT);
|
|
}
|
|
}
|