示例#1
0
 public void FormatBytesWithZeroLengthData()
 {
     var data = new byte[0];
     string expected = string.Empty;
     string actual = Dbutil.FormatBytes(data);
     Assert.AreEqual(expected, actual);
 }
示例#2
0
 public void FormatBytes()
 {
     var data = new byte[] { 0x1, 0xf, 0x22, 0xee };
     const string Expected = "010f22ee";
     string actual = Dbutil.FormatBytes(data);
     Assert.AreEqual(Expected, actual);
 }
示例#3
0
 public void FormatBytesWithNullData()
 {
     Assert.IsNull(Dbutil.FormatBytes(null));
 }