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

            // doesn't check for interned
            sanityChecker.SetRamUsageEstimator(new RamUsageEstimator(false));
            return(sanityChecker.Check(cacheEntries));
        }