public void RemoveProperCode_PostWithProperTags_TagsRemoved() { string postText = "<code>test</code><pre><code>test2</pre></code><pre><code class=\"csharp\">test3</code></pre>"; var result = HtmlCleaner.RemoveProperCode(postText); Assert.Equal(string.Empty, result); }