21 references to Assert
PresentationFramework (1)
src\Framework\System\Windows\Style.cs (1)
688Debug.Assert(setterBase is EventSetter,
System (1)
net\System\Net\HttpWebRequest.cs (1)
5791Debug.Assert(hostUriSuccess, "Can't rebuild HostUri from redirected URI: {0}", _Uri.ToString());
System.Data (3)
fx\src\data\System\Data\SQLTypes\SQLUtility.cs (3)
194Debug.Assert(condition, "", ""); 199Debug.Assert(condition, conditionString, message); 204Debug.Assert(condition, conditionString, "");
System.Data.Entity (1)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
492Debug.Assert(
System.Xml (14)
System\Xml\BinaryXml\SqlUtils.cs (14)
159Debug.Assert(iulD != 0, "iulD != 0", "Divided by zero!"); 160Debug.Assert(iulD > 0, "iulD > 0", "Invalid data: less than zero"); 161Debug.Assert(ciulU > 0, "ciulU > 0", "No data in the array"); 282Debug.Assert(dwlAccum < x_ulInt32Base, "dwlAccum < x_lInt32Base", ""); 323Debug.Assert(dwlAccum < x_ulInt32Base, "dwlAccum < x_dwlBaseUI4", "Integer overflow"); 415Debug.Assert(bPrec <= MaxPrecision && bPrec > 0, "bPrec <= MaxPrecision && bPrec > 0", "Invalid numeric precision"); 523Debug.Assert(m_bScale <= NUMERIC_MAX_PRECISION, "m_bScale <= NUMERIC_MAX_PRECISION", "In AssertValid"); 524Debug.Assert(m_bScale <= m_bPrec, "m_bScale <= m_bPrec", "In AssertValid"); 525Debug.Assert(m_bScale >= 0, "m_bScale >= 0", "In AssertValid"); 526Debug.Assert(m_bPrec > 0, "m_bPrec > 0", "In AssertValid"); 527Debug.Assert(CLenFromPrec(m_bPrec) >= m_bLen, "CLenFromPrec(m_bPrec) >= m_bLen", "In AssertValid"); 528Debug.Assert(m_bLen <= x_cNumeMax, "m_bLen <= x_cNumeMax", "In AssertValid"); 534Debug.Assert(m_bLen == 1, "m_bLen == 1", "In AssertValid"); 539Debug.Assert(rglData[iulData] == 0, "rglData[iulData] == 0", "In AssertValid");
WindowsBase (1)
Shared\MS\Internal\Invariant.cs (1)
269Debug.Assert(false, "Invariant failure: " + message, detailMessage);