//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldTreatPropertyThatMovedToAnotherRecordAsChange() public virtual void ShouldTreatPropertyThatMovedToAnotherRecordAsChange() { // GIVEN int key = 12; Value oldValue = Values.of("value1"); Value newValue = Values.of("value two"); Command.PropertyCommand movedFrom = Change(PropertyRecord(Property(key, oldValue)), PropertyRecord()); Command.PropertyCommand movedTo = Change(PropertyRecord(), PropertyRecord(Property(key, newValue))); // WHEN EntityUpdates update = Convert(_none, _none, movedFrom, movedTo); // THEN EntityUpdates expected = EntityUpdates.ForEntity(0, false).changed(key, oldValue, newValue).build(); assertEquals(expected, update); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testVisitPropertyCommand() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void TestVisitPropertyCommand() { Command.PropertyCommand cmd = mock(typeof(Command.PropertyCommand)); when(cmd.Handle(any(typeof(CommandVisitor)))).thenCallRealMethod(); // WHEN bool result = _facade.visitPropertyCommand(cmd); // THEN InOrder inOrder = inOrder(_txApplier1, _txApplier2, _txApplier3); inOrder.verify(_txApplier1).visitPropertyCommand(cmd); inOrder.verify(_txApplier2).visitPropertyCommand(cmd); inOrder.verify(_txApplier3).visitPropertyCommand(cmd); inOrder.verifyNoMoreInteractions(); assertFalse(result); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public boolean visitPropertyCommand(org.neo4j.kernel.impl.transaction.command.Command.PropertyCommand command) throws java.io.IOException public override bool VisitPropertyCommand(Command.PropertyCommand command) { return(Visit(command)); }