public void GetValuesWhenValueNotParsedTest() { var _cache = new CollectionCache<string, object>(); const string KEY1 = "Test1"; var _value1 = new object(); const string KEY2 = "Test2"; var _value2 = new object(); _cache.AddOrGetExisting(KEY1, _value1); _cache.AddOrGetExisting(KEY2, _value2); var _list = _cache.GetValues(new[] { KEY1 }).ToList(); Assert.Contains(KEY1, _list.Select(_x => _x.Key).ToList()); Assert.IsFalse(_list.Select(_x => _x.Key).Contains(KEY2)); }