Beispiel #1
0
        public void Get_Bytes(bool alternativeComPinConfiguration, bool enableLeftRightRemap, byte[] expectedBytes)
        {
            SetComPinsHardwareConfiguration setComPinsHardwareConfiguration = new SetComPinsHardwareConfiguration(alternativeComPinConfiguration, enableLeftRightRemap);

            byte[] actualBytes = setComPinsHardwareConfiguration.GetBytes();
            Assert.Equal(expectedBytes, actualBytes);
        }
Beispiel #2
0
        public void Get_Bytes_With_Default_Values()
        {
            SetComPinsHardwareConfiguration setComPinsHardwareConfiguration = new SetComPinsHardwareConfiguration();

            byte[] actualBytes = setComPinsHardwareConfiguration.GetBytes();
            Assert.Equal(new byte[] { 0xDA, 0x12 }, actualBytes);
        }