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