Exemple #1
0
        public void ProfanityCheck_CleanupData_Corners()
        {
            var result = ProfanityFilter.CleanupData(null);

            Assert.Null(result);
            result = ProfanityFilter.CleanupData("    ");
            Assert.Equal(result, "    ");
        }
Exemple #2
0
        public void ProfanityCheck_I3_Replaced()
        {
            var result = ProfanityFilter.CleanupData("I3");

            Assert.True(result == "i3");
        }
Exemple #3
0
        public void ProfanityCleanup_VariationOfB_Replaced()
        {
            var result = ProfanityFilter.CleanupData("I3");

            Assert.True(result == "i3");
        }