//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldTraceWaitTimeWhenTryingToAcquireExclusiveLockAndSharedIsHeld() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldTraceWaitTimeWhenTryingToAcquireExclusiveLockAndSharedIsHeld() { // given Tracer tracerA = new Tracer(); Tracer tracerB = new Tracer(); ClientA.acquireShared(tracerA, NODE, 17); // when Future <object> future = AcquireExclusive(ClientB, tracerB, NODE, 17).callAndAssertWaiting(); // then ClientA.releaseShared(NODE, 17); future.get(); tracerA.AssertCalls(0); tracerB.AssertCalls(1); }