Пример #1
0
        public void FilterTo_NonWhitespaces()
        {
            var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeDigits | CharStat.CharStatOptions.IncludeSymbols);

            Assert.AreEqual(filtered, "d*34-4½sfd29€8sa");
        }
Пример #2
0
        public void FilterTo_LettersAndSymbols()
        {
            var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeSymbols);

            Assert.AreEqual(filtered, "d*-½sfd€sa");
        }
Пример #3
0
        public void FilterTo_LettersAndDigits()
        {
            var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeDigits);

            Assert.AreEqual(filtered, "d344sfd298sa");
        }
Пример #4
0
        public void FilterTo_LettersAndWhitespaces()
        {
            var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeWhiteSpaces);

            Assert.AreEqual(filtered, "d   sfd sa");
        }
Пример #5
0
        public void FilterTo_LettersLowCase()
        {
            var filtered = CharStat.Filter("-*‡€⁋™Жקओを\U0001F000\U0001D49E");

            Assert.AreEqual(filtered, "жקओを");
        }