public void CantAqureLock()
 {
     var l = new ReaderWriterLockSlim();
     var e = new AutoResetEvent(false);
     var t = new Thread(() =>
     {
         var b =l.TryEnterWriteLock(TimeSpan.FromSeconds(1));
         Assert.IsTrue(b);
         e.Set();
         Thread.Sleep(TimeSpan.FromMinutes(10));
         l.Dispose();
     });
     t.Start();
     e.WaitOne();
     var a = new DisposableReaderWriterLockSlim(l, TimeSpan.FromSeconds(3), SlimLockMode.Write);
 }
 public void CtorExceptionTestSuccess()
 {
     var a = new DisposableReaderWriterLockSlim(new ReaderWriterLockSlim());
 }
 public void CtorExceptionTest()
 {
     var a = new DisposableReaderWriterLockSlim(null);
 }