public void From_To_Byte(byte extendedIdentifier) { var rxMxEid8 = new RxMxEid8(0, extendedIdentifier); Assert.Equal(extendedIdentifier, rxMxEid8.ExtendedIdentifier); Assert.Equal(extendedIdentifier, rxMxEid8.ToByte()); }
public void Get_RxMaskNumber_Address(byte rxMaskNumber, Address address) { Assert.Equal(rxMaskNumber, RxMxEid8.GetRxMaskNumber(address)); Assert.Equal(address, new RxMxEid8(rxMaskNumber, 0x00).Address); }