public void TestATLongValueToUInt64() { var value = new ATLongValue(0x1122334444332211); Assert.That(value, Is.TypeOf<ATLongValue>()); Assert.That(value.ToByteArray(), Is.EqualTo(new byte[] { 0x11, 0x22, 0x33, 0x44, 0x44, 0x33, 0x22, 0x11 })); }
public void TestATLongValueToUInt16() { var value = new ATLongValue(0x1122); Assert.That(value, Is.TypeOf<ATLongValue>()); Assert.That(value.ToByteArray(), Is.EqualTo(new byte[] { 0x11, 0x22 })); }