6 references to Assert
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
453
RoslynDebug.
Assert
(false, $"New derived type of {nameof(BaseObjectCreationExpressionSyntax)} is added");
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
292
RoslynDebug.
Assert
(_speculativeModel != null, "expanding a syntax node which cannot be speculated?");
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
39
Assert
(value is object, "Unexpected null reference");
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
534
RoslynDebug.
Assert
((ascii[i] & 0x80) == 0, $"The {nameof(ascii)} input to this method must be valid ASCII.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (2)
121
RoslynDebug.
Assert
(adjustment != 0, $"Indentation with no adjustment should be represented by {nameof(BaseIndentationData)} directly.");
122
RoslynDebug.
Assert
(baseIndentationData is not AdjustedIndentationData, $"Indentation data should only involve one layer of adjustment (multiples can be combined by adding the {nameof(Adjustment)} fields.");