public void ToHexAndFromHex() { Random rand = new Random((int)DateTime.Now.Ticks); var testData = new byte[1024]; rand.NextBytes(testData); Assert.Equal(testData, ByteUtility.FromHex(ByteUtility.ToHex(testData))); }