public void ReadBytesBlocking() { DGSerial serial2 = new DGSerial(_portName2, _baudRate2); Thread thread = new Thread(new ThreadStart(ReadBytesBlocking_ReadThread)); serial2.Open(); Stopwatch watch = Stopwatch.StartNew(); thread.Start(); byte[] bufferrx = serial2.ReadBytesBlocking(); watch.Stop(); var wd = watch.ElapsedMilliseconds; Assert.That(watch.ElapsedMilliseconds, Is.AtLeast(1999)); serial2.Close(); }