public void StripMarkers_FormNull_Throws() { Assert.Throws <ArgumentNullException>(() => MultiText.StripMarkers(null)); }
public void StripMarkers_FormWithTwoSpan_MarkersAreStripped() { Assert.AreEqual("Please strip this text!", MultiText.StripMarkers("<span>Please</span> strip <span href = \"ReferenceEquals\">this</span> text!")); }
public void StripMarkers_notRealXml_MarkersAreTreatedAsText() { Assert.AreEqual("<spanPlease</span> strip <span href = \"ReferenceEqual>this<span> text!", MultiText.StripMarkers("<spanPlease</span> strip <span href = \"ReferenceEqual>this<span> text!")); }
public void StripMarkers_FormWithOutSpans_FormIsUntouched() { Assert.AreEqual("No spans here!", MultiText.StripMarkers("No spans here!")); }