public async Task Can_HScan_10_hashes() { await RedisAsync.FlushAllAsync(); var values = 10.Times(x => "VALUE" + x); await RedisAsync.SetRangeInHashAsync("scanhash", values.ToSafeDictionary(x => x.Replace("VALUE", "KEY"))); var ret = await NativeAsync.HScanAsync("scanhash", 0); var keyValues = ret.AsKeyValues(); Assert.That(ret.Cursor, Is.GreaterThanOrEqualTo(0)); Assert.That(keyValues.Keys, Is.EquivalentTo(values.ConvertAll(x => x.Replace("VALUE", "KEY")))); Assert.That(keyValues.Values, Is.EquivalentTo(values)); }