Пример #1
0
 public void CanDeserializeNullByteArray()
 {
     DbAssert.ArrayAreEqual <byte[]>(null, "SELECT CAST(NULL AS VARBINARY)");
 }
Пример #2
0
 public void CanDeserializeTwoElementByteArray()
 {
     DbAssert.ArrayAreEqual(new[] { (byte)'A', (byte)'B' }, "SELECT CAST('AB' AS VARBINARY)");
 }
Пример #3
0
 public void CanDeserializeEmptyByteArray()
 {
     DbAssert.ArrayAreEqual(new byte[0], "SELECT CAST('' AS VARBINARY)");
 }
 public void CanDeserializeTwoElementCharArray()
 {
     DbAssert.ArrayAreEqual(new[] { 'A', 'B' }, "SELECT CAST('AB' AS NVARCHAR(10))");
 }
 public void CanDeserializeEmptyCharArray()
 {
     DbAssert.ArrayAreEqual(new char[0], "SELECT CAST('' AS NVARCHAR(10))");
 }
 public void CanDeserializeNullCharArray()
 {
     DbAssert.ArrayAreEqual <char[]>(null, "SELECT CAST(NULL AS NVARCHAR(10))");
 }