//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void exclusiveShouldWaitForShared() public virtual void ExclusiveShouldWaitForShared() { // When ClientA.acquireShared(LockTracer.NONE, NODE, 1L); // Then other shared locks are allowed ClientC.acquireShared(LockTracer.NONE, NODE, 1L); // But exclusive locks should wait Future <object> clientBLock = AcquireExclusive(ClientB, LockTracer.NONE, NODE, 1L).callAndAssertWaiting(); // And when ClientA.releaseShared(NODE, 1L); ClientC.releaseShared(NODE, 1L); // Then this should not block AssertNotWaiting(ClientB, clientBLock); }