mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-28 06:50:23 +00:00
24 lines
622 B
C#
24 lines
622 B
C#
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||
|
using PKHeX.Core;
|
|||
|
|
|||
|
namespace PKHeX.Tests.Legality
|
|||
|
{
|
|||
|
[TestClass]
|
|||
|
public class LegalityTest
|
|||
|
{
|
|||
|
private const string LegalityTestCategory = "PKM PIDIV Matching Tests";
|
|||
|
|
|||
|
[TestMethod]
|
|||
|
[TestCategory(LegalityTestCategory)]
|
|||
|
public void BadwordTest()
|
|||
|
{
|
|||
|
string[] phrases =
|
|||
|
{
|
|||
|
"censor", "buttnugget", "18넘"
|
|||
|
};
|
|||
|
foreach (var phrase in phrases)
|
|||
|
Assert.IsTrue(WordFilter.IsFiltered(phrase, out _), $"Word not filtered: {phrase}.");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|