Exemple #1
0
 public void Whitespace()
 {
     Assert.IsNull(SrkStringExtensions.NullIfEmptyOrWhitespace("   \t\r\n"));
 }
Exemple #2
0
            public void TextTrim()
            {
                string value = " hello ";

                Assert.AreEqual("hello", SrkStringExtensions.NullIfEmptyOrWhitespace(value, true));
            }
Exemple #3
0
 public void Null()
 {
     Assert.IsNull(SrkStringExtensions.NullIfEmptyOrWhitespace(null));
 }