public void FromUInt32_Value_PayloadHasValue() { uint value = 123456789; var message = HarpCommand.WriteUInt32(DefaultAddress, value); AssertIsValid(message); Assert.AreEqual(value, message.GetPayloadUInt32()); }
public void FromUInt32_Array_PayloadHasValue() { var value = new uint[] { uint.MaxValue / 2, 123456789 }; var message = HarpCommand.WriteUInt32(DefaultAddress, value); AssertIsValid(message); var payload = message.GetPayloadArray <uint>(); AssertArrayEqual(value, payload); Assert.AreEqual(value[1], message.GetPayloadUInt32(1)); }