Beispiel #1
0
 public void StripMarkers_FormNull_Throws()
 {
     Assert.Throws <ArgumentNullException>(() =>
                                           MultiText.StripMarkers(null));
 }
Beispiel #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!"));
 }
Beispiel #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!"));
 }
Beispiel #4
0
 public void StripMarkers_FormWithOutSpans_FormIsUntouched()
 {
     Assert.AreEqual("No spans here!", MultiText.StripMarkers("No spans here!"));
 }