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