public void Set() { var mqtt = new MQTT { Bytes = new Byte[2] }; mqtt.Retain = true; mqtt.GetByte(0).Should().Be(0b_0000_0001); mqtt.Retain = false; mqtt.GetByte(0).Should().Be(0b_0000_0000); }
public void Set() { var mqtt = new MQTT { Bytes = new Byte[2] }; mqtt.Duplicate = true; mqtt.GetByte(0).Should().Be(0b_0000_1000); mqtt.Duplicate = false; mqtt.GetByte(0).Should().Be(0b_0000_0000); }