//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCallIndexSeek() throws org.neo4j.internal.kernel.api.exceptions.KernelException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldCallIndexSeek()
        {
            // GIVEN
            Read           read  = mock(typeof(Read));
            IndexReference index = mock(typeof(IndexReference));

            when(index.Properties()).thenReturn(new int[] { 42 });

            // WHEN
            CompiledIndexUtils.IndexSeek(read, mock(typeof(CursorFactory)), index, "hello");

            // THEN
            verify(read, times(1)).nodeIndexSeek(any(), any(), any(), anyBoolean(), any());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldHandleNullInIndexSeek() throws org.neo4j.internal.kernel.api.exceptions.KernelException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldHandleNullInIndexSeek()
        {
            // GIVEN
            Read           read  = mock(typeof(Read));
            IndexReference index = mock(typeof(IndexReference));

            when(index.Properties()).thenReturn(new int[] { 42 });

            // WHEN
            NodeValueIndexCursor cursor = CompiledIndexUtils.IndexSeek(mock(typeof(Read)), mock(typeof(CursorFactory)), index, null);

            // THEN
            verify(read, never()).nodeIndexSeek(any(), any(), any(), anyBoolean());
            assertFalse(cursor.Next());
        }