45 references to Assert
Microsoft.Build.Framework (2)
EncodingUtilities.cs (2)
72
Debug.
Assert
(false, "GetEncoding(default OEM encoding) threw an ArgumentException in EncodingUtilities.CurrentSystemOemEncoding! Please log a bug against MSBuild.", ex.Message);
76
Debug.
Assert
(false, "GetEncoding(default OEM encoding) threw a NotSupportedException in EncodingUtilities.CurrentSystemOemEncoding! Please log a bug against MSBuild.", ex.Message);
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (2)
GenerateWasmBootJson.cs (2)
268
Debug.
Assert
(!string.IsNullOrEmpty(targetPath), "Target path for '{0}' must exist.", resource.ItemSpec);
314
Debug.
Assert
(!string.IsNullOrEmpty(targetPath), "Target path for '{0}' must exist.", resource.ItemSpec);
PresentationFramework (1)
System\Windows\Style.cs (1)
682
Debug.
Assert
(setterBase is EventSetter,
System.Data.Common (24)
System\Data\SQLTypes\SQLDecimal.cs (22)
720
Debug.
Assert
(ulLen <= s_NUMERIC_MAX_PRECISION, "ulLen <= NUMERIC_MAX_PRECISION", "");
1809
Debug.
Assert
(_bScale <= s_NUMERIC_MAX_PRECISION, "m_bScale <= NUMERIC_MAX_PRECISION", "In AssertValid");
1810
Debug.
Assert
(_bScale <= _bPrec, "m_bScale <= m_bPrec", "In AssertValid");
1811
Debug.
Assert
(_bScale >= 0, "m_bScale >= 0", "In AssertValid");
1812
Debug.
Assert
(_bPrec > 0, "m_bPrec > 0", "In AssertValid");
1814
Debug.
Assert
(CLenFromPrec(_bPrec) >= _bLen, "CLenFromPrec(m_bPrec) >= m_bLen", "In AssertValid");
1815
Debug.
Assert
(_bLen <= s_cNumeMax, "m_bLen <= x_cNumeMax", "In AssertValid");
1822
Debug.
Assert
(_bLen == 1, "m_bLen == 1", "In AssertValid");
1827
Debug.
Assert
(rglData[iulData] == 0, "rglData[iulData] == 0", "In AssertValid");
1859
Debug.
Assert
(rgulData.Length == s_cNumeMax, "rgulData.Length == x_cNumeMax", "Invalid array length");
1912
Debug.
Assert
(bPrec <= MaxPrecision && bPrec > 0, "bPrec <= MaxPrecision && bPrec > 0",
1933
Debug.
Assert
(rglData.Length == 4, "rglData.Length == 4", $"Wrong array length: {rglData.Length}");
2139
Debug.
Assert
(dwlAccum < s_ulInt32Base, "dwlAccum < x_lInt32Base", "");
2185
Debug.
Assert
(dwlAccum < s_ulInt32Base, "dwlAccum < x_dwlBaseUI4", "Integer overflow");
2280
Debug.
Assert
(!IsNull, "!IsNull", "In AdjustScale");
2464
Debug.
Assert
(rgulS.Length >= ciulS, "rgulS.Length >= ciulS", "Invalid array length");
2465
Debug.
Assert
(rgulD.Length >= ciulS, "rgulD.Length >= ciulS", "Invalid array length");
2544
Debug.
Assert
(iulD != 0, "iulD != 0", "Divided by zero!");
2545
Debug.
Assert
(iulD > 0, "iulD > 0", "Invalid data: less than zero");
2546
Debug.
Assert
(ciulU > 0, "ciulU > 0", "No data in the array");
2603
Debug.
Assert
(ciulU > 0, "ciulU > 0", "In method MpDiv");
2604
Debug.
Assert
(ciulD > 0, "ciulD > 0", "In method MpDiv");
System\Data\SQLTypes\SQLString.cs (2)
368
Debug.
Assert
(!x.IsNull && !y.IsNull,
376
Debug.
Assert
(x.FBinarySort() || (x.m_cmpInfo != null && y.m_cmpInfo != null),
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (4)
82
Assert
(condition, string.Empty, string.Empty);
86
Assert
(condition, message, string.Empty);
103
Assert
(condition, message.ToStringAndClear(), detailMessage.ToStringAndClear());
107
Assert
(condition, message, string.Format(detailMessageFormat, args));
System.Private.Xml (12)
System\Xml\BinaryXml\SqlUtils.cs (12)
92
Debug.
Assert
(iulD != 0, "iulD != 0", "Divided by zero!");
93
Debug.
Assert
(iulD > 0, "iulD > 0", "Invalid data: less than zero");
94
Debug.
Assert
(ciulU > 0, "ciulU > 0", "No data in the array");
130
Debug.
Assert
(bPrec <= s_maxPrecision && bPrec > 0, "bPrec <= MaxPrecision && bPrec > 0", "Invalid numeric precision");
250
Debug.
Assert
(m_bScale <= s_NUMERIC_MAX_PRECISION, "m_bScale <= NUMERIC_MAX_PRECISION", "In AssertValid");
251
Debug.
Assert
(m_bScale <= m_bPrec, "m_bScale <= m_bPrec", "In AssertValid");
252
Debug.
Assert
(m_bScale >= 0, "m_bScale >= 0", "In AssertValid");
253
Debug.
Assert
(m_bPrec > 0, "m_bPrec > 0", "In AssertValid");
254
Debug.
Assert
(CLenFromPrec(m_bPrec) >= m_bLen, "CLenFromPrec(m_bPrec) >= m_bLen", "In AssertValid");
255
Debug.
Assert
(m_bLen <= s_cNumeMax, "m_bLen <= x_cNumeMax", "In AssertValid");
262
Debug.
Assert
(m_bLen == 1, "m_bLen == 1", "In AssertValid");
267
Debug.
Assert
(rglData[iulData] == 0, "rglData[iulData] == 0", "In AssertValid");