public virtual void TestForceUnlock() { mm.Lock("key1"); var latch = new CountdownEvent(1); var t = new Thread(delegate(object o) { mm.ForceUnlock("key1"); latch.Signal(); }); t.Start(); Assert.IsTrue(latch.Wait(TimeSpan.FromSeconds(100))); Assert.IsFalse(mm.IsLocked("key1")); }