Exemplo n.º 1
0
            public void TextTrim()
            {
                string value = " hello ";

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