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