Esempio n. 1
0
        public void From_To_Byte(byte extendedIdentifierMask)
        {
            var rxMxEid0 = new RxMxEid0(0, extendedIdentifierMask);

            Assert.Equal(extendedIdentifierMask, rxMxEid0.ExtendedIdentifierMask);
            Assert.Equal(extendedIdentifierMask, rxMxEid0.ToByte());
        }
Esempio n. 2
0
 public void Get_RxMaskNumber_Address(byte rxMaskNumber, Address address)
 {
     Assert.Equal(rxMaskNumber, RxMxEid0.GetRxMaskNumber(address));
     Assert.Equal(address, new RxMxEid0(rxMaskNumber, 0x00).Address);
 }