public void LockAndUnlock() { var mutex = new AsyncMutex(); using (mutex.LockAndUnlock()) { Assert.False(mutex.Lock(0)); } }