Exemplo n.º 1
0
 public void StripMarkers_FormNull_Throws()
 {
     Assert.Throws <ArgumentNullException>(() =>
                                           MultiText.StripMarkers(null));
 }
Exemplo n.º 2
0
 public void StripMarkers_FormWithTwoSpan_MarkersAreStripped()
 {
     Assert.AreEqual("Please strip this text!", MultiText.StripMarkers("<span>Please</span> strip <span href = \"ReferenceEquals\">this</span> text!"));
 }
Exemplo n.º 3
0
 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!"));
 }
Exemplo n.º 4
0
 public void StripMarkers_FormWithOutSpans_FormIsUntouched()
 {
     Assert.AreEqual("No spans here!", MultiText.StripMarkers("No spans here!"));
 }