public void RecordCache_Test1() { RecordCache cache = new RecordCache(Connection); MarcRecord record1 = cache.Get(1); Debug.Assert(record1 == null); record1 = cache.GetOrRequest(1); Debug.Assert(record1 != null); Debug.Assert(cache.RequestCount == 1); MarcRecord record2 = cache.Get(1); Debug.Assert(record2 != null); Debug.Assert(cache.RequestCount == 1); }