2018-11-20 00:14:49 +00:00
|
|
|
|
using FluentAssertions;
|
2019-02-11 05:28:32 +00:00
|
|
|
|
using PKHeX.Core;
|
2018-11-06 23:25:35 +00:00
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Tests.Util
|
|
|
|
|
{
|
|
|
|
|
public class DataUtilTests
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
2019-02-11 05:28:32 +00:00
|
|
|
|
public void GetsCorrectNumberOfSpeciesNames()
|
2018-11-06 23:25:35 +00:00
|
|
|
|
{
|
2020-01-02 03:07:21 +00:00
|
|
|
|
var names = Core.Util.GetSpeciesList(GameLanguage.DefaultLanguage);
|
2019-02-11 05:28:32 +00:00
|
|
|
|
names.Length.Should().Be((int)Species.MAX_COUNT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public void GetsCorrectNumberOfAbilityNames()
|
|
|
|
|
{
|
2020-01-02 03:07:21 +00:00
|
|
|
|
var names = Core.Util.GetAbilitiesList(GameLanguage.DefaultLanguage);
|
2019-02-11 05:28:32 +00:00
|
|
|
|
names.Length.Should().Be((int)Ability.MAX_COUNT);
|
2018-11-06 23:25:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|