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"); }
public void FilterTo_LettersAndSymbols() { var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeSymbols); Assert.AreEqual(filtered, "d*-½sfd€sa"); }
public void FilterTo_LettersAndDigits() { var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeDigits); Assert.AreEqual(filtered, "d344sfd298sa"); }
public void FilterTo_LettersAndWhitespaces() { var filtered = CharStat.Filter("d*34- 4 ½ sfd 29€8sa", CharStat.CharStatOptions.IncludeWhiteSpaces); Assert.AreEqual(filtered, "d sfd sa"); }
public void FilterTo_LettersLowCase() { var filtered = CharStat.Filter("-*‡€⁋™Жקओを\U0001F000\U0001D49E"); Assert.AreEqual(filtered, "жקओを"); }