public void FromUInt64_Value_PayloadHasValue() { ulong value = int.MaxValue * 2u; var message = HarpCommand.WriteUInt64(DefaultAddress, value); AssertIsValid(message); Assert.AreEqual(value, message.GetPayloadUInt64()); }
public void FromUInt64_Array_PayloadHasValue() { var value = new ulong[] { int.MaxValue * 2u, 123456789 }; var message = HarpCommand.WriteUInt64(DefaultAddress, value); AssertIsValid(message); var payload = message.GetPayloadArray <ulong>(); AssertArrayEqual(value, payload); Assert.AreEqual(value[1], message.GetPayloadUInt64(1)); }