Exemplo 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));
 }
Exemplo n.º 2
0
 public void Returns_EmptyOrNull_From_Null()
 {
     Assert.IsEmpty(FormatString.ToCompactWhiteSpace(null));
     Assert.IsNull(FormatString.ToCompactWhiteSpace(null, true));
 }
Exemplo n.º 3
0
 public void Returns_Null_From_Null()
 {
     Assert.IsNull(FormatString.ToNullIfEmpty(null));
 }
Exemplo n.º 4
0
 public void Returns_Empty_From_Null()
 {
     Assert.IsEmpty(FormatString.ToEmptyIfNull(null));
 }