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