예제 #1
0
            public override NodeRecord Answer(InvocationOnMock invocation)
            {
                if ((( Number )invocation.getArgument(0)).longValue() == 0L && invocation.getArgument(1) == null && invocation.getArgument(2) == null)
                {
                    return(null);
                }

                NodeRecord record = invocation.getArgument(1);

                record.Id       = (( Number )invocation.getArgument(0)).longValue();
                record.InUse    = true;
                record.Dense    = Dense;
                record.NextRel  = NextRel;
                record.NextProp = NextProp;
                return(record);
            }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.register.Register_DoubleLongRegister answer(org.mockito.invocation.InvocationOnMock invocationOnMock) throws Throwable
            public override Org.Neo4j.Register.Register_DoubleLongRegister answer(InvocationOnMock invocationOnMock)
            {
                Org.Neo4j.Register.Register_DoubleLongRegister r = invocationOnMock.getArgument(1);
                r.Write(_updates[i], 0);
                i = (i + 1) % _updates.Length;
                return(r);
            }