Esempio n. 1
0
 public void Returns_EmptyOrNull_From_Null()
 {
     Assert.IsEmpty(FormatString.ToHtmlParagraph(null));
     Assert.IsEmpty(FormatString.ToHtmlParagraph(null, false));
     Assert.IsNull(FormatString.ToHtmlParagraph(null, true, true));
     Assert.IsNull(FormatString.ToHtmlParagraph(null, false, true));
 }
Esempio n. 2
0
 public void Returns_EmptyOrNull_From_Null()
 {
     Assert.IsEmpty(FormatString.ToCompactWhiteSpace(null));
     Assert.IsNull(FormatString.ToCompactWhiteSpace(null, true));
 }
Esempio n. 3
0
 public void Returns_Null_From_Null()
 {
     Assert.IsNull(FormatString.ToNullIfEmpty(null));
 }
Esempio n. 4
0
 public void Returns_Empty_From_Null()
 {
     Assert.IsEmpty(FormatString.ToEmptyIfNull(null));
 }