Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static org.neo4j.bolt.runtime.BoltResultHandle newResultHandle(Throwable t) throws org.neo4j.internal.kernel.api.exceptions.KernelException
        private static BoltResultHandle NewResultHandle(Exception t)
        {
            BoltResultHandle resultHandle = mock(typeof(BoltResultHandle));

            when(resultHandle.Start()).thenThrow(t);

            return(resultHandle);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static org.neo4j.bolt.runtime.BoltResultHandle newResultHandle() throws org.neo4j.internal.kernel.api.exceptions.KernelException
        private static BoltResultHandle NewResultHandle()
        {
            BoltResultHandle resultHandle = mock(typeof(BoltResultHandle));

            when(resultHandle.Start()).thenReturn(BoltResult.EMPTY);

            return(resultHandle);
        }