public void WriteBytesBlocking() { DGSerial serial1 = new DGSerial(_portName1, _baudRate1); Thread thread = new Thread(new ThreadStart(WriteBytesBlocking_ReadThread)); serial1.Open(); byte[] buffertx = new byte[serial1.Get().WriteBufferSize]; Stopwatch watch = Stopwatch.StartNew(); thread.Start(); serial1.WriteBytesBlocking(buffertx); watch.Stop(); Assert.That(watch.ElapsedMilliseconds, Is.AtLeast(1999)); serial1.Close(); }