Base\System\Windows\Freezable.cs (13)
846Invariant.Assert(false);
1951if (Invariant.Strict)
1960Invariant.Assert(clone != original, "CloneCore should not return the same instance as the original.");
1963Invariant.Assert(!cloneAsFreezable.HasHandlers, "CloneCore should not have handlers attached on construction.");
1971Invariant.Assert(originalAsIList.Count == cloneAsIList.Count, "CloneCore didn't clone all of the elements in the list.");
1979Invariant.Assert(originalItemAsFreezable != cloneItemAsFreezable, "CloneCore didn't clone the elements in the list correctly.");
1988if (Invariant.Strict)
1990Invariant.Assert(newInstance != null, "{0} should not return null.", methodName);
1991Invariant.Assert(newInstance.GetType() == original.GetType(),
1995Invariant.Assert(!newInstance.IsFrozen, "{0} should return a mutable instance. Recieved a frozen instance.",
2004if (Invariant.Strict)
2042if (Invariant.Strict)
2044Invariant.Assert(owner != null,