mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 08:17:14 +00:00
Add basic test for pokemon name retreival
This commit is contained in:
parent
b13aae9a57
commit
e0673ea6fc
2 changed files with 24 additions and 0 deletions
|
@ -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>
|
||||
|
|
23
Tests/PKHeX.Tests/Util/DataUtilTests.cs
Normal file
23
Tests/PKHeX.Tests/Util/DataUtilTests.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue