Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void showsRemovedRelationships() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShowsRemovedRelationships()
        {
            // Given
            _state.relationshipDoDelete(1L, 1, 1L, 2L);
            _state.relationshipDoDelete(2L, 1, 1L, 1L);

            _ops.withRelationship(1, 1, 1, 2);
            _ops.withRelationship(2, 1, 1, 1, genericMap("key", Values.of("p")));

            // When & Then
            TxStateTransactionDataSnapshot snapshot = snapshot();

            assertThat(IdList(snapshot.DeletedRelationships()), equalTo(asList(1L, 2L)));
            assertThat(single(snapshot.RemovedRelationshipProperties()).key(), equalTo("key"));
        }