Esempio n. 1
0
//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();
        }
Esempio n. 2
0
//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
            }
        }
Esempio n. 3
0
 public override void Stop()
 {
     @implicit.Stop();
 }