From e0673ea6fc093dc82f6a1c7284448b5d0fd7da8e Mon Sep 17 00:00:00 2001 From: Evan Dixon Date: Wed, 1 Nov 2017 21:16:14 -0500 Subject: [PATCH] Add basic test for pokemon name retreival --- Tests/PKHeX.Tests/PKHeX.Tests.csproj | 1 + Tests/PKHeX.Tests/Util/DataUtilTests.cs | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Tests/PKHeX.Tests/Util/DataUtilTests.cs diff --git a/Tests/PKHeX.Tests/PKHeX.Tests.csproj b/Tests/PKHeX.Tests/PKHeX.Tests.csproj index 7664b59db..e62ff7654 100644 --- a/Tests/PKHeX.Tests/PKHeX.Tests.csproj +++ b/Tests/PKHeX.Tests/PKHeX.Tests.csproj @@ -77,6 +77,7 @@ + diff --git a/Tests/PKHeX.Tests/Util/DataUtilTests.cs b/Tests/PKHeX.Tests/Util/DataUtilTests.cs new file mode 100644 index 000000000..1b0be184f --- /dev/null +++ b/Tests/PKHeX.Tests/Util/DataUtilTests.cs @@ -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); + } + } +}