public void ByteDataTest() { ByteData emptyData = new ByteData(); Assert.True(emptyData.IsEmpty()); ByteData data = new ByteData("773420c0ded41a55b1f1205cfb632f08f3f911a53e7338a0dac73ec6cbe3ca471907434d046185abedc5afddc2761a642bccc70af6d22b46394f1d04a8b24226"); ByteData serializedData = data.Serialize(); Assert.Equal("40773420c0ded41a55b1f1205cfb632f08f3f911a53e7338a0dac73ec6cbe3ca471907434d046185abedc5afddc2761a642bccc70af6d22b46394f1d04a8b24226", serializedData.ToHexString()); Assert.Equal((uint)65, serializedData.GetLength()); }