public void ModbusFactoryThrowsOnNullLoggerPassedToCreateTcpMaster()
        {
            // Arrange
            var factory = new ModbusFactory();

            // Act/Assert
            Assert.Throws <ArgumentNullException>("logger", () => factory.CreateTcpMaster(new TcpClient(), null));
        }
        public void ModbusFactoryThrowsOnNullTcpClientPassedToCreateTcpMaster()
        {
            // Arrange
            var factory = new ModbusFactory();

            // Act/Assert
            Assert.Throws <ArgumentNullException>("tcpClient", () => factory.CreateTcpMaster((TcpClient)null));
        }