示例#1
0
        public void ListKeys()
        {
            ImmutableHashSet <KeyBytes> keys = KeyValueStore.ListKeys().ToImmutableHashSet();

            Assert.Equal(PreStoredDataCount, keys.Count);
            Assert.True(PreStoredDataKeys.ToImmutableHashSet().SetEquals(keys));
        }
示例#2
0
        public void ListKeys()
        {
            ImmutableHashSet <byte[]> keys = KeyValueStore.ListKeys().ToImmutableHashSet();

            Assert.Equal(PreStoredDataCount, keys.Count);
            var equalityComparer = new BytesEqualityComparer();

            Assert.True(PreStoredDataKeys.ToImmutableHashSet(equalityComparer).SetEquals(keys));
        }