Add basic test for pokemon name retreival

This commit is contained in:
Evan Dixon 2017-11-01 21:16:14 -05:00
parent b13aae9a57
commit e0673ea6fc
2 changed files with 24 additions and 0 deletions

View file

@ -77,6 +77,7 @@
<Compile Include="PKM\PIDIVTests.cs" />
<Compile Include="PKM\PKMTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Util\DataUtilTests.cs" />
<Compile Include="Util\DateUtilTests.cs" />
</ItemGroup>
<ItemGroup>

View file

@ -0,0 +1,23 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PKHeX.Tests.Util
{
[TestClass]
public class DataUtilTests
{
const string TestCategory = "Data Util Tests";
[TestMethod]
[TestCategory(TestCategory)]
public void TestGetPokemonNames()
{
var names = PKHeX.Core.Util.GetSpeciesList("en");
Assert.AreEqual(803, names.Length);
}
}
}