Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCountNumberOfActiveLocks()
        public virtual void ShouldCountNumberOfActiveLocks()
        {
            // given
            ClientA.acquireShared(LockTracer.NONE, LABEL, 0);
            ClientA.acquireShared(LockTracer.NONE, RELATIONSHIP, 17);
            ClientA.acquireShared(LockTracer.NONE, NODE, 12);

            // when
            long count = ClientA.activeLockCount();

            // then
            assertEquals(3, count);
        }