//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldStopUnderlyingClient() public virtual void ShouldStopUnderlyingClient() { // GIVEN Locks_Client actualClient = mock(typeof(Locks_Client)); DeferringLockClient client = new DeferringLockClient(actualClient); // WHEN client.Stop(); // THEN verify(actualClient).stop(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldThrowOnAcquireWhenStopped() public virtual void ShouldThrowOnAcquireWhenStopped() { // GIVEN Locks_Client actualClient = mock(typeof(Locks_Client)); DeferringLockClient client = new DeferringLockClient(actualClient); client.Stop(); try { // WHEN client.AcquireExclusive(LockTracer.NONE, ResourceTypes.Node, 1); fail("Expected exception"); } catch (LockClientStoppedException) { // THEN } }
public override void Stop() { @implicit.Stop(); }