Exemple #1
0
        public void From_To_Byte(byte extendedIdentifier, bool extendedIdentifierEnable, byte standardIdentifier, byte expectedByte)
        {
            var txBxSidl = new TxBxSidl(0, extendedIdentifier, extendedIdentifierEnable, standardIdentifier);

            Assert.Equal(extendedIdentifier, txBxSidl.ExtendedIdentifier);
            Assert.Equal(extendedIdentifierEnable, txBxSidl.ExtendedIdentifierEnable);
            Assert.Equal(standardIdentifier, txBxSidl.StandardIdentifier);
            Assert.Equal(expectedByte, txBxSidl.ToByte());
            Assert.Equal(expectedByte, new TxBxSidl(0, expectedByte).ToByte());
        }
Exemple #2
0
 public void Get_RxFilterNumber_Address(byte txBufferNumber, Address address)
 {
     Assert.Equal(txBufferNumber, TxBxSidl.GetTxBufferNumber(address));
     Assert.Equal(address, new TxBxSidl(txBufferNumber, 0x00, false, 0x00).Address);
 }