12 references to Assert
System.Runtime.Caching (12)
System\Caching\ChangeMonitor.cs (3)
136
Dbg.
Assert
(_flags[INITIALIZED], "It is critical that INITIALIZED is set before CHANGED is checked below");
151
Dbg.
Assert
(_flags[CHANGED], "It is critical that CHANGED is set before INITIALIZED is checked below.");
197
Dbg.
Assert
(_flags[CHANGED], "It is critical that CHANGED is set before INITIALIZED is checked below.");
System\Caching\MemoryCacheEntry.cs (1)
215
Dbg.
Assert
(_fields._dependents == null, "_fields._dependents == null");
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
116
Dbg.
Assert
(keys != null && keys.Count > 0, "keys != null && keys.Count > 0");
System\Caching\MemoryCacheStore.cs (3)
91
Dbg.
Assert
(entry.State == EntryState.RemovingFromCache, "entry.State = EntryState.RemovingFromCache");
235
Dbg.
Assert
(_useInsertBlock == false, "_useInsertBlock == false");
316
Dbg.
Assert
(percent <= 100, "percent <= 100");
System\Caching\MemoryMonitor.cs (3)
67
Dbg.
Assert
(_pressureHigh > 0, "_pressureHigh > 0");
68
Dbg.
Assert
(_pressureLow > 0, "_pressureLow > 0");
69
Dbg.
Assert
(_pressureLow <= _pressureHigh, "_pressureLow <= _pressureHigh");
System\Caching\PhysicalMemoryMonitor.cs (1)
81
Dbg.
Assert
(memory != 0, "memory != 0");