示例#1
0
        private List <string> CleanAndSplitContent()
        {
            var content  = SpecialCharactersRemover.Remove(Content.ToLower());
            var wordList = content.Split(' ').ToList();

            return(ArticleAndPrepositionRemover.Remove(wordList));
        }
示例#2
0
        public void RemoveSpecialCharacters()
        {
            var content         = "Teste de texto, funcionou.?&^$#@!()+-,:;<>’\'_*.";
            var expectedContent = "Teste de texto funcionou-";
            var cleanContent    = SpecialCharactersRemover.Remove(content);

            cleanContent.Should().Be(expectedContent);
        }