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

            when(_tokenRead.nodeLabelName(labelId)).thenReturn("theLabel");
            _state.nodeDoAddLabel(labelId, 1L);

            // When
            IEnumerable <LabelEntry> labelEntries = Snapshot().assignedLabels();

            // Then
            LabelEntry entry = single(labelEntries);

            assertThat(entry.Label().name(), equalTo("theLabel"));
            assertThat(entry.Node().Id, equalTo(1L));
        }