public void ListKeys() { ImmutableHashSet <KeyBytes> keys = KeyValueStore.ListKeys().ToImmutableHashSet(); Assert.Equal(PreStoredDataCount, keys.Count); Assert.True(PreStoredDataKeys.ToImmutableHashSet().SetEquals(keys)); }
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)); }