Example #1
0
 public void EncodeLikeStringTest()
 {
     Assert.AreEqual <string>(null, SqlServerUtility.EncodeLikeString(null));
     Assert.AreEqual <string>(" \t \r \n ", SqlServerUtility.EncodeLikeString(" \t \r \n "));
     Assert.AreEqual <string>("abcd", SqlServerUtility.EncodeLikeString("abcd"));
     Assert.AreEqual <string>("a[%]b[_]c[[]d]e[^]f", SqlServerUtility.EncodeLikeString("a%b_c[d]e^f"));
 }