/// <summary> Quick and dirty convenience method that instantiates an instance with /// "good defaults" and uses it to test the CacheEntry[] /// </summary> /// <seealso cref="check"> /// </seealso> public static Insanity[] CheckSanity(CacheEntry[] cacheEntries) { FieldCacheSanityChecker sanityChecker = new FieldCacheSanityChecker(); // doesn't check for interned sanityChecker.SetRamUsageEstimator(new RamUsageEstimator(false)); return(sanityChecker.Check(cacheEntries)); }
/// <summary> Quick and dirty convenience method that instantiates an instance with /// "good defaults" and uses it to test the CacheEntry[] /// </summary> /// <seealso cref="check"> /// </seealso> public static Insanity[] CheckSanity(CacheEntry[] cacheEntries) { FieldCacheSanityChecker sanityChecker = new FieldCacheSanityChecker(); // doesn't check for interned sanityChecker.SetRamUsageEstimator(new RamUsageEstimator(false)); return sanityChecker.Check(cacheEntries); }