示例#1
0
        public void StripWhitespace_TextWithoutWhitespace_TextIntact()
        {
            string item = "some text without whitespace";

            var result = HtmlCleaner.StripWhitespace(item);

            Assert.Equal(item, result);
        }
示例#2
0
        public void StripWhitespace_TextWithWhitespace_WhitespaceRemoved()
        {
            string item = "some  text   with   \nwhitespace   ";

            var result = HtmlCleaner.StripWhitespace(item);

            Assert.Equal("some text with whitespace", result);
        }