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

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