51 references to Assert
Microsoft.CodeAnalysis.Analyzers (51)
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (1)
129
RoslynDebug.
Assert
(attributeSyntax != null);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (13)
302
RoslynDebug.
Assert
(localizableTitles != null);
303
RoslynDebug.
Assert
(localizableMessages != null);
304
RoslynDebug.
Assert
(localizableDescriptions != null);
305
RoslynDebug.
Assert
(resourcesDataValueMap != null);
486
RoslynDebug.
Assert
(shippedData != null);
487
RoslynDebug.
Assert
(unshippedData != null);
495
RoslynDebug.
Assert
(localizableTitles != null);
496
RoslynDebug.
Assert
(localizableMessages != null);
497
RoslynDebug.
Assert
(localizableDescriptions != null);
498
RoslynDebug.
Assert
(resourcesDataValueMap != null);
817
RoslynDebug.
Assert
(resourceDataValueMap != null);
1262
RoslynDebug.
Assert
(shippedData != null);
1263
RoslynDebug.
Assert
(unshippedData != null);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (6)
72
RoslynDebug.
Assert
(!allowedIdsInfoList.IsDefaultOrEmpty);
73
RoslynDebug.
Assert
(category != null);
74
RoslynDebug.
Assert
(additionalText != null);
83
RoslynDebug.
Assert
(allowedIds.prefix != null);
172
RoslynDebug.
Assert
(categoryAndAllowedIdsInfoMap != null);
173
RoslynDebug.
Assert
(additionalText != null);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (3)
196
RoslynDebug.
Assert
(diagnostics != null);
210
RoslynDebug.
Assert
(diagnostics != null);
211
RoslynDebug.
Assert
(reportedInvalidLines != null);
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (2)
129
RoslynDebug.
Assert
(entryToAdd != null);
368
RoslynDebug.
Assert
(currentTableKind.HasValue);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (3)
160
RoslynDebug.
Assert
(literal.ConstantValue.HasValue && literal.ConstantValue.Value is string);
169
RoslynDebug.
Assert
(fixInfo.AdditionalDocumentToFix != null);
170
RoslynDebug.
Assert
(fixInfo.AdditionalDocumentSpanToFix != null);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
112
RoslynDebug.
Assert
(additionalDocument != null);
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
172
RoslynDebug.
Assert
(currentRuleEntryKind != null);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
97
RoslynDebug.
Assert
(_enablingMethodAttributeFullyQualifiedName != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
249
RoslynDebug.
Assert
(s_syntaxTreeDiagnosticOptionsProperty != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
452
RoslynDebug.
Assert
(operation.SemanticModel is not null);
897
RoslynDebug.
Assert
(argument.Parameter is not null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
384
RoslynDebug.
Assert
(iCollection != null);
385
RoslynDebug.
Assert
(iCollectionOfT != null);
386
RoslynDebug.
Assert
(iReadOnlyCollectionOfT != null);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (2)
500
RoslynDebug.
Assert
(optionDefaultValue != null);
510
RoslynDebug.
Assert
(optionValue != null);
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
72
RoslynDebug.
Assert
(_analyzerConfigOptions != null);
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (7)
315
RoslynDebug.
Assert
(_root is object);
485
RoslynDebug.
Assert
(unbalanced.Right is object);
497
RoslynDebug.
Assert
(unbalanced.Left is object);
509
RoslynDebug.
Assert
(unbalanced.Right is object);
510
RoslynDebug.
Assert
(unbalanced.Right.Left is object);
537
RoslynDebug.
Assert
(unbalanced.Left != null);
538
RoslynDebug.
Assert
(unbalanced.Left.Right != null);
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (2)
51
RoslynDebug.
Assert
(x != null);
52
RoslynDebug.
Assert
(y != null);
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (2)
141
RoslynDebug.
Assert
(namespaceNames != null);
215
RoslynDebug.
Assert
(namespaceNamesBuilder != null);