示例#1
0
            public void TextTrim()
            {
                string value = " hello ";

                Assert.AreEqual("hello", SrkStringExtensions.NullIfEmpty(value, true));
            }
示例#2
0
 public void Empty()
 {
     Assert.IsNull(SrkStringExtensions.NullIfEmpty(""));
 }
示例#3
0
 public void Whitespace()
 {
     Assert.IsNotNull(SrkStringExtensions.NullIfEmpty("   \t\r\n"));
 }
示例#4
0
 public void Null()
 {
     Assert.IsNull(SrkStringExtensions.NullIfEmpty(null));
 }