28 references to Assert
Microsoft.CodeAnalysis.CodeStyle (28)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
75RoslynDebug.Assert(options != null);
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (2)
74RoslynDebug.Assert(invocation.Instance is not null); 102RoslynDebug.Assert(conditional.WhenFalse is not null);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
97RoslynDebug.Assert(!string.IsNullOrEmpty(targetSymbolString)); 98RoslynDebug.Assert(targetValueOperation != null);
src\Compilers\Core\Portable\EncodedStringText.cs (6)
90RoslynDebug.Assert(stream != null); 91RoslynDebug.Assert(stream.CanRead); 134RoslynDebug.Assert(data != null); 135RoslynDebug.Assert(encoding != null); 196RoslynDebug.Assert(stream != null); 197RoslynDebug.Assert(stream.Position == 0);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
49RoslynDebug.Assert(searchPaths != null); 50RoslynDebug.Assert(fileExists != null);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
438RoslynDebug.Assert(!RoslynString.IsNullOrEmpty(root)); 495RoslynDebug.Assert(assemblyDisplayNameOrPath != null);
src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (1)
158RoslynDebug.Assert(comparer != null);
src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
111RoslynDebug.Assert(_tail is object);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
864RoslynDebug.Assert(comparer != null);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (1)
121RoslynDebug.Assert((object?)value != null);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
196RoslynDebug.Assert(_value is V); // Implies value != null
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (2)
21RoslynDebug.Assert(symbol != null); 22RoslynDebug.Assert(generatedCodeAttribute != null);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
276RoslynDebug.Assert(value != null); 374RoslynDebug.Assert(value != null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
64RoslynDebug.Assert(TypeOrNamespaceUsageInfoOpt.HasValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
68RoslynDebug.Assert(text is object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1182RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
242RoslynDebug.Assert(node.SpilloverEdges is null);