private void AssertCache(LruCache<string, string> cache, int start, int count)
{
Assert.AreEqual(count, cache.Count);
for (int i = -10; i < start + count + 10; i++)
{
if (i >= start && i < start + count)
{
AssertInCache(cache, "key" + i, "value" + i);
}
else
{
AssertNotInCache(cache, "key" + i);
}
}
}