//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void removalOfRelationshipIndexDoesNotClearNodeCommandsForNodeIndexWithSameName() public virtual void RemovalOfRelationshipIndexDoesNotClearNodeCommandsForNodeIndexWithSameName() { ExplicitIndexTransactionStateImpl state = NewExplicitIndexTxState(); state.AddNode("index", 1, "key", "value"); state.AddRelationship("index", 1, "key", "value", 11, 11); state.DeleteIndex(IndexEntityType.Relationship, "index"); IndexDefineCommand indexDefinedCommand = new IndexDefineCommand(); indexDefinedCommand.GetOrAssignIndexNameId("index"); indexDefinedCommand.GetOrAssignKeyId("key"); IndexCommand.DeleteCommand delete = new IndexCommand.DeleteCommand(); delete.Init(1, IndexEntityType.Relationship.id()); ISet <Command> expectedCommands = new HashSet <Command>(Arrays.asList(indexDefinedCommand, delete, AddNode(1, 1, 1, "value"))); assertEquals(expectedCommands, ExtractCommands(state)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void relationshipIndexDeletionRemovesCommands() public virtual void RelationshipIndexDeletionRemovesCommands() { ExplicitIndexTransactionStateImpl state = NewExplicitIndexTxState(); state.RemoveRelationship("index", 1, "key", "value1"); state.AddRelationship("index", 2, "key", "value2", 11, 11); state.AddRelationship("index", 3, "key", "value3", 22, 22); state.DeleteIndex(IndexEntityType.Relationship, "index"); IndexDefineCommand indexDefinedCommand = new IndexDefineCommand(); indexDefinedCommand.GetOrAssignIndexNameId("index"); indexDefinedCommand.GetOrAssignKeyId("key"); IndexCommand.DeleteCommand delete = new IndexCommand.DeleteCommand(); delete.Init(1, IndexEntityType.Relationship.id()); ISet <Command> expectedCommands = new HashSet <Command>(Arrays.asList(indexDefinedCommand, delete)); assertEquals(expectedCommands, ExtractCommands(state)); }