public void CantAqureLock()
        {
            var l = new ReaderWriterLock();
            var e = new AutoResetEvent(false);
            var t = new Thread(() =>
            {
                l.AcquireWriterLock(TimeSpan.FromSeconds(1));
                e.Set();
                Thread.Sleep(TimeSpan.FromMinutes(10));
            });

            t.Start();
            e.WaitOne();
            var a = new DisposableReaderWriterLock(l, TimeSpan.FromSeconds(3), LockMode.Write);
        }
 public void CtorExceptionTestSuccess()
 {
     var a = new DisposableReaderWriterLock(new ReaderWriterLock());
 }
 public void CtorExceptionTest()
 {
     var a = new DisposableReaderWriterLock(null);
 }