public void All()
        {
            var visitor = new GatheringVisitor();

            counters.Dump(visitor);

            Assert.NotEmpty(visitor);
            Assert.Contains(visitor, x => x.Name == "Major sweep");
            Assert.Contains(visitor, x => x.Name == "User Time");
            Assert.Contains(visitor, x => x.Name == "Major GC time");
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldSeeAddedRelationshipProperties() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldSeeAddedRelationshipProperties()
        {
            // Given
            long             relId   = 1L;
            int              propKey = 2;
            GatheringVisitor visitor = new GatheringVisitor();
            Value            value   = Values.of("hello");

            _state.relationshipDoReplaceProperty(relId, propKey, Values.of(""), value);

            // When
            _state.accept(visitor);

            // Then
            StorageProperty prop = new PropertyKeyValue(propKey, Values.of("hello"));

            assertThat(visitor.RelPropertyChanges, Contains(PropChange(relId, _noProperty, new IList <StorageProperty> {
                prop
            }, IntSets.immutable.empty())));
        }