13 references to Assert
Microsoft.CodeAnalysis (13)
ConstantValueSpecialized.cs (2)
148RoslynDebug.Assert(value != null, "null strings should be represented as Null constant."); 155RoslynDebug.Assert(value != null, "null strings should be represented as Null constant.");
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1006RoslynDebug.Assert(!actionsForKind.IsEmpty, $"Unexpected empty action collection in {nameof(nodeActionsByKind)}"); 1106RoslynDebug.Assert(!actionsForKind.IsEmpty, $"Unexpected empty action collection in {nameof(operationActionsByKind)}");
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (4)
225RoslynDebug.Assert(_lazyPendingMemberSymbolsMap != null, $"{nameof(_lazyPendingMemberSymbolsMap)} was expected to be a non-null value."); 231RoslynDebug.Assert(dependentSymbols == null, $"{nameof(dependentSymbols)} was expected to be null."); 235RoslynDebug.Assert(dependentSymbols != null, $"{nameof(dependentSymbols)} was expected to be a non-null value."); 236RoslynDebug.Assert(existingDependentSymbols.IsSubsetOf(dependentSymbols), $"{nameof(existingDependentSymbols)} was expected to be a subset of {nameof(dependentSymbols)}");
InternalUtilities\Debug.cs (1)
37Assert(value is object, "Unexpected null reference");
InternalUtilities\StringTable.cs (1)
730RoslynDebug.Assert((ascii[i] & 0x80) == 0, $"The {nameof(ascii)} input to this method must be valid ASCII.");
Syntax\GreenNode.cs (1)
116RoslynDebug.Assert(node != null, "PERF: caller must ensure that node!=null, we do not want to re-check that here.");
Syntax\SyntaxNode.cs (2)
33RoslynDebug.Assert(position >= 0, "position cannot be negative"); 34RoslynDebug.Assert(parent?.Green.IsList != true, "list cannot be a parent");