Пример #1
0
        public unsafe void BuildCommDcb()
        {
            DeviceControlBlock dcb = Communications.BuildDeviceControlBlock(@"baud=1200 parity=N data=8 stop=1");

            dcb.BaudRate.Should().Be(CommBaudRate.Baud_1200);
            dcb.Parity.Should().Be(Parity.None);
            dcb.ByteSize.Should().Be(8);
            dcb.StopBits.Should().Be(StopBits.One);
        }