Exemple #1
0
        private void AssertAllHidden(string text)
        {
            string s = Hide(text);

            RegexAssert.IsMatch(allHidden, s);
            s = hider.AddBack(s);
            Assert.AreEqual(text, s);
        }
        private string Hide(string text, bool hideExternalLinks, bool leaveMetaHeadings, bool hideImages)
        {
            Hider = new HideText(hideExternalLinks, leaveMetaHeadings, hideImages);
            string s = Hider.Hide(text);

            Assert.AreEqual(text, Hider.AddBack(s));
            return(s);
        }
 public void UnHideText(HideText RemoveText)
 {
     mArticleText = RemoveText.AddBack(mArticleText);
 }