//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldPerformEqualitySeek() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldPerformEqualitySeek() { // given ISet <Pair <long, Value> > expected = new HashSet <Pair <long, Value> >(); using (Transaction tx = beginTransaction()) { expected.Add(NodeWithProp(tx, "banana")); NodeWithProp(tx, "apple"); tx.Success(); } CreateIndex(); // when using (Transaction tx = beginTransaction()) { int label = tx.TokenRead().nodeLabel("Node"); int prop = tx.TokenRead().propertyKey("prop"); expected.Add(NodeWithProp(tx, "banana")); NodeWithProp(tx, "dragonfruit"); IndexReference index = tx.SchemaRead().index(label, prop); // Equality seek does never provide values AssertNodeAndValueForSeek(expected, tx, index, false, "banana", IndexQuery.Exact(prop, "banana")); } }
private void AssertExactPredicate(object value) { ExactPredicate p = IndexQuery.Exact(_propId, value); assertTrue(Test(p, value)); AssertFalseForOtherThings(p); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testExact_ComparingBigDoublesAndLongs() public virtual void TestExactComparingBigDoublesAndLongs() { ExactPredicate p = IndexQuery.Exact(_propId, 9007199254740993L); assertFalse(Test(p, 9007199254740992D)); }