2123 references to Fail
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
402Debug.Fail("Attempt to remove an unknown resource view model.");
dotnet-svcutil-lib (16)
Bootstrapper\SvcutilBootstrapper.cs (2)
67Debug.Fail($"The NoBootstrapping property is not set, this would cause infinite bootstrapping recursion!"); 73Debug.Fail("Bootstrapping is enabled for the bootstrapper! This would cause an infinite bootstrapping recursion!");
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (8)
830Debug.Fail("Unexpected parent NodeType"); 1135Debug.Fail("should never happen"); 1225Debug.Fail("should never happen"); 1320Debug.Fail("should never happen"); 1415Debug.Fail("should never happen"); 1510Debug.Fail("should never happen"); 1605Debug.Fail("should never happen"); 1700Debug.Fail("should never happen");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\LogicalExpr.cs (2)
324Debug.Fail("Unexpected Operator.op code in cmpNumberNumber()"); 336Debug.Fail("Unexpected Operator.op code in cmpNumberNumberO()");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingquery.cs (1)
100Debug.Fail("Algorithm error: we missed the centinel node");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
79Debug.Fail("We managed to miss sentinel node (input)");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
669Debug.Fail("Couldn't find Namespace Node! Should not happen!");
Metadata\MetadataDocumentSaver.cs (1)
120Debug.Fail("Unknown metadata found: " + typeName);
GenerateDocumentationAndConfigFiles (11)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
http2cat (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
illink (11)
ILLink.RoslynAnalyzer (3)
IOperationExtensions.cs (1)
104Debug.Fail("Unhandled declaration pattern context");
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
503Debug.Fail("Unreachable.");
TrimAnalysis\ParameterProxy.cs (1)
32Debug.Fail($"Unexpected RefKind {Method.Method.Parameters[MetadataIndex].RefKind} found on parameter {GetDisplayName()}");
Metrics (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Metrics.Legacy (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (9)
250Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 256Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 407Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 427Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 436Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 447Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 479Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 488Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 507Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
30Debug.Fail("Expected a single top-level BlockOperation for all lambdas.");
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
231Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitRegistry.cs (1)
279Debug.Fail($"Unexpected {nameof(EvictionReason)} {reason}");
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
94Debug.Fail($"Unexpected {nameof(EvictionReason)} {reason}");
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
228Debug.Fail("Missing handler for code: " + code);
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
61Debug.Fail(message);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
171Debug.Fail("ResetDescriptor called with descriptor available");
Microsoft.AspNetCore.DataProtection.Abstractions (1)
CryptoUtil.cs (1)
21Debug.Fail(message);
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
525Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
525Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Core (4)
Formatters\AcceptHeaderParser.cs (1)
43Debug.Fail("ParseAcceptHeader should advance charIndex, this is a bug.");
Infrastructure\ResourceInvoker.cs (1)
822Debug.Fail("unreachable");
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
227Debug.Fail($"Unable to find property '{propertyKey.Name}' on type '{propertyKey.ContainerType}.");
ModelBinding\SuppressChildValidationMetadataProvider.cs (1)
80Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
229Debug.Fail($"LanguageVersion {languageVersion} specified in the deps file could not be parsed.");
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
164Debug.Fail($"{nameof(content)} should be an {nameof(CharBufferHtmlContent)}.");
Microsoft.AspNetCore.OpenApi (1)
src\Shared\ParameterBindingMethodCache.cs (1)
525Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Rewrite (2)
UrlMatches\IntegerMatch.cs (1)
59Debug.Fail("This is never reached.");
UrlMatches\StringMatch.cs (1)
41Debug.Fail("This is never reached.");
Microsoft.AspNetCore.Routing (2)
Matching\EndpointComparer.cs (1)
88Debug.Fail("We don't expect this to be called.");
Tree\UrlMatchingTree.cs (1)
231Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Routing.Tests (1)
Patterns\RoutePatternParserTest.cs (1)
717Debug.Fail("This should not be reachable. Do you need to update the comparison logic?");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http2\Http2Connection.cs (1)
1637Debug.Fail($"Unexpected header type: {headerType}");
Internal\Http3\Http3Stream.cs (2)
356Debug.Fail($"Unexpected header type: {headerType}"); 848Debug.Fail("Unexpected header parsing state.");
Internal\Infrastructure\HttpUtilities.cs (1)
465Debug.Fail("Unexpected HttpVersion: " + httpVersion);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionContext.cs (1)
189Debug.Fail($"Unexpected exception in {nameof(QuicConnectionContext)}.{nameof(AcceptAsync)}: {ex}");
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
184Debug.Fail(exception.ToString());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
345Debug.Fail(exception.ToString());
Microsoft.Build.Framework (3)
ITaskItemExtensions.cs (1)
59Debug.Fail(e.ToString());
ThrowHelper.cs (2)
273Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 309Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
72Debug.Fail("This object requires explicit call to Dispose");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
72Debug.Fail("This object requires explicit call to Dispose");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2991Debug.Fail($"Expected operation with kind '{operationBlock.Kind}' to be the root operation with null 'Parent', but instead it has a non-null Parent with kind '{operationBlock.Parent.Kind}'");
InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Operations\ControlFlowGraphBuilder.cs (3)
6359Debug.Fail("This code path should not be reachable."); 6365Debug.Fail("This code path should not be reachable."); 7418Debug.Fail("All placeholders should be handled above. Have we introduced a new scenario where placeholders are used?");
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.Analyzers (16)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (3)
92Debug.Fail($"Unsupported diagnostic ID {diagnostic.Id}"); 337Debug.Fail($"Unexpected line {lineText}"); 363Debug.Fail($"Unexpected line {lineText}");
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
60Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
74Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ControlFlowConditionKindExtensions.cs (1)
22Debug.Fail($"Unsupported conditional kind: '{controlFlowConditionKind}'");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.cs (1)
41Debug.Fail("Expected non-null CFG");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeAbstractValueDomain.cs (1)
156Debug.Fail($"Unhandled dispose value kind merge: {value1.Kind} and {value2.Kind}");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.cs (1)
73Debug.Fail("Expected non-null CFG");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
206Debug.Fail("Expected non-null CFG");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (8)
187Debug.Fail("Unhandled ConstructorMapper"); 271Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 306Debug.Fail("Unhandled PropertyMapper"); 381Debug.Fail("Expected to have tracked assignment operations for a given location"); 408Debug.Fail("Expected to have tracked assignment operations with locations"); 431Debug.Fail("Expected to have tracked assignment operations with unknown PointsTo"); 440Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 722Debug.Fail("Can LValues FlowCaptureReferences have more than one operation?");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.cs (1)
56Debug.Fail("Expected non-null CFG");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (4)
142Debug.Fail("Can we have a tainted data parameter with no syntax references?"); 328Debug.Fail("Are the tainted data sources misconfigured?"); 367Debug.Fail("Are the tainted data sources misconfigured?"); 406Debug.Fail("Are the tainted data sanitizers misconfigured?");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (4)
200Debug.Fail($"SinkKind {sinkKind} entry missing from {typeof(T).Name} map"); 251Debug.Fail($"Unhandled SinkKind {sinkKind}"); 307Debug.Fail($"Unhandled SinkKind {sinkKind}"); 362Debug.Fail($"Unhandled SinkKind {sinkKind}");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
117Debug.Fail("Expected non-null 'namedTypeSymbol'");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDomain.cs (1)
59Debug.Fail("Non-monotonic merge");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
119Debug.Fail("TryCreateForSymbolDeclaration failed");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (2)
1302Debug.Fail($"Unexpected 'null' target type for '{operation.Syntax}'"); 1641Debug.Fail($"Unknown pattern kind '{isPatternOperation.Pattern.Kind}'");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
71Debug.Fail("Flow capture used as both an r-value and an l-value?");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\MapAbstractDomain.cs (1)
93Debug.Fail("Non-monotonic merge");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
41Debug.Fail("Declared symbol must never be null here");
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
81Debug.Fail("We should always be able to find the node from the diagnostic."); 88Debug.Fail("We should always be able to find the method symbol for the diagnostic.");
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
49Debug.Fail("Could not get analyzer");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Conversions.cs (1)
2935Debug.Fail("This method should have been eliminated in overload resolution!");
Compilation\CSharpCompilation.cs (1)
1702Debug.Fail($"Unsupported type argument: {typeArgument.ToDisplayString()}");
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
116Debug.Fail($"Did not find a snapshot for {node} `{node.Syntax}.`");
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
40Debug.Fail($"Override the visitor for {node.Kind}");
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
47Debug.Fail("We should have reported an error during binding if lock type info cannot be found.");
Operations\CSharpOperationFactory.cs (1)
2132Debug.Fail($"Unexpected syntax: {kind}");
Operations\CSharpOperationFactory_Methods.cs (1)
64Debug.Fail($"Unexpected syntax kind: {syntax.Kind()}");
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\Fixers\CSharpPreferIsKindFix.cs (1)
61Debug.Fail("Unreachable.");
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
236Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 242Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 399Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 419Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 428Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 439Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 471Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 480Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 499Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
789Debug.Fail("Unhandled pattern type");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
864Debug.Fail("Unexpected node type " + node.Kind());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
50Debug.Fail("The diagnostic can only be produced in context of a deconstruction-assignment, deconstruction-foreach or deconstruction-positionalpattern");
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (3)
71Debug.Fail("Could not find close brace in fixer"); 78Debug.Fail("Could not find previous close brace in fixer"); 85Debug.Fail("Could not match analyzer pattern");
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
73Debug.Fail("Couldn't find statement in fixer");
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
86Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 205Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
154Debug.Fail("Unexpected state?");
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
456Debug.Fail("Unhandled type: " + type.GetType().FullName);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
50Debug.Fail("The diagnostic can only be produced in context of a deconstruction-assignment, deconstruction-foreach or deconstruction-positionalpattern");
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (3)
71Debug.Fail("Could not find close brace in fixer"); 78Debug.Fail("Could not find previous close brace in fixer"); 85Debug.Fail("Could not match analyzer pattern");
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
73Debug.Fail("Couldn't find statement in fixer");
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
86Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 205Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
236Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 242Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 399Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 419Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 428Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 439Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 471Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 480Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 499Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
789Debug.Fail("Unhandled pattern type");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
864Debug.Fail("Unexpected node type " + node.Kind());
Microsoft.CodeAnalysis.EditorFeatures (8)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (3)
100Debug.Fail("The closing point was not found at the expected position."); 174Debug.Fail("Unable to clear braces"); 247Debug.Fail("Unable to clear closing brace");
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
143Debug.Fail("This should not be possible. Caller would have seen this item when calling TryUseCache");
Interactive\InteractiveDocumentNavigationService.cs (2)
35Debug.Fail("InteractiveDocumentNavigationService called with incorrect workspace!"); 41Debug.Fail("We are trying to navigate with a workspace that doesn't have a window!");
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
138Debug.Fail("Copilot Hover quota exceeded message was not correctly localized.");
Suggestions\SuggestedActionWithNestedActions.cs (1)
65Debug.Fail($"{nameof(InnerInvokeAsync)} should not be called on a {nameof(SuggestedActionWithNestedActions)}");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
MoveStaticMembers\TestMoveStaticMembersService.cs (2)
45System.Diagnostics.Debug.Fail("Expected Prechecked members did not match recieved members"); 47System.Diagnostics.Debug.Fail(errMsg);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrType.cs (2)
317Debug.Fail("Failed to resolve the type of the arguments for DebuggerVisualizer attribute."); 325Debug.Fail("Failed to retrieve the visualizer types from a [DebuggerVisualizer] attribute");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.Features (18)
Completion\CommonCompletionProvider.cs (2)
36Debug.Fail("For backwards API compat only, should not be called"); 58Debug.Fail("For backwards API compat only, should not be called");
Completion\CompletionService.cs (1)
75Debug.Fail("For backwards API compat only, should not be called");
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
186Debug.Fail("Expected non-null value for declaration.");
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
204Debug.Fail("We should always be able to get an anonymous type for any anonymous creation node.");
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
171Debug.Fail("How did we not get any labels?");
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
651Debug.Fail("We should always be able to get an tuple type for any tuple expression node."); 764Debug.Fail("We should always be able to get an tuple type for any tuple type syntax node.");
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (1)
17Debug.Fail("For backwards API compat only, should not be called");
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
989Debug.Fail("Should have found {0} in the resource string.");
QuickInfo\QuickInfoService.cs (1)
39Debug.Fail("For backwards API compat only, should not be called");
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
253Debug.Fail($"Parent node of {nameToken} is null."); 293Debug.Fail($"Parent node of {nameToken} is null.");
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
41Debug.Fail("Declared symbol must never be null here");
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
81Debug.Fail("We should always be able to find the node from the diagnostic."); 88Debug.Fail("We should always be able to find the method symbol for the diagnostic.");
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
49Debug.Fail("Could not get analyzer");
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (1)
484Debug.Fail("Unexpected error");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.PublicApiAnalyzers (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (3)
AnnotatePublicApiFix.cs (1)
241Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
DeclarePublicApiFix.cs (1)
392Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
NullableEnablePublicApiFix.cs (1)
154Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\TestUtils.cs (1)
80Debug.Fail($"Differences detected in solution checksum (ProjectId={projectConeId}):\r\n{result}");
Microsoft.CodeAnalysis.Remote.Workspaces (1)
SolutionAssetStorage.cs (1)
40Debug.Fail($"Request for solution-checksum '{solutionChecksum}' that was not pinned on the host side.");
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\TestExceptionUtilities.cs (1)
16System.Diagnostics.Debug.Fail(output);
Compilation\TestOperationVisitor.cs (1)
860Debug.Fail($"Language {operation.Language} is unknown!");
Microsoft.CodeAnalysis.Threading.Package (2)
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.Workspaces (13)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.UnderlyingNamedTypeVisitor.cs (1)
39Debug.Fail($"Symbol case not handled: {symbol.Kind}");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
54Debug.Fail("Sqlite failed to load: " + e);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CSharp (52)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (1)
28Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (1)
27Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (1)
28Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFacts.cs (1)
198Debug.Fail("Missing resources for the error " + code.ToString());
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (2)
93Debug.Fail("Shouldn't be here!"); 137Debug.Fail("Shouldn't be here!");
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (3)
61Debug.Fail("impossible sk"); 397Debug.Fail($"Bad symbol kind: {sym.getKind()}"); 544Debug.Fail("Bad type kind");
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (8)
207Debug.Fail("Invalid Predefined Method in VisitCALL"); 272Debug.Fail("How did we get a call that doesn't have a methodinfo?"); 409Debug.Fail("How did we get a prop that doesn't have a propinfo?"); 554Debug.Fail("Invalid Predefined Method in GenerateBinaryOperator"); 631Debug.Fail("Invalid Predefined Method in GenerateUserDefinedBinaryOperator"); 656Debug.Fail("Invalid Predefined Method in GenerateUnaryOperator"); 686Debug.Fail("Invalid Predefined Method in GenerateUserDefinedUnaryOperator"); 882Debug.Fail("Invalid Predefined Method in GetExpression");
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
578Debug.Fail("Unhandled kind"); 772Debug.Fail("Unexpected type returned from lookup"); 1039Debug.Fail("Unknown operator: " + p); 1202Debug.Fail("Unexpected type returned from lookup");
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
142Debug.Fail("Bad kind in CompareTypes");
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (2)
135Debug.Fail($"Bad type kind: {_typeDest.TypeKind}"); 208Debug.Fail("BindExplicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1191Debug.Fail("Unreachable");
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
150Debug.Fail($"Bad type symbol kind: {_typeSrc.TypeKind}"); 384Debug.Fail("bind(Im|Ex)plicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
227Debug.Fail("Shouldn't happen!"); 313Debug.Fail("Shouldn't happen!"); 1170Debug.Fail($"Bad op: {op}"); 1444Debug.Fail("Shouldn't happen!"); 1814Debug.Fail($"Bad kind: {ek}"); 2225Debug.Fail($"Bad ek: {ek}");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
166Debug.Fail("cannot find property for accessor");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs (2)
169Debug.Fail("GetAssemblyID called on bad sym kind"); 192Debug.Fail("InternalsVisibleTo called on bad sym kind");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
96Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\EXPR.cs (1)
47Debug.Fail("Invalid Expr in GetObject");
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (1)
320Debug.Fail("Unexpected type.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (1)
63Debug.Fail("Constant nullable?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs (1)
37Debug.Fail("Constant of pointer in dynamic code?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\Type.cs (1)
132Debug.Fail("Bad type for AsAggregateType");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
73Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (4)
271Debug.Fail("Unknown type kind"); 387Debug.Fail("Bad Symbol kind in SubstEqualTypesCore"); 483Debug.Fail("Bad Symbol kind in TypeContainsType"); 522Debug.Fail("Bad Symbol kind in TypeContainsTyVars");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (1)
33Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (2)
82Debug.Fail("Sub-optimal equality called. Check if this is correct."); 91Debug.Fail("If using this as a key, implement IEquatable<SymWithType>");
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
41Debug.Fail("Sub-optimal overload called. Check if this can be avoided."); 651Debug.Fail("Should be unreachable");
Microsoft.Data.Analysis (4)
TextFieldParser.cs (4)
439Debug.Fail("The TextFieldType is not supported"); 1011Debug.Fail("Delimiter element is empty. This should have been caught on input"); 1036Debug.Fail("Unknown TextFieldType"); 1119Debug.Fail("Unknown TextFieldType");
Microsoft.Data.Analysis.Tests (4)
src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
439Debug.Fail("The TextFieldType is not supported"); 1011Debug.Fail("Delimiter element is empty. This should have been caught on input"); 1036Debug.Fail("Unknown TextFieldType"); 1119Debug.Fail("Unknown TextFieldType");
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyChatClient.cs (2)
159Debug.Fail(ErrorMessage); 167Debug.Fail(ErrorMessage);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (1)
174Debug.Fail("_descriptorLookup didn't contain requested serviceDescriptor");
ServiceLookup\DynamicServiceProviderEngine.cs (1)
44Debug.Fail($"We should never get exceptions from the background compilation.{Environment.NewLine}{ex}");
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceDescriptor.cs (1)
348Debug.Fail("ImplementationType, ImplementationInstance, ImplementationFactory or KeyedImplementationFactory must be non null");
Microsoft.Extensions.Diagnostics (1)
Metrics\ListenerSubscription.cs (1)
55Debug.Fail("InstrumentPublished called for an instrument we're already listening to.");
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
184Debug.Fail("Unexpected number of arguments in attribute constructor.");
Microsoft.Extensions.ObjectPool (1)
LeakTrackingObjectPool.cs (1)
78Debug.Fail($"{typeof(T).Name} was leaked. Created at: {Environment.NewLine}{_stack}");
Microsoft.Extensions.Primitives (1)
ThrowHelper.cs (1)
72Debug.Fail($"Unexpected resource {resource}");
Microsoft.Maui (1)
VisualDiagnostics\RectangleAdorner.cs (1)
36 Debug.Fail($"Invalid density {density}");
Microsoft.ML.Core (1)
Utilities\Contracts.cs (1)
785Debug.Fail(msg);
Microsoft.ML.CpuMath (1)
src\Microsoft.ML.Core\Utilities\Contracts.cs (1)
785Debug.Fail(msg);
Microsoft.ML.DataView (2)
Contracts.cs (1)
26Debug.Fail("Format string arg mismatch: " + ex.Message);
KeyDataViewType.cs (1)
114Debug.Fail("Invalid type");
Microsoft.VisualBasic.Core (8)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (2)
2439Debug.Fail("shouldn't reach here") 2482Debug.Fail("Expected intrinsic type only, not: " & TargetType.Name)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (4)
364Debug.Fail("The TextFieldType is not supported") 1197Debug.Fail("Delimiter element is empty. This should have been caught on input") 1229Debug.Fail("Unknown TextFieldType") 1316Debug.Fail("Unknown TextFieldType")
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (2)
119Debug.Fail("Node shouldn't be nothing") 157Debug.Fail("Unexpected adjustment type in enumerator")
Microsoft.VisualStudio.LanguageServices (23)
Interop\WeakComHandle.cs (1)
161Debug.Fail("Can this really happen?");
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
194Debug.Fail("GetPrimaryView failed in IVsCodeWindowManager.AddAdornments");
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (2)
223Debug.Fail("Unsupported member kind: " + symbol.Kind.ToString()); 254Debug.Fail("MemberOf string resource is incorrect.");
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (3)
301Debug.Fail("Unknown category: " + category.ToString()); 342Debug.Fail("Symbol description should always contain LLT_PACKAGE node as first node"); 397Debug.Fail("Symbol description cannot contain more than one LLT_MEMBERS node.");
Library\ObjectBrowser\Helpers.cs (2)
37Debug.Fail("Unsupported list type: " + ((_LIB_LISTTYPE)listType).ToString()); 62Debug.Fail("Unsupported object list kind: " + kind.ToString());
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
52Debug.Fail("Unsupported symbol for member: " + symbol.Kind.ToString());
Library\ObjectBrowser\ObjectList.cs (3)
223Debug.Fail("Unexpected type kind: " + typeListItem.Kind.ToString()); 303Debug.Fail("Unexpected member kind: " + memberListItem.Kind.ToString()); 783Debug.Fail("Unsupported object list kind: " + Kind.ToString());
ProjectSystem\FileChangeWatcher.cs (5)
439Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 445Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 451Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 471Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.FilesChanged, this should not be called."); 516Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called.");
ProjectSystem\Legacy\AbstractLegacyProject_IVsHierarchyEvents.cs (1)
22Debug.Fail("Failed to connect IVsHierarchyEvents");
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1295Debug.Fail("Attempting to change the name of a file in a Shared Project");
TaskList\ProjectExternalErrorReporter.cs (1)
125Debug.Fail("This is not implemented, because no one called it.");
Workspace\VisualStudioDocumentNavigationService.cs (2)
383Debug.Fail("Could not get IVsTextBuffer for document!"); 390Debug.Fail("Could not get IVsTextManager service!");
Microsoft.VisualStudio.LanguageServices.CSharp (14)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
770Debug.Fail("Unknown kind: " + oldName.Kind()); 824Debug.Fail("Unknown kind: " + oldType.Kind());
CodeModel\CSharpCodeModelService.cs (5)
130Debug.Fail("Unsupported element kind: " + node.Kind()); 852Debug.Fail("Invalid node kind: " + node.Kind()); 921Debug.Fail("Invalid node kind: " + node.Kind()); 3008Debug.Fail("Invalid symbol kind: " + targetSymbolKind); 3056Debug.Fail("Could not find type: " + fullName);
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
79Debug.Fail("Unsupported node kind: " + node.Kind()); 130Debug.Fail("Unsupported node kind: " + node.Kind());
CodeModel\CSharpCodeModelService_Prototype.cs (2)
47Debug.Fail("Invalid symbol kind: " + symbol.Kind); 69Debug.Fail(string.Format("Invalid node/symbol kind: {0}/{1}", node.Kind(), symbol.Kind));
LanguageService\CSharpHelpContextService.cs (2)
209Debug.Fail("We should have handled that in the preprocessor directive."); 303Debug.Fail("Falling back to F1 keyword for assignment token.");
ObjectBrowser\DescriptionBuilder.cs (1)
85Debug.Fail("Invalid type kind encountered: " + typeSymbol.TypeKind.ToString());
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
192Debug.Fail($"Unhandled {nameof(XamlCompletionKind)}: {Enum.GetName(typeof(XamlCompletionKind), kind)}");
PresentationBuildTasks (10)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordHelper.cs (1)
130Debug.Fail("Unhandled case in DoesRecordTypeHaveDebugExtension");
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (3)
687Debug.Fail("Assembly, Type and Attribute records are not cached, so don't ask for one."); 712Debug.Fail("Unknown RecordType"); 864Debug.Fail("Must override RecordType");
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
523Debug.Fail("Unknown Xaml Token.");
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
5311Debug.Fail("XmlReader doesn't support LineNumber"); 5342Debug.Fail("XmlReader doesn't support LinePosition"); 6347Debug.Fail($"State machine checking for TypeConverter syntax has encountered an unexpected XamlNode type {tokenType}");
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
3150Debug.Fail("Should initialize cache prior to compiling"); 3421Debug.Fail("Should initialize cache prior to compiling");
PresentationCore (64)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
941Debug.Fail("Missing case statement!");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
282System.Diagnostics.Debug.Fail("Corrupt Matrix in the ExtendedPropertyCollection!");
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
291System.Diagnostics.Debug.Fail("ExtendedProperties for points are not supported");
MS\Internal\Ink\StrokeNode.cs (3)
259Debug.Fail("StrokeNodeOperations.GetPointsAtStartOfSegment failed to find the D position"); 372Debug.Fail("StrokeNodeOperations.GetPointsAtEndOfSegment failed to find the B position"); 639Debug.Fail("Couldn't find all 4 indexes in StrokeNodeOperations.GetPointsAtMiddleSegment");
MS\Internal\Media\VisualTreeUtils.cs (3)
172Debug.Fail("How did a ray hit a Visual3D not parented to a Viewport3DVisual?"); 177Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 281Debug.Fail(String.Format(
MS\Internal\Shaping\OpenTypeCommon.cs (4)
594Debug.Fail("Unknown OpenType layout table!"); 1075Debug.Fail("Ext.Lookup processed earlier!"); 1160Debug.Fail("Ext.Lookup processed earlier!"); 1173Debug.Fail("Unknown OpenType layout table!");
MS\Internal\Shaping\TypefaceMap.cs (1)
217Debug.Fail("Invalid font face spans");
MS\Internal\Shaping\UshortList2.cs (4)
134Debug.Fail("Not supported"); 140Debug.Fail("Not supported"); 146Debug.Fail("Not supported"); 151Debug.Fail("Not supported");
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
23Debug.Fail("Assertion failed");
MS\Internal\TextFormatting\LineServicesCallbacks.cs (3)
1237Debug.Fail("Not supported TextDecorationUnit"); 1264Debug.Fail("Not supported TextDecorationUnit"); 2315Debug.Fail("Unsupported installed object!");
MS\Internal\TextFormatting\TextMarkerSource.cs (1)
127Debug.Fail("Invalid marker style");
System\IO\Packaging\PackWebResponse.cs (1)
611Debug.Fail("Cannot return full-container stream from cached container object");
System\Windows\DragEventArgs.cs (3)
44Debug.Fail("Invalid dragDropKeyStates"); 49Debug.Fail("Invalid allowedEffects"); 54Debug.Fail("Invalid target");
System\Windows\GiveFeedbackEventArgs.cs (1)
40Debug.Fail("Invalid effects");
System\Windows\Ink\IncrementalHitTester.cs (2)
204Debug.Fail("Benign assert. IncrementalHitTester's _strokeInfos cache is out of sync, rebuilding."); 212Debug.Fail("Benign assert. IncrementalHitTester's _strokeInfos cache is out of sync, rebuilding.");
System\Windows\Input\InputMethod.cs (1)
714Debug.Fail("Unknown Speech Mode");
System\Windows\Input\InputMethodStateTypeInfo.cs (1)
91Debug.Fail("The guid does not match.");
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
767Debug.Fail("Unknown Flick Action encountered");
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (1)
143Debug.Fail("Retry limit reached when acquiring PenThread");
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (2)
267Debug.Fail("Error acquiring PenThread in UpdateTabletsImpl()"); 415Debug.Fail("Error acquiring PenThread in HandleTabletAdded()");
System\Windows\Media\Animation\Generated\ByteAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\ColorAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int16Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int32Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int64Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\PointAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\RectAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SingleAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SizeAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\RepeatBehavior.cs (3)
185Debug.Fail("Unhandled RepeatBehaviorType"); 230Debug.Fail("Unhandled RepeatBehaviorType"); 296Debug.Fail("Unhandled RepeatBehaviorType.");
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
142Debug.Fail("Unknown type of RepeatBehavior passed to RepeatBehaviorConverter.");
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
426Debug.Fail("Parameterless constructor is illegal for ClockCollection.");
System\Windows\Media\Animation\TimeManager.cs (1)
575Debug.Fail("Unrecognized TimeState enumeration value");
System\Windows\Media\Visual.cs (1)
156Debug.Fail("TYPE_VISUAL or TYPE_VIEWPORT3DVISUAL expected.");
System\Windows\Media3D\MeshGeometry3D.cs (2)
574Debug.Fail("Cached bounds are invalid. Caller needs to check for IsEmpty and call UpdateCachedBounds."); 578Debug.Fail("Cached bounds are invalid. We missed a call to SetCachedBoundsDirty.");
System\Windows\Media3D\Viewport3DVisual.cs (1)
625Debug.Fail("Cached bbox subgraph is incorrect!");
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
25Debug.Fail(ex.Message);
System\Windows\QueryContinueDragEventArgs.cs (1)
33Debug.Fail("Invalid dragDropKeyStates");
PresentationFramework (115)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
512Debug.Fail("Mismatched segment data");
MS\Internal\AppModel\JournalNavigationScope.cs (2)
302Debug.Fail("Tried to navigate to a null JournalEntry."); 307Debug.Fail("Tried to navigate to a non-navigable journal entry.");
MS\Internal\Controls\ActiveXSite.cs (2)
213Debug.Fail(t.ToString()); 356Debug.Fail(t.ToString());
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
721Debug.Fail("The annotation data does match with the current content control in StickyNote");
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
636Debug.Fail("Failed to find item in expected subgroup after Move");
MS\Internal\Data\CompositeCollectionView.cs (2)
1652Debug.Fail("CurrentItem is not consistent with CurrentPosition"); 1657Debug.Fail("CurrentItem is not consistent with CurrentPosition");
MS\Internal\Data\DataExtensionMethods.cs (1)
33Debug.Fail("Unsupported list passed to Search");
MS\Internal\Data\IndexedEnumerable.cs (1)
393Debug.Fail("EnsureCacheCurrent: _enumerator.Current failed with InvalidOperationException");
MS\Internal\Data\StaticPropertyChangedEventManager.cs (2)
83Debug.Fail("Should never get here"); 91Debug.Fail("Should never get here");
MS\Internal\DataStreams.cs (2)
131Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 260Debug.Fail($"Unexpected exception reading binary formatted data. {ex.Message}");
MS\Internal\Documents\HostedElements.cs (1)
185Debug.Fail("Invalid state in HostedElements.cs");
MS\Internal\Documents\RowCache.cs (1)
1062Debug.Fail("Requested to update a non-existent row.");
MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
341Debug.Fail("Garbage in logical tree.");
MS\Internal\Globalization\LocalizableResourceBuilder.cs (1)
515Debug.Fail("Can't process localizability attribute on nodes other than Element, Property and LiteralContent.");
MS\Internal\Ink\EditingCoordinator.cs (2)
1178Debug.Fail("Unknown behavior"); 1215Debug.Fail("Unknown behavior");
MS\Internal\Ink\EraserBehavior.cs (1)
140Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\Ink\InkCanvasSelection.cs (2)
480Debug.Fail("The updatedElement has to be the same type as the originalElement."); 600Debug.Fail("An unexpected single selected Element");
MS\Internal\Ink\InkCollectionBehavior.cs (1)
162Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
96Debug.Fail("Cannot switch from Select to Select in mid-stroke"); 109Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\PtsHost\ErrorHandler.cs (2)
26System.Diagnostics.Debug.Fail(message); 40System.Diagnostics.Debug.Fail(message);
MS\Internal\PtsHost\FigureParagraph.cs (1)
305Debug.Fail("Tight wrap is not currently supported.");
MS\Internal\PtsHost\FloaterBaseParagraph.cs (1)
112Debug.Fail("Tight wrap is not currently supported.");
MS\Internal\PtsHost\FloaterParagraph.cs (1)
812Debug.Fail("Unknown type of anchor.");
MS\Internal\PtsHost\Pts.cs (1)
208Debug.Fail("Unknown WrapDirection value.");
MS\Internal\PtsHost\PtsHost.cs (19)
569Debug.Fail("PTS.GetSegmentDefinedColumnSpanAreaInfo is not implemented."); 581Debug.Fail("PTS.GetHeightDefinedColumnSpanAreaInfo is not implemented."); 869Debug.Fail("PTS.GetNumberEndnoteColumns is not implemented."); 881Debug.Fail("PTS.GetEndnoteColumnInfo is not implemented."); 892Debug.Fail("PTS.GetFootnoteSeparators is not implemented."); 901Debug.Fail("PTS.FFootnoteBeneathText is not implemented."); 910Debug.Fail("PTS.GetNumberFootnoteColumns is not implemented."); 922Debug.Fail("PTS.GetFootnoteColumnInfo is not implemented."); 931Debug.Fail("PTS.GetFootnoteSegment is not implemented."); 945Debug.Fail("PTS.GetFootnotePresentationAndRejectionOrder is not implemented."); 954Debug.Fail("PTS.FAllowFootnoteSeparation is not implemented."); 1252Debug.Fail("PTS.GetFootnotes is not implemented."); 1271Debug.Fail("PTS.FormatDropCap is not implemented."); 1289Debug.Fail("PTS.GetDropCapPolygons is not implemented."); 1297Debug.Fail("PTS.DestroyDropCap is not implemented."); 1705Debug.Fail("PTS.SnapGridVertical is not implemented."); 1806Debug.Fail("PTS.UpdGetDropCapChange is not implemented."); 1907Debug.Fail("PTS.GetOptimalLineDcpCache is not implemented."); 2933Debug.Fail("PTS.ObjGetFootnoteInfo is not implemented.");
MS\Internal\PtsHost\TableParaClient.cs (1)
1972Debug.Fail("Unsupported unit type");
MS\Internal\PtsHost\TextParaClient.cs (10)
131Debug.Fail("Should not get here. ParaCache is not currently used."); 229Debug.Fail("Should not get here. ParaCache is not currently used."); 318Debug.Fail("Should not get here. ParaCache is not currently used."); 371Debug.Fail("Should not get here. ParaCache is not currently used."); 713Debug.Fail("Should not get here. ParaCache is not currently used."); 794Debug.Fail("Should not get here. ParaCache is not currently used."); 857Debug.Fail("Should not get here. ParaCache is not currently used."); 907Debug.Fail("Should not get here. ParaCache is not currently used."); 1064Debug.Fail("Should not get here. ParaCache is not currently used."); 1366Debug.Fail("Should not get here. ParaCache is not currently used.");
MS\Internal\SystemDataHelper.cs (1)
83Debug.Fail("Could not find Null field or property for SqlNullable type");
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
613Debug.Fail("it must not add already present Item");
System\Windows\Controls\DataGrid.cs (1)
5322Debug.Fail("Unknown SelectionUnit encountered.");
System\Windows\Controls\DataGridCellsPanel.cs (1)
775Debug.Fail("We should have found a child");
System\Windows\Controls\Frame.cs (1)
441Debug.Fail("UsesOwnJournal->Automatic transition should be blocked by CoerceJournalOwnership().");
System\Windows\Controls\GridViewColumn.cs (1)
424Debug.Fail("Invalid value for ActualWidth.");
System\Windows\Controls\GridViewColumnHeader.cs (1)
289Debug.Fail("Method ShouldSerializeProperty is called on an internally generated GridViewColumnHeader.");
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
934Debug.Fail("Head is container for itself, but parent is neither GridViewHeaderRowPresenter nor null.");
System\Windows\Controls\ItemContainerGenerator.cs (3)
279Debug.Fail("Unexpected reentrant call to ICG.Remove"); 2444Debug.Fail("unexpected reentrant call to OnItemAdded"); 2634Debug.Fail("unexpected reentrant call to OnItemMoved");
System\Windows\Controls\PasswordTextNavigator.cs (2)
469Debug.Fail("Bad distance!"); 508Debug.Fail("No scoping element!");
System\Windows\Controls\Primitives\Thumb.cs (1)
243Debug.Fail("Got MouseLeftButtonDown event while dragging!");
System\Windows\Controls\VirtualizingStackPanel.cs (3)
6460Debug.Fail("SetInset should only be called for a container"); 6564Debug.Fail($"Unexpected container type: {((container == null) ? "null" : container.GetType().Name)}"); 9256Debug.Fail("We should have found a child");
System\Windows\Data\BindingGroup.cs (1)
1324Debug.Fail("Unexpected change event");
System\Windows\Data\ListCollectionView.cs (1)
1685Debug.Fail("Cannot update collection view from outside UIContext without index in event args");
System\Windows\Data\MultiBinding.cs (2)
109Debug.Fail("Unexpected BindingMode value"); 132Debug.Fail("Unexpected UpdateSourceTrigger value");
System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
51Debug.Fail("This method is not implemented and not expected to be called.");
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
434Debug.Fail("should never be here");
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1082Debug.Fail("invalid TextPointerContext");
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
192Debug.Fail("It should not be called");
System\Windows\Documents\NullTextContainer.cs (1)
251Debug.Fail("Unexpected call to NullTextContainer.set_TextView!");
System\Windows\Documents\NullTextNavigator.cs (3)
268Debug.Fail("No scoping element!"); 276Debug.Fail("NullTextPointer does not expect layout dependent method calls!"); 285Debug.Fail("NullTextPointer does not expect layout dependent method calls!");
System\Windows\FrameworkTemplate.cs (2)
825Debug.Fail("We do not have support for DynamicResource within unshared template content"); 1047Debug.Fail("Unknown enum value");
System\Windows\Interop\ActiveXHost.cs (4)
425Debug.Fail("bad state"); 457Debug.Fail("how did we ever get into the open state?"); 481Debug.Fail("bad state"); 985Debug.Fail(e.ToString());
System\Windows\Markup\BamlRecordHelper.cs (1)
130Debug.Fail("Unhandled case in DoesRecordTypeHaveDebugExtension");
System\Windows\Markup\BamlRecordReader.cs (1)
4980Debug.Fail("The only remaining option is attached property, which is not allowed in xaml for content properties");
System\Windows\Markup\BamlRecords.cs (3)
687Debug.Fail("Assembly, Type and Attribute records are not cached, so don't ask for one."); 712Debug.Fail("Unknown RecordType"); 864Debug.Fail("Must override RecordType");
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
302Debug.Fail("No items where found and IsComposite return true");
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
194Debug.Fail("Unexpected property value type");
System\Windows\Markup\XamlStream.cs (2)
783Debug.Fail("Close called on ReaderStream"); 791Debug.Fail("Flush called on ReaderStream");
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Navigation\NavigationService.cs (2)
3840Debug.Fail("Could not find the finishing PageFunction in the journal."); 3897Debug.Fail($"Unhandled scenario: PageFunction returning to {parentEntry.GetType().Name}");
System\Windows\ResourceDictionary.cs (1)
1347Debug.Fail("StaticResources[] entry is not a StaticResource not OptimizedStaticResource");
System\Windows\StyleHelper.cs (1)
5800Debug.Fail("GetHashCode for value types will use reflection to generate the hashcode. Write a better hash code generation algorithm if this struct is to be used in a hashtable, or remove this assert if it's decided that reflection is OK.");
System\Windows\TemplateNameScope.cs (1)
198Debug.Fail("Should never be trying to unregister via this interface for templates");
System\Windows\Window.cs (2)
4052Debug.Fail("Invalid value for ResizeMode"); 5966Debug.Fail($"specifiedRestoreBounds can't be {specifiedRestoreBounds}");
ReachFramework (22)
AlphaFlattener\BrushProxy.cs (10)
675Debug.Fail("IsOpaque(" + _brush.GetType() + ") not handled"); 771Debug.Fail("IsTransparent not handled " + _brush.GetType()); 1075Debug.Fail("Unexpected brush type"); 1933Debug.Fail("Unhandled GradientBrush type"); 2885Debug.Fail("Unhandled GradientBrush type"); 2910Debug.Fail("Unandled Brush type"); 3199Debug.Fail("Unhandled ImageBrush.ImageSource type"); 3341Debug.Fail("Brush type not expected"); 3494Debug.Fail("Unexpected brush type"); 3614Debug.Fail("Single brush expected");
AlphaFlattener\DrawingContext.cs (2)
682Debug.Fail("Opacity invalid at BrushProxyDecomposer"); 687Debug.Fail("Opacity invalid at BrushProxyDecomposer");
AlphaFlattener\Flattener.cs (1)
1171Debug.Fail("Wrong Primitive type");
AlphaFlattener\Primitive.cs (5)
1856Debug.Fail("Image over Brush?"); 2027Debug.Fail("GetShapeGeometry on Canvas"); 2033Debug.Fail("Exclude on Canvas"); 2038Debug.Fail("BlendBrush on Canvas"); 2045Debug.Fail("BlendOverImage on Canvas");
AlphaFlattener\Utility.cs (2)
960Debug.Fail("Unsupported PathSegment"); 1597Debug.Fail("Unhandled TileBrush type");
PrintConfig\PrintSchemaShim.cs (1)
658Debug.Fail("PrintTicketScope enum is out of range");
Serialization\VisualSerializer.cs (1)
820Debug.Fail("Brush not supported");
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Roslyn.Diagnostics.Analyzers (11)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Roslyn.Diagnostics.CSharp.Analyzers (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
236Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 242Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 399Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 419Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 428Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 439Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 471Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 480Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 499Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
789Debug.Fail("Unhandled pattern type");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
864Debug.Fail("Unexpected node type " + node.Kind());
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1724Debug.Fail($"{nameof(rotation)}: {rotation} is not a defined {nameof(TreeRotation)} value.");
System.ComponentModel.TypeConverter (30)
System\ComponentModel\MaskedTextProvider.cs (1)
2324Debug.Fail("Invalid mask language character.");
System\ComponentModel\ReflectEventDescriptor.cs (1)
368Debug.Fail($"Missing event accessors for {_componentClass.FullName}. {Name}");
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
107Debug.Fail($"Property '{name}' on component {componentClass?.FullName} failed to init."); 108Debug.Fail(t.ToString());
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
825Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 831Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1036Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1189Debug.Fail("Hey, assumption holds true. Rip this assert.");
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
376Debug.Fail($"Editor {editor.GetType().FullName} is not an instance of {editorBaseType.FullName} but it is in that base types table.");
System\ComponentModel\TypeDescriptor.cs (20)
691Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 717Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 908Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 930Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 946Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 968Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 1106Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1133Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1192Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1343Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1370Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1449Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1939Debug.Fail("unknown pipeline type"); 2066Debug.Fail("unknown pipeline type"); 2137Debug.Fail("unknown pipeline type"); 2278Debug.Fail("unknown pipeline type"); 2318Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2405Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2471Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2533Debug.Fail("COMPAT: Returning, but you should not pass null here");
System\Timers\TimersDescriptionAttribute.cs (1)
36Debug.Fail($"Unexpected resource {id}");
System.Configuration.ConfigurationManager (11)
System\Configuration\BaseConfigurationRecord.cs (1)
3796Debug.Fail("It's not possible for two location input to come from the same config file and point to the same target");
System\Configuration\ClientConfigurationHost.cs (3)
231Debug.Fail("unexpected config name: " + configName); 251Debug.Fail("unexpected config name: " + configName); 418Debug.Fail("unrecognized configPath " + configPath);
System\Configuration\ClientSettingsStore.cs (1)
246Debug.Fail("Did not expect to get called here");
System\Configuration\ConfigurationElement.cs (1)
1741Debug.Fail("Unknown exception type thrown");
System\Configuration\ConfigurationValidatorAttribute.cs (1)
43Debug.Fail("Declaring type must not be null.");
System\Configuration\OverrideModeSetting.cs (2)
249Debug.Fail("Missing xml keyword for OverrideMode enum value"); 299Debug.Fail("Unrecognized OverrideMode");
System\Configuration\SectionInformation.cs (1)
210Debug.Fail("Unexpected value for OverrideMode");
System\Configuration\SettingsPropertyValue.cs (1)
274Debug.Fail("Should not have gotten here with Binary formatting");
System.Data.Common (62)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
534Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 540Debug.Fail("ParseInternal code threw exception vs regex mismatch");
System\Data\Common\AdapterUtil.Common.cs (17)
73Debug.Fail("valid AcceptRejectRule " + value.ToString()); 88Debug.Fail("valid CatalogLocation " + value.ToString()); 103Debug.Fail("valid ConflictOption " + value.ToString()); 121Debug.Fail("valid DataRowState " + value.ToString()); 136Debug.Fail("valid KeyRestrictionBehavior " + value.ToString()); 152Debug.Fail("valid LoadOption " + value.ToString()); 168Debug.Fail("valid MissingMappingAction " + value.ToString()); 185Debug.Fail("valid MissingSchemaAction " + value.ToString()); 201Debug.Fail("valid Rule " + value.ToString()); 216Debug.Fail("valid SchemaType " + value.ToString()); 234Debug.Fail("valid StatementType " + value.ToString()); 251Debug.Fail("valid UpdateStatus " + value.ToString()); 460Debug.Fail("shouldn't be here"); 495Debug.Fail("shouldn't be here"); 498Debug.Fail("isRowUpdatingCommand should have been true"); 592Debug.Fail("should be here"); 628Debug.Fail("isRowUpdatingCommand should have been true");
System\Data\Common\DataStorage.cs (2)
239Debug.Fail("not a String or SqlString column"); 357Debug.Fail("shouldn't be here");
System\Data\Common\DBCommandBuilder.cs (3)
608Debug.Fail("Rowcount expected to be 1"); 1552Debug.Fail("how did we get here?"); 1617Debug.Fail("how did we get here?");
System\Data\Common\DbDataAdapter.cs (2)
1038Debug.Fail("InvalidDataRowState"); 1560Debug.Fail("unexpected StatementType");
System\Data\DataKey.cs (2)
147Debug.Fail("don't put DataKey into a Hashtable"); 153Debug.Fail("need to directly call Equals(DataKey)");
System\Data\DataSetUtil.cs (2)
63Debug.Fail("valid DataRowState " + value.ToString()); 78Debug.Fail("valid LoadOption " + value.ToString());
System\Data\DataTable.cs (1)
5165Debug.Fail("LoadOption.Upsert with deleted row, should not be here");
System\Data\DataView.cs (4)
1316Debug.Fail("ItemAdded DataRow already in view"); 1333Debug.Fail("ItemDeleted DataRow not in view tracking"); 1338Debug.Fail("ItemDeleted DataRow not in view"); 1351Debug.Fail("unexpected");
System\Data\Filter\BinaryNode.cs (2)
1265Debug.Fail("Invalid (unmapped) precedence " + code.ToString()); 1589Debug.Fail("Unexpected LIKE kind");
System\Data\Filter\ConstNode.cs (1)
62Debug.Fail("NYI");
System\Data\Filter\ExpressionParser.cs (2)
308Debug.Fail("unhandled token"); 763Debug.Fail("Unhandled operator type");
System\Data\Filter\FilterException.cs (1)
97Debug.Fail(err);
System\Data\Filter\UnaryNode.cs (1)
118Debug.Fail("Missing a type conversion");
System\Data\ForeignKeyConstraint.cs (3)
352Debug.Fail("Unknown Rule value"); 490Debug.Fail("Unknown Rule value"); 554Debug.Fail("attempt to cascade unknown action: " + action.ToString());
System\Data\ProviderBase\SchemaMapping.cs (1)
420Debug.Fail("unexpected LoadOption");
System\Data\SQLTypes\SQLString.cs (1)
442Debug.Fail("Invalid ecExpectedResult");
System\Data\TypeLimiter.cs (1)
213Debug.Fail("Scope was popped out of order.");
System\Xml\RegionIterator.cs (1)
130Debug.Fail("Reading the initial text value for sub-regions.");
System\Xml\XmlDataDocument.cs (12)
86Debug.Fail("Pointer not present"); 1095Debug.Fail("Found entity reference"); 1268Debug.Fail("We should not get rows in this state"); 1271Debug.Fail("Unknown row state"); 2088Debug.Fail("This should have been handled above, irrespective of ignoreDataSetEvents value (true or false)"); 2435Debug.Fail("We should not get any exceptions because we always handle data-type conversion"); 2448Debug.Fail("We should not get any exceptions because DataSet.EnforceConstraints should be always off"); 2764Debug.Fail("We should not get any exceptions here"); 2792Debug.Fail("We should not get any exceptions here"); 2798Debug.Fail("Handle your case above"); 2825Debug.Fail("We should not get any exceptions here"); 2848Debug.Fail("Handle your case above");
System\Xml\XPathNodePointer.cs (1)
1222Debug.Fail("Logically, we shouldn't reach here.");
System.Data.Odbc (42)
Common\System\Data\Common\AdapterUtil.Odbc.cs (6)
96Debug.Fail("valid CommandType " + value.ToString()); 113Debug.Fail("valid DataRowVersion " + value.ToString()); 133Debug.Fail("valid IsolationLevel " + value.ToString()); 148Debug.Fail("valid KeyRestrictionBehavior " + value.ToString()); 165Debug.Fail("valid ParameterDirection " + value.ToString()); 182Debug.Fail("valid UpdateRowSource " + value.ToString());
Common\System\Data\Common\DBConnectionString.cs (5)
176Debug.Fail("empty restriction"); 318Debug.Fail($"Unknown behavior for combined set: {combinedSet._behavior}"); 339Debug.Fail($"Unknown behavior for combined set: {combinedSet._behavior}"); 344Debug.Fail($"Unknown behavior for component set: {componentSet._behavior}"); 387Debug.Fail("invalid KeyRestrictionBehavior");
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
534Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 540Debug.Fail("ParseInternal code threw exception vs regex mismatch");
System\Data\Odbc\Odbc32.cs (5)
45Debug.Fail("valid CommandType " + value.ToString()); 50Debug.Fail("invalid CommandType " + value.ToString()); 67Debug.Fail("valid IsolationLevel " + value.ToString()); 72Debug.Fail("invalid IsolationLevel " + value.ToString()); 155Debug.Fail("Unknown enumerator passed to RetcodeToString method");
System\Data\Odbc\OdbcCommand.cs (1)
795Debug.Fail("ExecuteReaderObjectcalled with unsupported ODBC API method.");
System\Data\Odbc\OdbcCommandBuilder.cs (1)
229Debug.Fail("Unexpected Parametertype while DeriveParameters");
System\Data\Odbc\OdbcConnection.cs (7)
724Debug.Fail("Can't flag unknown Attribute"); 743Debug.Fail("Can't flag unknown Attribute"); 760Debug.Fail("Can't flag unknown Attribute"); 769Debug.Fail("Can't flag unknown Attribute"); 788Debug.Fail("GetFunctions called and ConnectionHandle is null (connection is disposed?)"); 839Debug.Fail("Testing that sqltype is currently not supported"); 876Debug.Fail("Testing that sqltype is currently not supported");
System\Data\Odbc\OdbcConnectionHelper.cs (1)
238Debug.Fail("unexpected state switch");
System\Data\Odbc\OdbcConnectionStringbuilder.cs (3)
80Debug.Fail("unexpected keyword"); 204Debug.Fail("unexpected keyword"); 239Debug.Fail("unexpected keyword");
System\Data\Odbc\OdbcDataReader.cs (2)
75Debug.Fail("object is disposed"); 1645Debug.Fail("Non-V3 driver. Must not call GetDescFieldStr");
System\Data\Odbc\OdbcHandle.cs (1)
43Debug.Fail("unexpected handleType");
System\Data\Odbc\OdbcParameter.cs (3)
399else { Debug.Fail("not expecting this"); } 504else { Debug.Fail("not expecting this"); } 1108Debug.Fail("Unexpected Direction Property on Parameter");
System\Data\Odbc\OdbcReferenceCollection.cs (3)
32Debug.Fail("shouldn't be here"); 42Debug.Fail("shouldn't be here"); 46Debug.Fail("shouldn't be here");
System\Data\Odbc\OdbcUtils.cs (2)
143Debug.Fail("UnknownSQLCType"); 315Debug.Fail("UnknownSQLCType");
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregatorStore.cs (1)
293Debug.Fail("Unexpected sequence type");
System\Diagnostics\Metrics\ObservableInstrument.cs (1)
89Debug.Fail("Execution shouldn't reach this point");
System.Diagnostics.Process (10)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (6)
83Debug.Fail($"Failed to read \"{path}/memory.stat\": {e}"); 197Debug.Fail($"Failed to read \"{path}\": {e}"); 344Debug.Fail($"Unexpected cgroup version \"{cgroupVersion}\""); 357Debug.Fail($"Failed to read or parse \"{mountInfoFilePath}\": {e}"); 429Debug.Fail($"Unexpected cgroup version: \"{cgroupVersion}\""); 436Debug.Fail($"Failed to read or parse \"{procCGroupFilePath}\": {e}");
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
System\Diagnostics\ProcessManager.Linux.cs (1)
210Debug.Fail($"Unexpected status character: {c}");
System\Diagnostics\ProcessWaitState.Unix.cs (1)
377Debug.Fail("Unexpected errno value from kill");
System.Formats.Asn1 (23)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
269Debug.Fail("Fallback should have thrown"); 299Debug.Fail("Fallback should have thrown"); 338Debug.Fail("Fallback should have thrown"); 369Debug.Fail("Fallback should have thrown"); 385Debug.Fail("Fallback should have thrown");
System\Formats\Asn1\AsnDecoder.BitString.cs (2)
328Debug.Fail("TryCopyConstructedBitStringValue failed with a pre-allocated buffer"); 548Debug.Fail("Non-overlapping data encountered...");
System\Formats\Asn1\AsnDecoder.cs (3)
315Debug.Fail($"No handler is present for status {status}."); 544Debug.Fail($"No handler for validity {validity}."); 688Debug.Fail("AsnReader asked for a matching slice from a non-overlapping input");
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (2)
211Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(FracState)}"); 291Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(SuffixState)}");
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
347Debug.Fail("TryReadBitString failed with an over-allocated buffer");
System\Formats\Asn1\AsnDecoder.OctetString.cs (2)
413Debug.Fail("Non-overlapping data encountered..."); 530Debug.Fail("TryCopyConstructedOctetStringContents failed with a pre-allocated buffer");
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
99Debug.Fail($"UtcTime did not fit in tmpSpace ({contents.Length} total)");
System\Formats\Asn1\AsnWriter.cs (2)
441Debug.Fail($"TryWrite failed or written was wrong value ({written} vs {spaceRequired})"); 914Debug.Fail($"No handler for {_frame.ItemType}");
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (2)
88Debug.Fail($"Utf8Formatter.TryFormat could not format {floatingTicks} / TicksPerSecond"); 132Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System\Formats\Asn1\AsnWriter.Text.cs (2)
105Debug.Fail( 122Debug.Fail(
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
108Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System.Formats.Cbor (6)
System\Formats\Cbor\CborConformanceLevel.cs (1)
269Debug.Fail("Invalid conformance mode used in encoding sort.");
System\Formats\Cbor\Reader\CborReader.PeekState.cs (3)
38Debug.Fail("CborReader internal error. Invalid CBOR major type pushed to stack."); 84Debug.Fail("CborReader internal error. Invalid CBOR major type pushed to stack."); 129Debug.Fail("CborReader internal error. Invalid CBOR major type.");
System\Formats\Cbor\Writer\CborWriter.cs (1)
409Debug.Fail("Invalid CBOR major type pushed to stack.");
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
197Debug.Fail("Unreachable code in decimal exponentiation logic");
System.Formats.Tar (1)
System\Formats\Tar\TarEntry.cs (1)
490Debug.Fail($"Metadata entry type should not be visible: '{EntryType}'");
System.IO.Compression (3)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (3)
329Debug.Fail("check why we are here!"); 472Debug.Fail("check why we are here!"); 670Debug.Fail("check why we are here!");
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
System.IO.FileSystem.Watcher (3)
src\libraries\Common\src\Interop\Linux\System.Native\Interop.INotify.cs (1)
37Debug.Fail("inotify_rm_watch failed with " + hr);
System\IO\FileSystemWatcher.cs (1)
430Debug.Fail("Unknown FileSystemEvent change type! Value: " + changeType);
System\IO\FileSystemWatcher.Linux.cs (1)
825Debug.Fail("Buffer provided to read was too small");
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
211Debug.Fail($"shm_open failed with ENAMETOOLONG for {Encoding.UTF8.GetByteCount(mapName)} byte long name.");
System.IO.Packaging (3)
System\IO\Packaging\PackageRelationshipSelector.cs (1)
153Debug.Fail("This option should never be called");
System\IO\Packaging\PartBasedPackageProperties.cs (1)
592Debug.Fail("Unknown value type for properties");
System\IO\Packaging\ZipPackage.cs (1)
479Debug.Fail("Encountered an invalid CompressionOption enum value");
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
533Debug.Fail("This should not happen");
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
67Debug.Fail("The ExceptionArgument value is not defined.");
System.Linq.Expressions (1)
System\Dynamic\Utils\ContractUtils.cs (1)
22Debug.Fail("Unreachable");
System.Linq.Parallel (18)
System\Linq\Parallel\Enumerables\ParallelQuery.cs (4)
52Debug.Fail("The derived class must override this method."); 65Debug.Fail("The derived class must override this method."); 78Debug.Fail("The derived class must override this method."); 127Debug.Fail("The derived class must override this method.");
System\Linq\Parallel\Merging\ArrayMergeHelper.cs (1)
76Debug.Fail("ArrayMergeHelper<>.GetEnumerator() is not intended to be used. Call GetResultsAsArray() instead.");
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
175Debug.Fail("An ordered pipelining merge is not intended to be used this way."); 375Debug.Fail("QueryEnd() should have thrown an exception.");
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
204Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
140Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\QueryResults.cs (2)
63Debug.Fail("GetElement property is not supported by non-indexable query results"); 78Debug.Fail("ElementsCount property is not supported by non-indexable query results");
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
129Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
107Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in Aggregate().");
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
105Debug.Fail("AsSequentialQuery is not supported on ForAllOperator");
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
99Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
78Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
273Debug.Fail("Search should have found a maximal element");
System.Net.Http (18)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System\Net\Http\Headers\WarningHeaderValue.cs (1)
220Debug.Fail("Unable to parse value even though it was parsed as <=3 digits string. Input: '" +
System\Net\Http\HttpRuleParser.cs (2)
280Debug.Fail("'NotParsed' is unexpected: We started nested expression " + 290Debug.Fail("Unknown enum result: " + nestedResult);
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
421Debug.Fail($"Unexpected state: {_state}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
165Debug.Fail("Unknown HttpConnectionKind in HttpConnectionPool.ctor");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
1279Debug.Fail($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 2083Debug.Fail($"Stream {http2Stream.StreamId} not found in dictionary during RemoveStream???"); 2153Debug.Fail($"Unexpected keep alive state ({_keepAliveState})");
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (5)
383Debug.Fail($"Unexpected exception type in Http3RequestStream.SendAsync: {ex}"); 627Debug.Fail($"Received unexpected frame type {frameType}."); 1089Debug.Fail(message); 1162Debug.Fail($"Unexpected {nameof(Http3RequestStream)}.{nameof(_headerState)} '{_headerState}'."); 1170Debug.Fail($"This has no use in HTTP/3 and should never be called by {nameof(QPackDecoder)}.");
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
44Debug.Fail($"DrainAsync should not be called for this response stream: {GetType()}");
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
54Debug.Fail("Bad socks version.");
System.Net.Mail (3)
System\Net\Mime\Base64Encoder.cs (3)
74Debug.Fail("paddind was not in range [0,2]"); 115Debug.Fail("paddind was not in range [0,2]"); 141Debug.Fail("paddind was not in range [0,2]");
System.Net.NameResolution (9)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System\Net\Dns.cs (4)
30Debug.Fail("LogFailure should return false"); 454Debug.Fail("LogFailure should return false"); 496Debug.Fail("LogFailure should return false"); 531Debug.Fail("LogFailure should return false");
System\Net\NameResolutionPal.Unix.cs (2)
47Debug.Fail($"Unexpected error: {error} errno: {Interop.Sys.GetErrNo()}"); 50Debug.Fail($"Unexpected error: {error}");
System.Net.NetworkInformation (3)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
30Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
213Debug.Fail($"Unexpected error: {ex}");
System.Net.Ping (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Primitives (3)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
30Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Quic (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
124Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_IsSignatureAlgorithmAvailable)}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Requests (1)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System.Net.Security (9)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
124Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_IsSignatureAlgorithmAvailable)}");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
501Debug.Fail("Failed to add issuer to trusted CA list.");
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
166Debug.Fail("Unable to load required type.");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
22Debug.Fail($"Convert.TryToBase64 failed with {input.Length} bytes to a {base64.Length} buffer");
System\Net\CertificateValidationPal.cs (1)
76Debug.Fail($"Failed to open cert store, location: {storeLocation} exception: {exception}");
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
184Debug.Fail($"Unknown EncryptionPolicy value ({policy})");
System\Net\Security\NegotiateStream.cs (2)
782Debug.Fail("Unreachable"); 843Debug.Fail("Unreachable");
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System\Net\Sockets\SafeSocketHandle.cs (1)
127Debug.Fail($"handle:{handle}, error:{exception}");
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
307Debug.Fail("Expected derived type to implement IThreadPoolWorkItem");
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
236Debug.Fail($"Callers should guard against calling this method for '{LastOperation}'");
System.Net.WebClient (1)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
18private static readonly Action s_completionSentinel = static () => Debug.Fail("Completion sentinel should never be invoked");
System.Private.CoreLib (128)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (3)
199Debug.Fail("Unhandled exceptions should be processed by the native runtime only"); 729Debug.Fail("unreachable"); 968Debug.Fail("unreachable");
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
34Debug.Fail($"GetHostName failed with error {err}");
src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
512Debug.Fail("Fell through switch in Array.Copy!"); 1332Debug.Fail("All primitive types should be handled above"); 1828Debug.Fail("All primitive types should be handled above"); 2055Debug.Fail("All primitive types should be handled above");
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64Helper.cs (4)
28Debug.Fail($"Read for {typeof(TVector)} is not within safe bounds. srcIndex: {srcIndex}, srcLength: {srcLength}"); 42Debug.Fail($"Write for {typeof(TVector)} is not within safe bounds. destIndex: {destIndex}, destLength: {destLength}"); 56Debug.Fail($"Read for {typeof(TVector)} is not within safe bounds. srcIndex: {srcIndex}, srcLength: {srcLength}"); 70Debug.Fail($"Write for {typeof(TVector)} is not within safe bounds. destIndex: {destIndex}, destLength: {destLength}");
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\ParserHelpers.cs (1)
69Debug.Fail("Control should never reach this point.");
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
934Debug.Fail("hash table insert failed! Load factor too high, or our double hashing function is incorrect.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
116Debug.Fail("GetSessionInfo returned false.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
133Debug.Fail($"Unsupported type \"{parameterType}\" encountered.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4481Debug.Fail("EventSource did not have a registered EventListener!");
src\libraries\System.Private.CoreLib\src\System\Enum.cs (3)
462Debug.Fail("Unknown enum underlying type"); 1245Debug.Fail("Unknown enum underlying type"); 1347Debug.Fail("Unknown enum underlying type");
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
72Debug.Fail($"Unable to get home directory: {exc}"); 241Debug.Fail($"Failed reading {userDirsPath}: {exc}");
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
463Debug.Fail(e.ToString());
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
209Debug.Fail("Not expected to come here");
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (5)
246Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleStringData)] Failed"); 271Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleNumberData)] failed"); 287Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleGroupingData type)] failed"); 325Debug.Fail("[CultureData.GetTimeFormatString(bool shortFormat)] Failed"); 504Debug.Fail("[CultureData.IcuGetListSeparator] Unexpected ListSeparator value.");
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
2424Debug.Fail("The hashtable is full. This should not happen."); 2508Debug.Fail("The hashtable is full. This should not happen.");
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
1054Debug.Fail("Should never be reached"); 1076Debug.Fail("Should never be reached"); 5230Debug.Fail("Unknown DateTimeParseFailure: " + result.failure.ToString());
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
130Debug.Fail("Should never be called non-Windows platforms.");
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
539Debug.Fail("Unexpected special token '%', Bug in DateTimeFormatInfo.FullTimeSpan[Positive|Negative]Pattern");
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (2)
83Debug.Fail("internal constructor, this should never occur"); 119Debug.Fail("Invalid logic; State should always have a valid value");
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
104Debug.Fail($"Unknown platform {_platform}");
src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
197Debug.Fail("Not used or called for this implementation.");
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
205Debug.Fail("Unknown enum value");
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (11)
25Debug.Fail($"Unexpected CorElementType: {dstElementType}. Not a valid widening target."); 103Debug.Fail($"Unexpected CorElementType: {dstElementType}. Not a valid widening target."); 150Debug.Fail("Expected to be unreachable"); break; 168Debug.Fail("Array.Copy from I1 to another type hit unsupported widening conversion"); break; 191Debug.Fail("Array.Copy from U2 to another type hit unsupported widening conversion"); break; 207Debug.Fail("Array.Copy from I2 to another type hit unsupported widening conversion"); break; 222Debug.Fail("Array.Copy from U4 to another type hit unsupported widening conversion"); break; 236Debug.Fail("Array.Copy from I4 to another type hit unsupported widening conversion"); break; 248Debug.Fail("Array.Copy from U8 to another type hit unsupported widening conversion"); break; 260Debug.Fail("Array.Copy from I8 to another type hit unsupported widening conversion"); break; 269Debug.Fail("Fell through outer switch in PrimitiveWiden! Unknown primitive type for source array!"); break;
src\libraries\System.Private.CoreLib\src\System\Reflection\LocalVariableInfo.cs (1)
10public virtual Type LocalType { get { Debug.Fail("type must be set!"); return null!; } }
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeNameResolver.cs (2)
18Debug.Fail("Expected to be unreachable"); 64Debug.Fail("Expected to be unreachable");
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
154Debug.Fail(CoreLib.Name + "'s NeutralResourcesLanguageAttribute is a malformed culture name! name: \"" + attr.CultureName + "\" Exception: " + e); 467Debug.Fail("Couldn't get " + CoreLib.Name + ResourceManager.ResFileExtension + " from " + CoreLib.Name + "'s assembly" + Environment.NewLineConst + Environment.NewLineConst + "Are you building the runtime on your machine? Chances are the BCL directory didn't build correctly. Type 'build -c' in the BCL directory. If you get build errors, look at buildd.log. If you then can't figure out what's wrong (and you aren't changing the assembly-related metadata code), ask a BCL dev.\n\nIf you did NOT build the runtime, you shouldn't be seeing this and you've found a bug.");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
72Debug.Fail("SetStateMachine should not be used.");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (3)
144Debug.Fail("Throw() should have thrown"); 155Debug.Fail("Throw() should have thrown"); 160Debug.Fail("There should be exceptions if we're Faulted.");
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
270Debug.Fail("Fell through switch statement!");
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
827Debug.Fail("Error result not expected"); 898Debug.Fail("Error result not expected");
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
317Debug.Fail("Unable to find escape sequence for this character");
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (3)
72Debug.Fail("Vector<T> is unexpected size."); 84Debug.Fail("Vector<T> is unexpected size."); 90Debug.Fail("Vector<T> is greater than 512 bits in size?");
src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
26Debug.Fail("SR::GetResourceString with empty resourceKey. Bug in caller, or weird recursive loading problem?");
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
803Debug.Fail("Should not reach this point.");
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
498Debug.Fail("Unknown types.");
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (2)
258Debug.Fail("Unexpected OperationStatus return value."); 323Debug.Fail("Unexpected OperationStatus return value.");
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
234Debug.Fail("Unexpected return value.");
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
373Debug.Fail("Unknown return value.");
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (7)
75Debug.Fail("This should be overridden by a subclassed type."); 81Debug.Fail("This should be overridden by a subclassed type."); 113Debug.Fail("This should be overridden by a subclassed type."); 206Debug.Fail("This should be overridden by a subclassed type."); 469Debug.Fail("This should be overridden by a subclassed type."); 800Debug.Fail("This should be overridden by a subclassed type."); 1065Debug.Fail("This should be overridden by a subclassed type.");
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
252Debug.Fail("Unexpected code page");
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeDebug.cs (6)
15Debug.Fail($"The value {ToHexString(codePoint)} is not a valid BMP code point."); 24Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 high surrogate code point."); 33Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 low surrogate code point."); 42Debug.Fail($"The value {ToHexString(codePoint)} is not a valid Unicode code point."); 51Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid Unicode scalar value."); 60Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid supplementary plane Unicode scalar value.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (1)
499Debug.Fail("Invalid m_action in Task<TResult>");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
273Debug.Fail("The sentinel delegate should never be invoked.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2405Debug.Fail("Invalid m_action in Task"); 7447Debug.Fail("UnwrapPromise in illegal state");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (4)
51Debug.Fail("Invalid m_action in ContinuationTaskFromTask"); 97Debug.Fail("Invalid m_action in ContinuationResultTaskFromTask"); 143Debug.Fail("Invalid m_action in ContinuationTaskFromResultTask"); 189Debug.Fail("Invalid m_action in ContinuationResultTaskFromResultTask");
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
72Debug.Fail("Should have found the queue");
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
1058Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 1240Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
1248Debug.Fail("Missed all cases for computing Tuple hash code");
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (2)
2079Debug.Fail("Missed all cases for computing ValueTuple hash code"); 2154Debug.Fail("Missed all cases for computing ValueTuple hash code");
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
173Debug.Fail(" WeakReference<T> finalizer should never run");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
231Debug.Fail("Pre-allocated full name should have been provided in the ctor");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (6)
368Debug.Fail("Expected to be unreachable"); 379Debug.Fail("Expected to be unreachable"); 390Debug.Fail("Expected to be unreachable"); 401Debug.Fail("Expected to be unreachable"); 412Debug.Fail("Expected to be unreachable"); 423Debug.Fail("Expected to be unreachable");
src\System\Array.CoreCLR.cs (1)
395Debug.Fail("Hey! How'd I get here?");
src\System\Attribute.CoreCLR.cs (1)
598Debug.Fail("Invalid type for ParameterInfo member in Attribute class");
src\System\Collections\Generic\EqualityComparer.CoreCLR.cs (2)
150Debug.Fail("Should not get here."); 156Debug.Fail("Should not get here.");
src\System\Reflection\Emit\CustomAttributeBuilder.cs (3)
322Debug.Fail("Invalid primitive type"); 402Debug.Fail("Invalid enum base type"); 478Debug.Fail("Invalid primitive type");
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
254Debug.Fail("We should never get here!");
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
2275default: Debug.Fail("Unreachable code"); break; 2284default: Debug.Fail("Unreachable code"); break;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
82Debug.Fail("Incorrect primitive type size!");
src\System\RuntimeType.ActivatorCache.cs (1)
157Debug.Fail("Caller passed the wrong RuntimeType to this routine."
src\System\RuntimeType.BoxCache.cs (1)
63Debug.Fail("Caller passed the wrong RuntimeType to this routine."
src\System\RuntimeType.CoreCLR.cs (2)
389Debug.Fail("Invalid CacheType"); 1989Debug.Fail("Unreachable code");
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (1)
45Debug.Fail("Caller passed the wrong RuntimeType to this routine."
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CodeGenerator.cs (2)
695Debug.Fail("Data can only be stored into ArgBuilder or LocalBuilder."); 818Debug.Fail("Char is not a valid schema primitive and should be treated as int in DataContract");
System\Runtime\Serialization\DataContract.cs (1)
410Debug.Fail("DataContract cache overflow");
System\Runtime\Serialization\ExtensionDataReader.cs (11)
340Debug.Fail("ExtensionDataReader in invalid state"); 355Debug.Fail("ExtensionDataReader Name property should only be called for IXmlSerializable"); 368Debug.Fail("ExtensionDataReader HasValue property should only be called for IXmlSerializable"); 381Debug.Fail("ExtensionDataReader BaseURI property should only be called for IXmlSerializable"); 394Debug.Fail("ExtensionDataReader NameTable property should only be called for IXmlSerializable"); 405Debug.Fail("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 415Debug.Fail("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 425Debug.Fail("ExtensionDataReader MoveToAttribute method should only be called for IXmlSerializable"); 437Debug.Fail("ExtensionDataReader ResolveEntity method should only be called for IXmlSerializable"); 447Debug.Fail("ExtensionDataReader ReadAttributeValue method should only be called for IXmlSerializable"); 474Debug.Fail("Encountered invalid data node when deserializing unknown data");
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
204Debug.Fail("DataContract cache overflow");
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
993Debug.Fail("Failed to create contract for KeyValuePair type");
System\Runtime\Serialization\ObjectReferenceStack.cs (2)
51Debug.Fail("Object reference stack in invalid state"); 78Debug.Fail("Object reference stack in invalid state");
System\Runtime\Serialization\ObjectToIdCache.cs (2)
92Debug.Fail("Object table overflow"); 131Debug.Fail("Object table overflow");
System\Runtime\Serialization\SchemaExporter.cs (1)
520Debug.Fail("XML data contract type name does not match schema name");
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
922Debug.Fail("Failed to create contract for KeyValuePair type");
System\Runtime\Serialization\XmlObjectSerializer.cs (4)
142Debug.Fail("XmlObjectSerializer.InternalWriteStartObject should never get called"); 149Debug.Fail("XmlObjectSerializer.InternalWriteObjectContent should never get called"); 156Debug.Fail("XmlObjectSerializer.InternalWriteEndObject should never get called"); 337Debug.Fail("XmlObjectSerializer.InternalIsStartObject should never get called");
System.Private.Uri (1)
System\UriExt.cs (1)
1086Debug.Fail("Uri failed to locate custom port at index: " + portIndex);
System.Private.Windows.Core (15)
System\Private\Windows\BinaryFormat\Deserializer\Deserializer.cs (1)
153Debug.Fail("Completed dependencies should have been removed from the dictionary.");
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
74Debug.Fail(ex.Message);
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
39Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}");
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
487Debug.Fail("All mapped formats must be either restricted or not restricted.");
System\TypeExtensions.cs (1)
281Debug.Fail(e.Message);
System\Value.cs (1)
69Debug.Fail($"Unexpected type {type.Name}.");
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (3)
64Debug.Fail("We should be special casing FontFamilyNotFound so we can provide the font name"); 68Debug.Fail("We should be special casing FontStyleNotFound so we can provide the font name"); 72Debug.Fail("We should be special casing NotTrueTypeFont so we can provide the font name");
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
33Debug.Fail($"GetWindowTextLength failed. Error: {new Win32Exception(error).Message}"); 52Debug.Fail($"GetWindowText failed. Error: {new Win32Exception().Message}");
Windows\Win32\System\Com\ComHelpers.cs (1)
185Debug.Fail("How did we fail to query for IUnknown?");
Windows\Win32\System\Com\WinFormsComWrappers.cs (2)
29Debug.Fail("object does not implement IManagedWrapper"); 86Debug.Fail($"Exception thrown in UnwrapAndInvoke {ex.Message}.");
Windows\Win32\System\Variant\VARIANT.cs (1)
447Debug.Fail("The CLR should not support arrays with more than 32 dimensions.");
System.Private.Xml (260)
System\Xml\BinaryXml\XmlBinaryReader.cs (8)
809Debug.Fail("Unexpected parent NodeType"); 1124Debug.Fail("should never happen"); 1214Debug.Fail("should never happen"); 1309Debug.Fail("should never happen"); 1404Debug.Fail("should never happen"); 1499Debug.Fail("should never happen"); 1594Debug.Fail("should never happen"); 1689Debug.Fail("should never happen");
System\Xml\Cache\XPathDocumentNavigator.cs (1)
84Debug.Fail("ReadStringValue() should have taken care of these node types.");
System\Xml\Core\ReadContentAsBinaryHelper.cs (4)
93Debug.Fail($"Unexpected state {_state}"); 136Debug.Fail($"Unexpected state {_state}"); 179Debug.Fail($"Unexpected state {_state}"); 222Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
44Debug.Fail($"Unexpected state {_state}"); 88Debug.Fail($"Unexpected state {_state}"); 132Debug.Fail($"Unexpected state {_state}"); 176Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReader.cs (1)
188Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
50Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlEventCache.cs (3)
241Debug.Fail($"Unknown event: {page[idxEvent].EventType}"); 247Debug.Fail("Unknown event should be added to end of event sequence."); 304Debug.Fail("Unknown event should be added to end of event sequence.");
System\Xml\Core\XmlSubtreeReader.cs (10)
533Debug.Fail($"Unexpected state {_state}"); 652Debug.Fail($"Unexpected state {_state}"); 878Debug.Fail($"Unexpected state {_state}"); 901Debug.Fail($"Unexpected state {_state}"); 958Debug.Fail($"Unexpected state {_state}"); 1016Debug.Fail($"Unexpected state {_state}"); 1039Debug.Fail($"Unexpected state {_state}"); 1095Debug.Fail($"Unexpected state {_state}"); 1154Debug.Fail($"Unexpected state {_state}"); 1552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlSubtreeReaderAsync.cs (9)
96Debug.Fail($"Unexpected state {_state}"); 178Debug.Fail($"Unexpected state {_state}"); 284Debug.Fail($"Unexpected state {_state}"); 307Debug.Fail($"Unexpected state {_state}"); 364Debug.Fail($"Unexpected state {_state}"); 422Debug.Fail($"Unexpected state {_state}"); 445Debug.Fail($"Unexpected state {_state}"); 501Debug.Fail($"Unexpected state {_state}"); 552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlTextReaderImpl.cs (19)
442Debug.Fail($"Unexpected conformance level {settings.ConformanceLevel}"); 838default: Debug.Fail($"Unexpected fragment type {_fragmentType}"); goto case XmlNodeType.None; 1210Debug.Fail("Invalid InitInputType"); 1334Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1362Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1517Debug.Fail("Unexpected entity type"); 1543Debug.Fail("Unexpected entity type"); 3048Debug.Fail("Unhandled DtdProcessing enumeration value."); 3537Debug.Fail("We should get an exception again."); 3831Debug.Fail($"Unexpected xmlDeclState {xmlDeclState}"); 4625Debug.Fail("We should never get to this point."); 5312Debug.Fail("We should never get to this point."); 5333Debug.Fail("no EndEntity reporting while parsing attributes"); 6122Debug.Fail($"Unexpected parsing states stack top {_parsingStatesStackTop}"); 7045Debug.Fail("We should never get to this point."); 7146Debug.Fail("We should never get to this point."); 8261Debug.Fail($"Unexpected read state {_incReadState}"); 8645Debug.Fail("We should never get to this point."); 8703Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
69Debug.Fail("Invalid InitInputType"); 175Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 264Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 323Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 991Debug.Fail("Unhandled DtdProcessing enumeration value."); 1410Debug.Fail($"Unexpected xmlDeclState {xmlDeclState}"); 2249Debug.Fail("We should never get to this point."); 2827Debug.Fail("We should never get to this point."); 2849Debug.Fail("no EndEntity reporting while parsing attributes"); 4788Debug.Fail("We should never get to this point."); 4888Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
703Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextWriter.cs (2)
1008Debug.Fail($"Unexpected state {_currentState}"); 1481Debug.Fail("Should have never come here");
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
580Debug.Fail($"Unexpected parsing function {_parsingFunction}");
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
68Debug.Fail($"Unexpected parsing function {_parsingFunction}");
System\Xml\Core\XmlWellFormedWriter.cs (4)
298Debug.Fail("Expected currentState <= State.Error "); 1537Debug.Fail("State.Attribute == currentState || State.RootLevelAttr == currentState"); 1951Debug.Fail("We should not get to this point."); 1978Debug.Fail($"We should never get to this point. State = {state}");
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
1368Debug.Fail("We should not get to this point.");
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
388Debug.Fail("Unexpected ItemType value.");
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
99Debug.Fail("Unexpected ItemType value.");
System\Xml\Core\XmlWriter.cs (1)
488Debug.Fail($"Unexpected node type {nodeType}");
System\Xml\Core\XmlWriterAsync.cs (1)
488Debug.Fail($"Unexpected node type {nodeType}");
System\Xml\Core\XmlWriterSettings.cs (3)
386Debug.Fail("Invalid XmlOutputMethod setting."); 408Debug.Fail("Invalid XmlOutputMethod setting."); 457Debug.Fail("Invalid XmlOutputMethod setting.");
System\Xml\Core\XsdValidatingReader.cs (2)
2598Debug.Fail("Should not happen as the caching reader does not cache elements in simple content"); 2659Debug.Fail("Should not happen as the caching reader does not cache elements in simple content");
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
156Debug.Fail($"{nameof(typedValue)} should never be null");
System\Xml\Dom\DocumentXPathNavigator.cs (2)
519Debug.Fail($"Unexpected scope {scope}"); 632Debug.Fail($"Unexpected scope {scope}");
System\Xml\Dom\XmlLoader.cs (1)
405Debug.Fail("Unknown reader name");
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
60Debug.Fail("Null was added to the collection which didn't expect it");
System\Xml\Ref.cs (1)
17Debug.Fail("Ref.Equal: Object comparison used for non-atomized string '" + strA + "'");
System\Xml\Schema\ConstraintStruct.cs (1)
506Debug.Fail($"{nameof(other)} is not of type {nameof(KeySequence)}");
System\Xml\Schema\DtdParser.cs (3)
621Debug.Fail($"Unexpected token {token}"); 1656Debug.Fail($"Unexpected scanning function {_scanningFunction}"); 3447Debug.Fail("This is an unexpected error that should have been handled in the ScanXXX methods.");
System\Xml\Schema\DtdParserAsync.cs (2)
265Debug.Fail($"Unexpected token {token}"); 1283Debug.Fail($"Unexpected scanning function {_scanningFunction}");
System\Xml\Schema\FacetChecker.cs (1)
464Debug.Fail($"Unexpected facet type {facet.FacetType}");
System\Xml\Schema\Inference\Infer.cs (2)
1733Debug.Fail("Expected type not matched"); 2379Debug.Fail("Expected date, time or dateTime");
System\Xml\Schema\NamespaceList.cs (2)
112Debug.Fail($"Unexpected type {_type}"); 157Debug.Fail($"Unexpected type {_type}");
System\Xml\Schema\Parser.cs (1)
137Debug.Fail($"Unexpected root type {rootType}");
System\Xml\Schema\Preprocessor.cs (1)
704Debug.Fail($"Unexpected compositor {external.Compositor}");
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
1403Debug.Fail("Unexpected particle"); 2550Debug.Fail("Unexpected particle");
System\Xml\Schema\SchemaInfo.cs (1)
282Debug.Fail($"Unexpected match state {attributeMatchState}");
System\Xml\Schema\SchemaSetCompiler.cs (2)
1646Debug.Fail("Unexpected particle"); 2931Debug.Fail("Unexpected particle");
System\Xml\Schema\XmlAtomicValue.cs (8)
231default: Debug.Fail("Should never get here"); break; 253default: Debug.Fail("Should never get here"); break; 276default: Debug.Fail("Should never get here"); break; 300default: Debug.Fail("Should never get here"); break; 323default: Debug.Fail("Should never get here"); break; 346default: Debug.Fail("Should never get here"); break; 370default: Debug.Fail("Should never get here"); break; 392default: Debug.Fail("Should never get here"); break;
System\Xml\Schema\XmlSchemaComplexType.cs (1)
318System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaComplexType. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaElement.cs (1)
273System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaElement. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaGroup.cs (1)
74System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaGroup. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaObject.cs (4)
62get { Debug.Fail("Should not use base property"); return null; } 63set { Debug.Fail("Should not use base property"); } 72get { Debug.Fail("Should not use base property"); return null; } 73set { Debug.Fail("Should not use base property"); }
System\Xml\Schema\XmlValueConverter.cs (1)
270Debug.Fail($"Type code {typeCode} is not supported.");
System\Xml\Schema\XsdBuilder.cs (5)
967Debug.Fail($"State is {state}"); 1092Debug.Fail($"State is {state}"); 1333Debug.Fail($"Unexpected parent element {builder.ParentElement}"); 2376Debug.Fail($"Unexpected parent element {this.ParentElement}"); 2425Debug.Fail($"Unexpected parent element {this.ParentElement}");
System\Xml\Serialization\CodeGenerator.cs (3)
66Debug.Fail("Interface not found"); 176System.Diagnostics.Debug.Fail("Variable not found"); 788Debug.Fail("Char is not a valid schema primitive and should be treated as int in DataContract");
System\Xml\Serialization\Globals.cs (1)
16System.Diagnostics.Debug.Fail(msg);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
1095Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1114Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1119Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code");
System\Xml\XPath\Internal\LogicalExpr.cs (2)
328Debug.Fail("Unexpected Operator.op code in cmpNumberNumber()"); 340Debug.Fail("Unexpected Operator.op code in cmpNumberNumber()");
System\Xml\XPath\Internal\PrecedingQuery.cs (1)
96Debug.Fail("Algorithm error: we missed the sentinel node");
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
76Debug.Fail("We managed to miss sentinel node (input)");
System\Xml\XPath\Internal\QueryBuilder.cs (1)
494Debug.Fail("Unknown QueryType encountered!!");
System\Xml\XPath\XPathNavigatorReader.cs (3)
664Debug.Fail("Couldn't find Namespace Node! Should not happen!"); 1266Debug.Fail("This shouldn't be called."); 1277Debug.Fail("This shouldn't be called.");
System\Xml\Xsl\IlGen\GenerateHelper.cs (13)
879Debug.Fail("Shouldn't be called"); 967default: Debug.Fail($"{opType} must be an arithmetic operation."); break; 980default: Debug.Fail($"{opType} must be an arithmetic operation."); break; 987Debug.Fail($"The {opType} arithmetic operation cannot be performed on values of type {code}."); 1002Debug.Fail($"Type {code} does not support the equals operation."); 1018Debug.Fail($"Type {code} does not support the equals operation."); 1197default: Debug.Fail($"{nameType} is invalid here."); break; 1207default: Debug.Fail($"{nameType} is invalid here."); break; 1231default: Debug.Fail($"{nameType} is invalid here."); break; 1260default: Debug.Fail($"{nameType} is invalid here."); break; 1270default: Debug.Fail($"{nameType} is invalid here."); break; 1430Debug.Fail("Heterogenous sort key is not allowed."); 1434Debug.Fail($"Sorting over datatype {keyType.TypeCode} is not allowed.");
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (2)
548Debug.Fail($"Invalid location: {_storage.Location}"); 577Debug.Fail($"Invalid location: {_storage.Location}");
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
217Debug.Fail("Cannot handle more than 2 arguments.");
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
501default: Debug.Fail($"{ndConstr.NodeType} is not handled by XmlILStateAnalyzer."); break;
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
5469Debug.Fail($"Cannot fold this comparison operation: {opType}"); 5581Debug.Fail($"Cannot fold this arithmetic operation: {opType}");
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (13)
336Debug.Fail($"Visit{parent.NodeType} should never be called"); 1772Debug.Fail($"Comparisons for datatype {code} are invalid."); 2030Debug.Fail($"Pattern {step.NodeType} should have been handled."); 2474Debug.Fail($"Pattern {step.NodeType} should have been handled."); 2500Debug.Fail($"Pattern {step.NodeType} should have been handled."); 3137Debug.Fail($"Unexpected node type {ndProp.NodeType}"); 3681Debug.Fail($"Internal Xslt library may not use parameters of type {clrTypeFormalArg}"); 3811Debug.Fail($"Conversion from {ndConv.Source.XmlType} to {ndConv.TargetType} is not supported."); 4309default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4322default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4338default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4357default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4604Debug.Fail($"Cannot map QilNodeType {typ} to an XPathNodeType");
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
185Debug.Fail(message);
System\Xml\Xsl\Runtime\ContentIterators.cs (1)
418Debug.Fail($"Invalid IteratorState {_state}");
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (6)
176Debug.Fail("Should never be called on XmlAttributeCache."); 180Debug.Fail("Should never be called on XmlAttributeCache."); 184Debug.Fail("Should never be called on XmlAttributeCache."); 188Debug.Fail("Should never be called on XmlAttributeCache."); 192Debug.Fail("Should never be called on XmlAttributeCache."); 197Debug.Fail("Should never be called on XmlAttributeCache.");
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
301Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}");
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (3)
1021Debug.Fail($"Text cannot be output in the {_xstate} state."); 1192Debug.Fail($"Unexpected node type {navigator.NodeType}"); 1340Debug.Fail($"{xstate} is not a valid XmlState.");
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
778Debug.Fail($"XmlTypeCode {code} was not fully handled.");
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (1)
319Debug.Fail($"Unexpected node type {nav.NodeType}");
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
314Debug.Fail($"Conversion from {value.XmlType.QualifiedName.Name} to {destinationType} is not supported.");
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
302Debug.Fail($"Unexpected type: {o.GetType()}");
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
573Debug.Fail("Invalid XSLT value");
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
1182Debug.Fail($"Don't know how to serialize {type.GetType()}"); 1201Debug.Fail("Unexpected XmlQueryType's subtype id");
System\Xml\Xsl\XPath\XPathBuilder.cs (6)
46Debug.Fail("Must not be called"); 129Debug.Fail($"{op} is not a valid XPathOperator"); 161Debug.Fail("Wrong operator type"); 294Debug.Fail("Wrong operator type"); 414Debug.Fail("Invalid EnumValue 'XPathAxis'"); 602Debug.Fail($"{func.id} is present in the function table, but absent from the switch");
System\Xml\Xsl\XPath\XPathQilFactory.cs (1)
182default: Debug.Fail($"Unexpected XmlTypeCode: {requiredType}"); return null;
System\Xml\Xsl\XPath\XPathScanner.cs (1)
585Debug.Fail($"Unexpected LexKind: {t}");
System\Xml\Xsl\XPathConvert.cs (1)
2165Debug.Fail("Who's subtracting to negative?");
System\Xml\Xsl\XslException.cs (1)
62Debug.Fail($"Resource string '{res}' was not found");
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
743default: Debug.Fail($"Unexpected type of AST node: {nodeType}"); result = null; break; 1873Debug.Fail($"Unexpected NodeKind: {nodeKinds}");
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
32Debug.Fail("Should never get here"); 134Debug.Fail($"{func.id} is present in the function table, but absent from the switch"); 251default: Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}"); break;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (3)
226Debug.Fail("Should not call to this function."); 444Debug.Fail("GetPosition() must not be called"); 450Debug.Fail("GetLast() must not be called");
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1173Debug.Fail($"Unexpected XmlQueryType for script function: {xt}");
System\Xml\Xsl\Xslt\XsltLoader.cs (2)
98Debug.Fail("Should never get here"); 341Debug.Fail("AddTemplate() returned false for simplified stylesheet");
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (1)
196Debug.Fail("Invalid ApplyTemplatesAction execution state");
System\Xml\Xsl\XsltOld\AttributeAction.cs (1)
165Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (1)
112Debug.Fail("Invalid CallTemplateAction execution state");
System\Xml\Xsl\XsltOld\CommentAction.cs (1)
51Debug.Fail("Invalid IfAction execution state");
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
792Debug.Fail("Unexpected node type."); 974Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\CopyAction.cs (1)
116Debug.Fail("Invalid CopyAction execution state");
System\Xml\Xsl\XsltOld\CopyCodeAction.cs (1)
78Debug.Fail("Invalid CopyCodeAction execution state");
System\Xml\Xsl\XsltOld\ElementAction.cs (1)
152Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\IfAction.cs (1)
96Debug.Fail("Invalid IfAction execution state");
System\Xml\Xsl\XsltOld\MessageAction.cs (1)
68Debug.Fail("Invalid MessageAction execution state");
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
86Debug.Fail($"Invalid NodeType on output: {mainNode.NodeType}");
System\Xml\Xsl\XsltOld\newinstructionaction.cs (1)
72Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\NumberAction.cs (2)
357Debug.Fail("We implementing preceding-sibling::node() and some how miss context node 'nav'"); 454Debug.Fail("Invalid Number Action execution state");
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (1)
108Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\Processor.cs (6)
763Debug.Fail("Unexpected result of RecordBuilder.BeginEvent()"); 803Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 838Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 866Debug.Fail("Invalid XPathNodeType in CopyBeginEvent"); 895Debug.Fail("Invalid XPathNodeType in CopyTextEvent"); 925Debug.Fail("Invalid XPathNodeType in CopyEndEvent");
System\Xml\Xsl\XsltOld\RootAction.cs (1)
288Debug.Fail("Invalid RootAction execution state");
System\Xml\Xsl\XsltOld\SequentialOutput.cs (4)
436Debug.Fail("Should never get here"); 477Debug.Fail("Should never get here"); 485Debug.Fail("Should never get here"); 506Debug.Fail("Should never get here");
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
248Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\TextAction.cs (1)
81Debug.Fail("Invalid execution state in TextAction");
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (1)
85Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\ValueOfAction.cs (2)
84Debug.Fail("Invalid ValueOfAction execution state"); 123Debug.Fail("Invalid BuiltInRuleTextAction execution state");
System\Xml\Xsl\XsltOld\VariableAction.cs (1)
180Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WithParamAction.cs (1)
66Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
46Debug.Fail("XSLT never gives us CDATA"); 75Debug.Fail($"Invalid NodeType on output: {mainNode.NodeType}");
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
736Debug.Fail("unexpected XPath type");
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
219Debug.Fail("Override invoked");
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
1032System.Diagnostics.Debug.Fail("Parent node doesn't contain itself.");
System.Reflection.Metadata (5)
System\Reflection\Metadata\TypeName.cs (1)
231Debug.Fail("Pre-allocated full name should have been provided in the ctor");
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (1)
175Debug.Fail("Unexpected virtual index value");
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (1)
141Debug.Fail($"Unexpected treatment {treatment}");
System\Reflection\Metadata\TypeSystem\TypeReference.cs (2)
112Debug.Fail("Unknown TypeRef treatment"); 140Debug.Fail("Unknown TypeRef treatment");
System.Reflection.MetadataLoadContext (7)
System\Reflection\Runtime\BindingFlagSupport\ConstructorPolicies.cs (1)
53Debug.Fail("This code path should be unreachable.");
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (1)
221Debug.Fail("Unknown MemberInfo type.");
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
166Debug.Fail("Invalid CustomAttributeNamedArgumentKind value: " + cang.Kind);
System\Reflection\TypeLoading\General\CoreType.cs (1)
133Debug.Fail("Unexpected coreType passed to GetCoreTypeFullName: " + coreType);
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
54Debug.Fail("Unexpected PrimitiveTypeCode: " + typeCode);
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (1)
37Debug.Fail($"Invalid handle passed to ToTypeString: 0x{handle.GetToken():x8}");
System\Reflection\TypeLoading\Modules\GetTypeCoreCache.cs (1)
197Debug.Fail("Bucket " + bucket + " has a cycle in its linked list.");
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (1)
158Debug.Fail("Completed dependencies should have been removed from the dictionary.");
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
136Debug.Fail("Reason should never be CacheEntryRemovedReason.Evicted since the entry was inserted as NotRemovable.");
System.Security.Cryptography (113)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs (1)
32Debug.Fail($"NID Lookup for {oid} failed, only well-known types should be queried.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
124Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_IsSignatureAlgorithmAvailable)}");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs (1)
81Debug.Fail("Key is invalid or doesn't have a curve");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs (2)
35Debug.Fail( 66Debug.Fail(
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kem.cs (4)
105Debug.Fail("Generating a key with a seed requires a non-empty seed."); 144Debug.Fail($"Unexpected return value {result} from {nameof(CryptoNative_EvpKemGetPalId)}."); 165Debug.Fail($"Unexpected return value {ret} from {nameof(CryptoNative_EvpKemDecapsulate)}."); 197Debug.Fail($"Unexpected return value {ret} from {nameof(CryptoNative_EvpKemEncapsulate)}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.KemAlgs.cs (1)
49Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_EvpKemAvailable)}");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (2)
32Debug.Fail($"EVP_PKEY_bits returned non-positive value: {keySizeBits}"); 131Debug.Fail($"Unexpected return '{ret}' value from {nameof(CryptoNative_GetPkcs8PrivateKeySize)}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.ExportKeyContents.cs (1)
35Debug.Fail($"Unexpected return value {ret}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.MLDsa.cs (1)
54Debug.Fail($"Unexpected return value {result} from {nameof(CryptoNative_MLDsaGetPalId)}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.SlhDsa.cs (1)
71Debug.Fail($"Unexpected return value {result} from {nameof(CryptoNative_SlhDsaGetPalId)}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.Chain.cs (2)
27Debug.Fail($"Unexpected response from X509ChainGetCachedOcspSuccess: {response}"); 69Debug.Fail($"Unexpected response from X509ChainGetCachedOcspSuccess: {response}");
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
166Debug.Fail("Unable to load required type.");
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
82Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} bytes when {expectedOutputSize} was expected");
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
146Debug.Fail($"Signature exceeds {nameof(Algorithm.MaxSignatureSizeInBytes)} ({Algorithm.MaxSignatureSizeInBytes}).");
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (4)
257Debug.Fail($"Stack-based signDestination is insufficient ({maxSignatureSize} needed)"); 274Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}"); 289Debug.Fail($"Stack-based signDestination is insufficient ({signatureLength} needed)"); 339Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
203Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
88Debug.Fail("Unexpected algorithm");
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
387Debug.Fail($"UTF-8 encoding size changed between GetByteCount and GetBytes"); 416Debug.Fail("TryEncode failed with a pre-allocated buffer"); 596Debug.Fail("Key-sized OID included in the if, but not the switch"); 744Debug.Fail($"No Specified Salt value is present, indicating a new choice was unhandled"); 874Debug.Fail( 995Debug.Fail("TryGetHashAndReset failed with pre-allocated input"); 1008Debug.Fail("TryGetHashAndReset failed with pre-allocated input");
src\libraries\Common\src\System\Security\Cryptography\PemKeyHelpers.Factory.cs (2)
80Debug.Fail("Base64 decoding failed on already validated contents."); 145Debug.Fail("Base64 decoding failed on already validated contents.");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
184Debug.Fail("TryEncode failed with a pre-allocated buffer"); 214Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
498Debug.Fail($"No handler for {ConfidentialityMode}");
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (3)
185Debug.Fail($"Hash output wrote {bytesWritten} bytes when {hashBuf.Length} was expected"); 283Debug.Fail($"Unexpected written byte count ({count} vs {fullCopyLen})"); 300Debug.Fail($"Partial copy wrote {count} bytes of {destination.Length} expected");
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
195Debug.Fail("TryEncode failed with a presized buffer");
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (3)
185Debug.Fail($"Caller is responsible for temporary decryption buffer creation destination. destination.Length: {destination.Length}, needed: {rsaSize}"); 224Debug.Fail($"TryEncrypt behaved unexpectedly: {nameof(encrypted)}=={encrypted}, {nameof(bytesWritten)}=={bytesWritten}, {nameof(buf.Length)}=={buf.Length}"); 742Debug.Fail($"RsaSignHash behaved unexpectedly: {nameof(written)}=={written}, {nameof(signature.Length)}=={signature.Length}");
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (7)
102Debug.Fail("Unknown digest algorithm"); 332Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 370Debug.Fail("Bad exception produced from OAEP padding: " + e); 441Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 569Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 605Debug.Fail($"TryGetHashAndReset failed with sufficient space"); 619Debug.Fail($"TryGetHashAndReset failed with sufficient space");
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
952Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macKey.Length} bytes");
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
22Debug.Fail($"Convert.TryToBase64 failed with {input.Length} bytes to a {base64.Length} buffer");
System\Security\Cryptography\AesCcm.OpenSsl.cs (3)
79Debug.Fail($"CCM encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 136Debug.Fail($"CCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 161Debug.Fail("Key size should already be validated");
System\Security\Cryptography\AesGcm.OpenSsl.cs (3)
71Debug.Fail($"GCM encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 119Debug.Fail($"GCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 132Debug.Fail("Key size should already be validated");
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
136Debug.Fail($"A signature field was longer ({signatureField.Length}) than expected ({response.Length})");
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (3)
68Debug.Fail($"ChaCha20Poly1305 encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 116Debug.Fail($"ChaCha20Poly1305 decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 127Debug.Fail("Key size should already be validated");
System\Security\Cryptography\CryptoConfig.cs (1)
410Debug.Fail("Unsupported Dictionary value:" + retvalObj.ToString());
System\Security\Cryptography\ECDsa.cs (2)
158Debug.Fail($"GetMaxSignatureSize returned insufficient size for format {signatureFormat}"); 440Debug.Fail($"GetMaxSignatureSize returned insufficient size for format {signatureFormat}");
System\Security\Cryptography\HashProviderDispenser.Unix.cs (1)
47Debug.Fail("Destination length or hash size not valid.");
System\Security\Cryptography\Helpers.cs (2)
182Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded"); 248Debug.Fail($"Missing match criteria for curve type {aCurve.CurveType}");
System\Security\Cryptography\LiteHash.OpenSsl.cs (1)
24Debug.Fail("Platform should have previously checked support for algorithm.");
System\Security\Cryptography\LiteHash.Unix.cs (2)
132Debug.Fail($"Unexpected hash '{_hashSizeInBytes}' size from {nameof(Interop.Crypto.EvpMdSize)}."); 219Debug.Fail($"Unexpected hash '{_hashSizeInBytes}' size from {nameof(Interop.Crypto.EvpMdSize)}.");
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
30Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (1)
134Debug.Fail("Unhandled ML-KEM algorithm or ML-KEM is not available.");
System\Security\Cryptography\OpenSslCipherLite.cs (2)
55Debug.Fail("Cipher was reused without being reset."); 98Debug.Fail("Cipher was reused without being reset.");
System\Security\Cryptography\PemEncoding.cs (3)
721Debug.Fail("WriteCore wrote the wrong amount of data"); 757Debug.Fail("Convert.TryToBase64Chars failed with a pre-sized buffer"); 788Debug.Fail("Base64.EncodeToUtf8 failed with a pre-sized buffer");
System\Security\Cryptography\PemKeyHelpers.cs (2)
146Debug.Fail("Base64 decoding failed on already validated contents."); 232Debug.Fail("Base64 decoding failed on already validated contents.");
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (1)
78Debug.Fail("Called UpRefEvpPkey on a key which was already marked for destruction");
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SymmetricPadding.cs (2)
31Debug.Fail($"Unknown padding mode {paddingMode}."); 145Debug.Fail($"Unknown padding mode {padding}.");
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (2)
42Debug.Fail("Expected GetExpectedOidValue() to have thrown before we got here."); 72Debug.Fail("Expected GetExpectedOidValue() to have thrown before we got here.");
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
661Debug.Fail($"Key was of no known type: {_key?.GetType().FullName ?? "null"}");
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
58Debug.Fail("Base64Decode failed, but PemEncoding said it was legal"); 408Debug.Fail(
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
276Debug.Fail("Base64Decode failed, but PemEncoding said it was legal");
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
55Debug.Fail("Presized hash buffer was not the correct size.");
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (2)
153Debug.Fail("Failed to get the last write time of the CRL file"); 286Debug.Fail("HashData failed or produced an incorrect length output");
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (4)
1170Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code30); 1182Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code102); 1194Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code111); 1565Debug.Fail($"Out of range X509VerifyStatusCode returned {val} >= {OverflowValue}");
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
144Debug.Fail("AsnValueReader produced a span outside of the original bounds");
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (2)
411Debug.Fail($"Invalid parser state. Position {pos}, State {state}, Character {c}, String \"{stringForm}\""); 552Debug.Fail("Encoding rule was not handled.");
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
178Debug.Fail("TryReadPrimitiveOctetString should either succeed or throw with DER.");
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1449Debug.Fail("The contents should have already been validated by the PEM reader.");
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (4)
455Debug.Fail("The contents should have already been validated by the PEM reader."); 570Debug.Fail("Pre-allocated buffer was not the correct size."); 625Debug.Fail("Presized buffer is too small or did not write the correct amount."); 744Debug.Fail("Precomputed buffer was not large enough");
System\Security\Cryptography\XmlKeyHelper.cs (2)
148Debug.Fail($"Convert.TryToBase64Chars failed with {localLength} bytes to {StackChars} chars"); 247Debug.Fail("Original enumerator had elements, new one does not");
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseKey.cs (5)
185Debug.Fail($"Unknown key type: {KeyType}"); 210Debug.Fail("Unknown key type"); 219Debug.Fail("TrySignData failed with a pre-calculated destination"); 230Debug.Fail("TrySignData failed with a pre-calculated destination"); 262Debug.Fail($"Unknown keyType: {KeyType}");
System.Security.Cryptography.Pkcs (37)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
50Debug.Fail("Unknown SubjectIdentifierOrKey state");
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (2)
58Debug.Fail($"TryGetPrimitiveOctetStringBytes returned false in DER mode"); 90Debug.Fail($"Unknown key type requested: {typeof(T).FullName}");
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
73Debug.Fail($"{nameof(RecipientInfoAsn)} deserialized with an unknown recipient type");
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
203Debug.Fail("TryDecrypt wanted more space than the key size");
Internal\Cryptography\PkcsHelpers.cs (2)
209Debug.Fail($"Invalid recipientIdentifier type: {recipientIdentifierType}"); 310Debug.Fail($"Invalid hex character: {c}");
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
193Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded");
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
82Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} bytes when {expectedOutputSize} was expected");
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
387Debug.Fail($"UTF-8 encoding size changed between GetByteCount and GetBytes"); 416Debug.Fail("TryEncode failed with a pre-allocated buffer"); 596Debug.Fail("Key-sized OID included in the if, but not the switch"); 744Debug.Fail($"No Specified Salt value is present, indicating a new choice was unhandled"); 874Debug.Fail( 995Debug.Fail("TryGetHashAndReset failed with pre-allocated input"); 1008Debug.Fail("TryGetHashAndReset failed with pre-allocated input");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
184Debug.Fail("TryEncode failed with a pre-allocated buffer"); 214Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
498Debug.Fail($"No handler for {ConfidentialityMode}");
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (3)
185Debug.Fail($"Hash output wrote {bytesWritten} bytes when {hashBuf.Length} was expected"); 283Debug.Fail($"Unexpected written byte count ({count} vs {fullCopyLen})"); 300Debug.Fail($"Partial copy wrote {count} bytes of {destination.Length} expected");
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
100Debug.Fail("Unhandled RSA signature padding.");
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
356Debug.Fail($"Unresolved SignerIdentifierType value: {SignerIdentifierType}");
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (2)
76Debug.Fail($"Unexpected _lastCall value: {_lastCall}"); 285Debug.Fail($"Unexpected _lastCall value: {_lastCall}");
System\Security\Cryptography\Pkcs\RecipientInfo.cs (1)
27Debug.Fail($"Illegal recipientInfoType: {type}");
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
69Debug.Fail($"AcceptResponse should have thrown or returned true (status={status})");
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
190Debug.Fail( 526Debug.Fail(
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
66Debug.Fail("Unable to decode the data we encoded");
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
270Debug.Fail($"TryCopyOctetStringBytes failed with an array larger than the encoded value");
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (4)
36Debug.Fail($"Illegal type passed to SubjectIdentifier: {type}"); 93Debug.Fail("Do not know how to decode value"); 131Debug.Fail($"Invalid SubjectIdentifierType: {Type}"); 166Debug.Fail($"No match logic for SubjectIdentifierType {Type}");
System\Security\Cryptography\Pkcs\SubjectIdentifierOrKey.cs (1)
31Debug.Fail($"Illegal type passed to SubjectIdentifierOrKey: {type}");
System.Text.Encoding.CodePages (1)
System\Text\ISO2022Encoding.cs (1)
314Debug.Fail("[ISO2022Encoding.GetChars] had unexpected code page");
System.Text.Encodings.Web (10)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeDebug.cs (6)
15Debug.Fail($"The value {ToHexString(codePoint)} is not a valid BMP code point."); 24Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 high surrogate code point."); 33Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 low surrogate code point."); 42Debug.Fail($"The value {ToHexString(codePoint)} is not a valid Unicode code point."); 51Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid Unicode scalar value."); 60Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid supplementary plane Unicode scalar value.");
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (2)
114Debug.Fail("We should've had enough room to write 4 bytes."); 191Debug.Fail("We should've had enough room to write 4 chars.");
System\ThrowHelper.cs (2)
74Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 89Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
System.Text.Json (51)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
82Debug.Fail($"Unexpected state {state}");
System\ReflectionExtensions.cs (1)
156Debug.Fail("Unreachable code");
System\Text\Json\Document\JsonDocument.cs (4)
194Debug.Fail( 786Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 832Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 1127Debug.Fail($"Expected only complex children but got {curr.ValueKind}");
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
328Debug.Fail($"Unable to find expected {lookupType} token");
System\Text\Json\Document\JsonElement.cs (1)
1672Debug.Fail($"No handler for {nameof(JsonTokenType)}.{TokenType}");
System\Text\Json\Nodes\JsonArray.cs (1)
126Debug.Fail("Impossible case");
System\Text\Json\Nodes\JsonObject.cs (1)
224Debug.Fail("Impossible case");
System\Text\Json\Reader\JsonReaderHelper.cs (1)
68Debug.Fail($"No mapping for token type {tokenType}");
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
268Debug.Fail("Throw helper should have thrown an exception.");
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (1)
71Debug.Fail("Unrecognized F# type.");
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
62Debug.Fail("End array token not found.");
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (2)
92Debug.Fail("Property name expected."); 105Debug.Fail("End object token not found.");
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (1)
60Debug.Fail("Unexpected token type for primitive value.");
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (2)
50Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter."); 114Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter.");
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
448Debug.Fail("should not have been reached.");
System\Text\Json\Serialization\JsonConverter.cs (2)
108Debug.Fail("Should not be reachable."); 115Debug.Fail("Should not be reachable.");
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (3)
59Debug.Fail("Unexpected PolymorphicSerializationState."); 131Debug.Fail("Unexpected PolymorphicSerializationState."); 178Debug.Fail("Unexpected ReferenceHandlingStrategy.");
System\Text\Json\Serialization\JsonConverterFactory.cs (12)
55Debug.Fail("We should never get here."); 67Debug.Fail("We should never get here."); 79Debug.Fail("We should never get here."); 86Debug.Fail("We should never get here."); 93Debug.Fail("We should never get here."); 100Debug.Fail("We should never get here."); 107Debug.Fail("We should never get here."); 118Debug.Fail("We should never get here."); 129Debug.Fail("We should never get here."); 136Debug.Fail("We should never get here."); 150Debug.Fail("We should never get here."); 157Debug.Fail("We should never get here.");
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
345Debug.Fail("Only FieldInfo and PropertyInfo members are supported."); 444Debug.Fail($"Invalid MemberInfo type: {memberInfo.MemberType}");
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
441Debug.Fail($"Unknown value of JsonIgnoreCondition '{ignoreCondition}'");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1352Debug.Fail($"Unexpected class type: {converter.ConverterStrategy}");
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
106Debug.Fail("We shouldn't be here if there are more than 4 parameters.");
System\Text\Json\ThrowHelper.cs (5)
329Debug.Fail("Unknown encoding."); 510Debug.Fail($"The ExceptionResource enum value: {resource} is not part of the switch. Add the appropriate case and exception message."); 644Debug.Fail($"The ExceptionResource enum value: {resource} is not part of the switch. Add the appropriate case and exception message."); 706Debug.Fail($"The NumericType enum value: {numericType} is not part of the switch. Add the appropriate case and exception message."); 734Debug.Fail($"The DataType enum value: {dataType} is not part of the switch. Add the appropriate case and exception message.");
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (2)
98Debug.Fail("Unexpected OperationStatus return value."); 266Debug.Fail("Unexpected OperationStatus return value.");
System\ThrowHelper.cs (2)
74Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 89Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
System.Text.Json.SourceGeneration (4)
Helpers\RoslynExtensions.cs (1)
277Debug.Fail("unexpected syntax kind");
JsonSourceGenerator.Emitter.cs (1)
224Debug.Fail($"Unexpected class type {typeGenerationSpec.ClassType}");
JsonSourceGenerator.Parser.cs (1)
1436Debug.Fail("Method given an invalid symbol type.");
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
82Debug.Fail($"Unexpected state {state}");
System.Text.RegularExpressions (26)
System\Text\RegularExpressions\RegexCompiler.cs (3)
490Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 2823Debug.Fail($"Unexpected node type: {node.Kind}"); 5263Debug.Fail("We should never get here. This method should only be called if CanEmitIndexOf returned true, and all of the same cases should be covered.");
System\Text\RegularExpressions\RegexInterpreter.cs (1)
1142Debug.Fail($"Unimplemented state: {_operator:X8}");
System\Text\RegularExpressions\RegexInterpreterCode.cs (1)
117Debug.Fail($"Unknown opcode: {opcode}");
System\Text\RegularExpressions\RegexNode.cs (5)
193Debug.Fail($"Unexpected type: {Kind}"); 228Debug.Fail("All Group nodes should have been removed."); 284Debug.Fail($"Unexpected node type: {node.Kind}"); 2359Debug.Fail($"Unknown node: {Kind}"); 2496Debug.Fail($"Unknown node: {Kind}");
System\Text\RegularExpressions\RegexParser.cs (2)
421Debug.Fail($"Unexpected char {ch}"); 479Debug.Fail($"Unexpected char {ch}");
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1094Debug.Fail($"Unexpected node {node.Kind}");
System\Text\RegularExpressions\RegexReplacement.cs (1)
77Debug.Fail($"Unexpected child kind {child.Kind}");
System\Text\RegularExpressions\RegexWriter.cs (1)
447Debug.Fail($"Unexpected node: {nodeType}");
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
196Debug.Fail(description);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
360Debug.Fail($"{nameof(Transform)}:{node._kind}");
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
462Debug.Fail($"Unexpected reversal kind: {_optimizedReversalInfo.Kind}"); 1093Debug.Fail("No nullable state found in the set of end states");
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (7)
1345Debug.Fail($"{nameof(CreateDerivative)}:{_kind}"); 1406Debug.Fail($"{nameof(StripEffects)}:{_kind}"); 1516Debug.Fail($"{nameof(StripAndMapEffects)}:{_kind}"); 1764Debug.Fail($"{nameof(ToStringHelper)}:{_kind}"); 1892Debug.Fail($"{nameof(CollectSets)}:{_kind}"); 1961Debug.Fail("Should only happen if a reversed regex is reversed again, which isn't expected"); 2049Debug.Fail($"{nameof(ComputeStartSet)}:{kind}");
System.Text.RegularExpressions.Generator (13)
RegexGenerator.Emitter.cs (4)
793Debug.Fail($"Unexpected mode: {regexTree.FindOptimizations.FindMode}"); 1033Debug.Fail($"Unexpected mode: {opts.FindMode}"); 2955Debug.Fail($"Unexpected node type: {node.Kind}"); 5434Debug.Fail("This shouldn't happen, as we should only get to the point of emitting code if RegexOptions was valid.");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (5)
193Debug.Fail($"Unexpected type: {Kind}"); 228Debug.Fail("All Group nodes should have been removed."); 284Debug.Fail($"Unexpected node type: {node.Kind}"); 2359Debug.Fail($"Unknown node: {Kind}"); 2496Debug.Fail($"Unknown node: {Kind}");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
421Debug.Fail($"Unexpected char {ch}"); 479Debug.Fail($"Unexpected char {ch}");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1094Debug.Fail($"Unexpected node {node.Kind}");
UpgradeToGeneratedRegexCodeFixer.cs (1)
311Debug.Fail($"Unknown parameter: {parameterName}");
System.Threading.Channels (7)
System\Threading\Channels\AsyncOperation.cs (2)
17private static void AvailableSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation<>)}.{nameof(AvailableSentinel)} invoked with {s}"); 21private static void CompletedSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation<>)}.{nameof(CompletedSentinel)} invoked with {s}");
System\Threading\Channels\BoundedChannel.cs (1)
684Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\RendezvousChannel.cs (1)
478Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (1)
391Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\UnboundedChannel.cs (1)
323Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
329Debug.Fail($"Unexpected operation: {state.Value}");
System.Threading.Tasks.Dataflow (7)
Base\DataflowBlock.cs (4)
312Debug.Fail("A message should never be postponed when no source has been provided"); 316Debug.Fail("The message should never be missed, as it's offered to only this one target"); 596Debug.Fail("The message should never be missed, as it's offered to only this one target"); 1310Debug.Fail("Invalid linking cleanup reason specified.");
Blocks\BroadcastBlock.cs (1)
810Debug.Fail("Messages from a Broadcast should never be missed.");
Blocks\TransformManyBlock.cs (1)
295Debug.Fail("The task should have been in a final state.");
Internal\SourceCore.cs (1)
622Debug.Fail("The target did not follow the protocol.");
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\Parallel.cs (1)
2706Debug.Fail("PartitionerForEach: illegal body type in Partitioner handler");
System\Threading\Tasks\ParallelLoopState.cs (3)
43Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod); 100Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod); 148Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod);
System.Transactions.Local (24)
System\Transactions\Enlistment.cs (2)
177Debug.Fail("PromotableSinglePhaseNotification called for a non promotable enlistment."); 249Debug.Fail("ResourceManagerIdentifier called for non durable enlistment");
System\Transactions\EnlistmentState.cs (8)
59Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 65Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 71Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 77Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 83Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 89Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 95Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 101Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}");
System\Transactions\InternalTransaction.cs (1)
327Debug.Fail("InternalTransaction.DistributedTransactionOutcome - Unexpected TransactionStatus");
System\Transactions\TransactionState.cs (13)
185Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 299Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 311Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 323Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 335Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 347Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 359Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 371Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 383Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 395Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 411Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 417Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 423Debug.Fail($"Invalid Event for State; Current State: {GetType()}");
System.Windows.Forms (197)
misc\ImageListUtils.cs (2)
34Debug.Fail("A property specified in the path is null or not yet instantiated at this time"); 41Debug.Fail("The path specified to the property is wrong");
System\Resources\ResXDataNode.cs (2)
308Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 441Debug.Fail($"Unexpected exception getting binary formatted data.");
System\Windows\Forms\Accessibility\AccessibleObject.cs (7)
592Debug.Fail(message); 785Debug.Fail("Not implemented. DocumentRangeInternal property should be overridden."); 802Debug.Fail("Not implemented. SupportedTextSelectionInternal property should be overridden."); 2842Debug.Fail($"{nameof(TryGetAccessibleObject)} got a child id of {id}"); 2850Debug.Fail($"{nameof(TryGetAccessibleObject)} got a multi selection"); 2870Debug.Fail("This should never happen"); 3296internal virtual void ScrollIntoView() => Debug.Fail($"{nameof(ScrollIntoView)}() is not overridden");
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (3)
256Debug.Fail("Label edit control cannot have a child element."); 316Debug.Fail("SetSelection start is out of text range."); 322Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (5)
184Debug.Fail("onlyNext && onlyPrevious are both set"); 190Debug.Fail("GC_WCH_FONLYNEXT or FONLYPREV used with CONTAINER or CONTAINED"); 200Debug.Fail("Bad GC_WCH"); 459Debug.Fail("Control is calling OnInPlaceDeactivate by itself"); 679Debug.Fail($"control {_controlInEditMode} did not reset its edit mode to null");
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (2)
98Debug.Fail($"Bad IPerPropertyBrowsing item [{i}], name={_names?[i] ?? "(unknown)"}"); 122Debug.Fail($"Failed to build IPerPropertyBrowsing editor. {ex.GetType().Name}, {ex.Message}");
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
151Debug.Fail(t.ToString()); 302Debug.Fail($"IPerPropertyBrowsing::GetPredefinedStrings(dispid={dispid}) failed: {hr}");
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (1)
53Debug.Fail(ex.Message);
System\Windows\Forms\ActiveX\AxHost.cs (19)
1304Debug.Fail("how did we ever get into the open state?"); 1336Debug.Fail("bad state"); 1436Debug.Fail("bad state"); 1460Debug.Fail(t.ToString()); 1528Debug.Fail("extremely naughty ctl is refusing to give us an hWnd... giving up..."); 1607Debug.Fail(t.ToString()); 1781Debug.Fail($"error in processMnemonic: {t}"); 1842Debug.Fail("Trying to reload with a OcxState that is of a different type."); 1898Debug.Fail("we got to have an old state which holds out scribble storage..."); 1917Debug.Fail("unknown storage type."); 2055Debug.Fail("unknown storage type"); 2632Debug.Fail($"Duplicate property with same name: {propName}"); 2777Debug.Fail("no implemented persistence interfaces on object"); 2844Debug.Fail("unknown storage type."); 2882Debug.Fail(t.ToString()); 2899Debug.Fail(t.ToString()); 2962Debug.Fail($"Failed to get instance in {nameof(ShowPropertyPageForDispid)}."); 3378Debug.Fail(t.ToString()); 3396Debug.Fail(ex.Message);
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
283Debug.Fail("we can't be in showobject if we own our window..."); 528Debug.Fail(ex.ToString());
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (1)
53Debug.Fail($"PropertyBagStream: {nameof(BinaryFormatter)} failed with {inner.Message}");
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
106Debug.Fail($"failure: {e}"); 122Debug.Fail($"failure: {e}");
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1120Debug.Fail($"Couldn't convert {currentProperty.Name} to string."); 1204Debug.Fail($"No ambient property for dispid {dispid}"); 1250Debug.Fail($"There is no property change notification for: {propName} on Control."); 1525Debug.Fail($"Failed to write with BinaryFormatWriter: {ex.Message}");
System\Windows\Forms\ActiveX\Control.ActiveXImpl.PropertyBagStream.cs (1)
39Debug.Fail(e.Message);
System\Windows\Forms\ActiveX\Control.ActiveXVerbEnum.cs (1)
36Debug.Fail("Caller of IEnumOLEVERB requested celt > 1, but clr marshalling does not support this.");
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
182Debug.Fail($"Unexpected exception thrown during Dispose: {ex.Message}");
System\Windows\Forms\Application.ParkingWindow.cs (2)
47Debug.Fail("How did parkingwindow childcount go negative???"); 58Debug.Fail("How did parkingwindow childcount go negative???");
System\Windows\Forms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
37Debug.Fail($"Don't know how to set type: {managedValue.GetType().Name}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
34Debug.Fail($"Failed to get IFont: {hr}"); 100Debug.Fail($"Failed to get IFont: {hr}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (5)
107Debug.Fail("No dot in class name?"); 118Debug.Fail($"Failed load attribute '{typeName}{assemblyName}'. It's Type could not be found."); 138Debug.Fail($"Couldn't load field '{fieldName}' from type '{typeName[..lastDot]}'. It does not exist or is not static"); 170Debug.Fail($"Attribute {type.FullName} did not have a initializer specified and has no default constructor"); 188Debug.Fail($"Attribute {type.FullName} did not have a initializer specified and has no default constructor");
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (2)
101Debug.Fail($"Bad IPerPropertyBrowsing item [{i}], name={_names?[i] ?? "(unknown)"}"); 152Debug.Fail($"Failed to build IPerPropertyBrowsing editor. {ex.GetType().Name}, {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
112Debug.Fail($"IPerPropertyBrowsing::GetPredefinedStrings(dispid={sender.DISPID}) failed.");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
30Debug.Fail("Property Browser doesn't support standard builders -- NYI");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
45Debug.Fail($"Failed to get IPicture: {hr}"); 74Debug.Fail("Unknown picture type"); 116Debug.Fail($"Unknown Image type: {managedValue.GetType().Name}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
69Debug.Fail($"Failed to show property frame: {hr}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
624Debug.Fail($"Failed to get property: {hr}"); 652Debug.Fail($"Could not convert the native value to a .NET object: {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (4)
416Debug.Fail($"ProcessFunctions failed with hr={ex.ErrorCode}, message={ex}"); 426Debug.Fail($"ProcessVariables failed with hr={ex.ErrorCode}, message={ex}"); 500Debug.Fail($"ITypeInfo::GetDocumentation didn't return a name for DISPID 0x{dispid:X} but returned SUCCEEDED(hr)"); 812Debug.Fail($"Failed to process type info enum. {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
158Debug.Fail(ex.Message); 316Debug.Fail("Failed to find Com2 properties key on dispose.");
System\Windows\Forms\Control.cs (1)
8351Debug.Fail($"Unknown PaintLayer {layer}");
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (6)
1042Debug.Fail($"Unsupported FlatStyle: \"{FlatStyle}\""); 1055Debug.Fail("Derived classes need to provide a meaningful implementation."); 1061Debug.Fail("Derived classes need to provide a meaningful implementation."); 1067Debug.Fail("Derived classes need to provide a meaningful implementation."); 1075Debug.Fail("Adapter not expected to be null at this point"); 1086Debug.Fail("Adapter not expected to be null at this point");
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
138Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString())); 169Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString()));
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
55Debug.Fail($"Unexpected control type '{Control.GetType().FullName}'");
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
323Debug.Fail("Text edit control cannot have a child element."); 389Debug.Fail("SetSelection start is out of text range."); 395Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1227Debug.Fail("Unexpected this.advancedCellBorderStyle.All value in CellBorderStyle.get");
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
603Debug.Fail("fail in debug builds so we can catch this situation in the check in suites"); 890Debug.Fail("we only care about which data fields are read only when we are data bound");
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (14)
1504Debug.Fail("DataGridView.AreAllCellsSelected - Shouldn't reach this code"); 2090Debug.Fail("Unexpected rowHeadersWidthSizeMode value in AutoResizeRowHeadersWidth"); 2252Debug.Fail("Unexpected rowHeadersWidthSizeMode value in AutoResizeRowHeadersWidth"); 6615Debug.Fail("Unexpected Displayed state for row"); 6765Debug.Fail("Unexpected Displayed state for column"); 8545Debug.Fail("Could not find column in GetColumnXFromIndex"); 9274Debug.Fail("Could not find row in GetRowYFromIndex"); 10422Debug.Fail("Unexpected autoSizeRowsMode value in MapAutoSizeRowsModeToRowMode"); 14772Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14834Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14875Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14881Debug.Fail("Unexpected DataGridViewElement type in DataGridView.OnDataGridViewElementStateChanging"); 16725Debug.Fail($"DataGridView.OnPaint exception: {ex.Message} stack trace {ex.StackTrace}"); 19331Debug.Fail("DataGridView.PaintBorder - Unexpected BorderStyle value.");
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3011Debug.Fail("there are only three choices for CurrentMouseLocation");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
287Debug.Fail("we can't compute the default cell style w/o a template cell");
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
386Debug.Fail("no column found in GetColumnAtDisplayIndex"); 1009Debug.Fail("Column should have been found in DataGridViewColumnCollection.Remove");
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
261Debug.Fail("we can't compute the default cell style w/o a template cell");
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
2075Debug.Fail("Unexpected cca value in DataGridViewRowCollection.OnCollectionChanged"); 2357Debug.Fail("Unexpected DataGridViewElementStates parameter in DataGridViewRowCollection.SetRowState.");
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
422Debug.Fail("Unknown color depth in ImageList");
System\Windows\Forms\Controls\ImageList\ImageList.NativeImageList.cs (2)
57Debug.Fail($"{nameof(NativeImageList)} could not be created. Originating stack:\n{_callStack}"); 107Debug.Fail($"{nameof(NativeImageList)} could not be duplicated. Originating stack:\n{_callStack}");
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2975Debug.Fail("ListView sunk dispose event from unknown component");
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (1)
31set => Debug.Fail("We should never set the image list");
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (1)
30set => Debug.Fail("We should never set the image list");
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
172Debug.Fail($"{nameof(row.WeekNumberCellAccessibleObject)} must not be null if ShowWeekNumbers is true in the Month view!");
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
374Debug.Fail($"Unsupported PictureBoxSizeMode value: {mode}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
239Debug.Fail(ex.ToString()); 1645Debug.Fail($"{nameof(CreatePropertyTab)} failed. {exception.Message}"); 1682Debug.Fail($"Failed to create {nameof(PropertyTab)}. {exception.Message}"); 2112Debug.Fail($"Failed to add a large property grid toolstrip button, {ex}"); 3704Debug.Fail("Failed to find the tab!"); 3936Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\AttributeTypeSorter.cs (1)
37Debug.Fail($"Attribute '{attribute.GetType().FullName}' does not have a typeid.");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1403Debug.Fail($"Failed to get properties: {e.GetType().Name},{e.Message}\n{e.StackTrace}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
134Debug.Fail($"TTM_ADDTOOL failed for {control.GetType().Name}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
147Debug.Fail(e.Message);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (10)
950Debug.Fail(e.ToString()); 1136Debug.Fail(ex.ToString()); 1181Debug.Fail(ex.ToString()); 1687Debug.Fail(ex.ToString()); 1753Debug.Fail(e.ToString()); 1862Debug.Fail("We have a bad client width!"); 3352Debug.Fail(ex.Message); 3379Debug.Fail(ex.Message); 4627Debug.Fail("Committing with no selected row!"); 4739Debug.Fail("Committing with no selected row!");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (2)
269Debug.Fail(ex.ToString()); 300Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
678Debug.Fail("RemoveToolTip should remove a toolTip that was set.");
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
572Debug.Fail("Invalid InsertKeyMode. This code path should have never been executed."); 1086Debug.Fail("Could not get IME input context."); 2876Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
88Debug.Fail("Text edit control cannot have a child element."); 417Debug.Fail("SetSelection start is out of text range."); 423Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
96Debug.Fail("No item matched the index??");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
687Debug.Fail("You can't set this except on ToolStripDropDownMenu"); 1916Debug.Fail($"Why are we being activated when we're not visible? Deactivating thing is {WindowsFormsUtils.GetControlInformation((HWND)(nint)m.LParamInternal)}");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
662Debug.Fail("Why are we here");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
189Debug.Fail("No item matched the index?");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (3)
732Debug.Fail("Why wasn't 'UpdateScrollButtonStatus called'? We don't have the item to scroll by"); 743Debug.Fail("We're trying to scroll up, but the top item is displayed!!!"); 758Debug.Fail("We're trying to scroll down, but the top item is displayed!!!");
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
343Debug.Fail("No item matched the index?");
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
186Debug.Fail("passed in bogus toolstrip, why?"); 955Debug.Fail("why are we passing null to GetMainMenuStrip?");
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
587Debug.Fail("why were we called to fetch native menu item info with nothing assigned?"); 607Debug.Fail("why were we called to fetch native menu item info with nothing assigned?"); 659Debug.Fail("Why were we called to fetch native menu item info with nothing assigned?");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (5)
774Debug.Fail("Move called on immovable object."); 1060Debug.Fail($"ToolStripPanelRow has not been assigned! Should be set to {i}."); 1064Debug.Fail($"Detected orphan cell! {cell.Control.Name} is in row {goodRowIndex}. It shouldn't have a cell in {i}! \r\n\r\nTurn on DEBUG_PAINT in ToolStripPanel and ToolStripPanelRow to investigate."); 1070Debug.Fail("why do we have a cell with a null control in this row?"); 1104Debug.Fail($@"OVERLAP detection:
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
64Debug.Fail("Somehow we've gotten ourself in a situation where we're pumping an unreasonable number of paint messages, investigate.");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (2)
120Debug.Fail("why was a negative number given to growControlsAfter?"); 152Debug.Fail("why was a negative number given to growControlsAfter?");
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
229Debug.Fail("Could not calculate the relative position for AllowItemReorder");
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
351Debug.Fail($"error in processMnemonic: {ex}"); 615Debug.Fail("bad state"); 656Debug.Fail("bad state");
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
119Debug.Fail($"Control {_controlInEditMode} did not reset its edit mode to null.");
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
342Debug.Fail(t.ToString());
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1148Debug.Fail("BindingSource.SetList() was called with illegal <null> list argument!");
System\Windows\Forms\Design\ComponentEditorForm.ComponentEditorPageSite.cs (1)
42Debug.Fail(e.ToString());
System\Windows\Forms\Dialogs\MessageBox.cs (1)
81Debug.Fail("Why are we being called when there's nothing to pop?");
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (1)
192Debug.Fail("Unknown ErrorIconAlignment value");
System\Windows\Forms\Help\Help.cs (1)
173Debug.Fail($"Cannot handle HTML parameter of type: {htmlParam!.GetType()}");
System\Windows\Forms\Layout\DefaultLayout.cs (1)
464Debug.Fail("Unsupported value for dock.");
System\Windows\Forms\Layout\LayoutUtils.cs (2)
529Debug.Fail("Unsupported value for region1Align."); 563Debug.Fail("Unsupported value for region1Align.");
System\Windows\Forms\NativeWindow.cs (1)
503Debug.Fail($"Can't find a default window procedure for message {m} on class {GetType().Name}");
System\Windows\Forms\Printing\PrintDialog.cs (1)
305Debug.Fail($"PrintDlg returned non zero error code: {extendedResult}");
System\Windows\Forms\Rendering\ControlPaint.cs (2)
360Debug.Fail("border style has no corresponding dash style"); 406Debug.Fail("Unsupported border style.");
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
116Debug.Fail("Called ResetGraphics more than once?");
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1731Debug.Fail("The passed in control is disposed.");
System.Windows.Forms.Design (143)
System\ComponentModel\Design\BinaryEditor.cs (3)
66Debug.Fail($"No conversion from {value?.GetType().FullName ?? "null"} to byte[]"); 91Debug.Fail($"No conversion from byte[] to {value?.GetType().FullName ?? "null"}"); 134Debug.Fail("Unable to get IHelpService.");
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
51Debug.Fail("Should never try to focus a PanelHeaderLine");
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
22public sealed override void Focus() => Debug.Fail("Should never try to focus a SeparatorLine");
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
35Debug.Fail("Should never try to focus a TextLine");
System\ComponentModel\Design\DesignerActionUI.cs (3)
60Debug.Fail("Either BehaviorService or ISelectionService is null, cannot continue."); 417Debug.Fail("related object is not an IComponent, something is wrong here..."); 431Debug.Fail("How can we add a DesignerAction glyphs when it's related object is not an IComponent?");
System\ComponentModel\Design\DesignerHost.cs (4)
96Debug.Fail("DesignerHost: Ctor needs a service provider that provides IServiceContainer"); 472Debug.Fail("DesignerHost: Ctor needs a service provider that provides IServiceContainer"); 786Debug.Fail("There are open transactions at unload"); 1113Debug.Fail($"Exception thrown on LoadComplete event handler. You should not throw here : {ex}");
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
324Debug.Fail($"Demand created service not supported: {serviceType.Name}");
System\ComponentModel\Design\InheritanceService.cs (1)
248Debug.Fail("Unknown member type passed to IgnoreInheritedMember");
System\ComponentModel\Design\ReferenceService.cs (1)
80Debug.Fail("Reference service cannot operate without IContainer");
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
59Debug.Fail($"No case for {data.GetType().Name}"); 264Debug.Fail($"Unable to resolve nested component: {name}"); 396Debug.Fail($"No statements or instance for name and no lone expressions: {name}");
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
745Debug.Fail("Called to create unknown service.");
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
86Debug.Fail("CodeDomSerializer::Deserialize requires a CodeExpression, CodeStatement or CodeStatementCollection to parse");
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (14)
145Debug.Fail("GetReflectionTypeFromTypeHelper does not accept null arguments."); 195Debug.Fail("GetReflectionTypeHelper does not accept null arguments."); 214Debug.Fail("GetPropertiesHelper does not accept null arguments."); 246Debug.Fail("GetEventsHelper does not accept null arguments."); 278Debug.Fail("GetAttributesHelper does not accept null arguments."); 300Debug.Fail("GetAttributesFromTypeHelper does not accept null arguments."); 1165Debug.Fail($"Unrecognized expression type: {result.GetType().Name}"); 1202Debug.Fail("Encountered delegate object create with more or less than 1 parameter?"); 1278Debug.Fail($"Unsupported binary operator type: {op}"); 1325Debug.Fail("Could not convert left or right side to binary-compatible value."); 1460Debug.Fail("Should never get here!"); 1477Debug.Fail("Addition operator not supported for this type"); 1482Debug.Fail("Math operators are not supported"); 2025Debug.Fail($"Unrecognized reflection type in instance descriptor: {descriptor.MemberInfo.GetType().Name}");
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
43Debug.Fail($"Collection of type {modified.GetType().FullName} doesn't return an enumerator"); 219Debug.Fail($"Collection serializer invoked for non-collection: {(value is null ? "(null)" : value.GetType().Name)}");
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
112Debug.Fail("Serialize is being called twice for the same component");
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
29Debug.Fail("Enum serializer called for non-enum object.");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
110Debug.Fail("ResourceCodeDomSerializer::Deserialize requires a CodeExpression, CodeStatement or CodeStatementCollection to parse");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (6)
125Debug.Fail("We expected to get IResourceService -- no resource serialization will be available"); 494Debug.Fail("Metadata not supported, but it's dirty?"); 506Debug.Fail("Couldn't find IResourceService"); 521Debug.Fail($"Cannot save a non-serializable value into resources. Add serializable to {(value is null ? "(null)" : value.GetType().Name)}"); 606Debug.Fail($"Cannot save a non-serializable value into resources. Add serializable to {(value is null ? "(null)" : value.GetType().Name)}"); 700Debug.Fail($"Unknown CompareValue {comparison}");
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
252Debug.Fail("Unrecognized code object in nametable.");
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
236Debug.Fail("UndoEngine: GetName is failing on successive calls");
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
136Debug.Fail("Failed to remove mouse hook.");
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (2)
54Debug.Fail("Could not get the BehaviorService from ContainerSelectorBehavior!"); 211Debug.Fail("Can't drag this Container! Either SelectionService is null or DesignerHost is null");
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
75Debug.Fail("Why are we trying to 'showui' on a glyph that's not a DesignerActionGlyph?");
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
151Debug.Fail("Cannot get DesignerHost or BehaviorService"); 986Debug.Fail("Unknown snapline filter type");
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (11)
83Debug.Fail("DragBehavior could not be created because the source ServiceProvider was not found"); 90Debug.Fail("DragBehavior could not be created because the BehaviorService was not found"); 96Debug.Fail("There are no component to drag!"); 103Debug.Fail("DragBehavior could not be created because the srcHost could not be found"); 304Debug.Fail("EndDragDrop - how can serviceProviderTarget be null?"); 308Debug.Fail("EndDragDrop - how can serviceProviderTarget be null?"); 315Debug.Fail("EndDragDrop - how can destHost be null?"); 319Debug.Fail("EndDragDrop - how can destHost be null?"); 326Debug.Fail("EndDragDrop - how can behaviorServiceTarget be null?"); 330Debug.Fail("EndDragDrop - how can behaviorServiceTarget be null?"); 415Debug.Fail("Couldn't create copies of the controls we are dragging.");
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
224Debug.Fail($"Initiating resize. Could not get the designer for {_resizeComponents[i].resizeControl}");
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
39Debug.Fail("BehaviorService could not be found!"); 193Debug.Fail($"Can't find style {moveIndex}"); 352Debug.Fail("Can't resize - no propertyescriptor for column");
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
132Debug.Fail("Unknown FlatStyle"); 153Debug.Fail("Unknown FlatStyle"); 184Debug.Fail("Unknown FlatStyle"); 213Debug.Fail("Unknown FlatStyle");
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
153Debug.Fail("NOTIMPL"); 162Debug.Fail("NOTIMPL");
System\Windows\Forms\Design\CommandSet.cs (3)
303Debug.Fail("non-CLS compliant exception"); 780Debug.Fail($"Unknown command mapped to OnKeyMove: {cmd}"); 1088Debug.Fail($"Unrecognized command: {id}");
System\Windows\Forms\Design\ComponentTray.cs (5)
534Debug.Fail("Don't know how to add component!"); 549Debug.Fail("component is not IComponent"); 988Debug.Fail("Anything we're extending should have a component view."); 1568Debug.Fail("Anything we're extending should have a component view."); 2380Debug.Fail(e.Message);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (3)
55Debug.Fail("Unable to find a CodeDom serializer for 'Component'. Has someone tampered with the serialization providers?"); 154Debug.Fail("Unable to find a CodeDom serializer for 'Component'. Has someone tampered with the serialization providers?"); 384Debug.Fail($"Unsupported statement ordering: {ordering}");
System\Windows\Forms\Design\ControlCommandSet.cs (1)
594Debug.Fail($"Unknown command mapped to OnKeySize: {cmd}");
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
845Debug.Fail("we should have found a type by now");
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1707Debug.Fail("Failed to select new project-level data source in DesignBindingPicker tree.");
System\Windows\Forms\Design\DesignerUtils.cs (1)
735Debug.Fail("Invalid parameter passed to DesignerUtils.CopyObjects.");
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
137Debug.Fail($"Could not create type: {e}");
System\Windows\Forms\Design\DocumentDesigner.cs (4)
74Debug.Fail("AutoScaleDimensions should not be shadowed on non-ContainerControl objects."); 99Debug.Fail("AutoScaleMode should not be shadowed on non-ContainerControl objects."); 1023Debug.Fail($"Called back to create a service we don't know how to create: {serviceType.Name}"); 1035Debug.Fail("Toolbox service didn't pass us a data object; that should never happen");
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
50Debug.Fail("Unknown member type passed to IgnoreInheritedMember");
System\Windows\Forms\Design\EditorServiceContext.cs (2)
113Debug.Fail("NOTIMPL"); 119Debug.Fail("NOTIMPL");
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
193Debug.Fail("why did base.AddPaddingSnapLines return null?");
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
29Debug.Fail("Unable to find a CodeDom serializer for 'Component'. Has someone tampered with the serialization providers?");
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
158Debug.Fail("A property specified in the path is null or not yet instantiated at this time."); 165Debug.Fail("The path specified to the property is wrong.");
System\Windows\Forms\Design\LabelDesigner.cs (3)
88Debug.Fail("Who removed GetLeadingTextPaddingFromTextFormatFlags from Label?"); 112Debug.Fail("Unknown BorderStyle"); 128Debug.Fail("Unknown BorderStyle");
System\Windows\Forms\Design\MaskDescriptorComparer.cs (3)
33Debug.Fail("One or more parameters invalid"); 43Debug.Fail("Invalid SortType, defaulting to SortType.ByName"); 74Debug.Fail("Null maskDescriptor passed.");
System\Windows\Forms\Design\MaskDesignerDialog.cs (4)
46Debug.Fail("Null masked text box, creating default."); 411Debug.Fail("Could not find mask descriptor."); 442Debug.Fail("Could not find custom mask descriptor."); 667Debug.Fail("Unable to get IHelpService.");
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
126Debug.Fail("Unknown RejectionHint, defaulting to InvalidInput...");
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
35Debug.Fail("could not get either ITypeDiscoveryService or IUIService");
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
329Debug.Fail("selectionHandler should not be null"); 599Debug.Fail("selectionHandler should not be null"); 709Debug.Fail("data object didn't return any data, so how did we allow the drop?"); 1009Debug.Fail("selectionHandler should not be null");
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
339Debug.Fail("why did base.SnapLines return null?"); 1243Debug.Fail("Couldn't get the parent instance from 'defaultValues'"); 1249Debug.Fail("Failed to IDesignerHost"); 1255Debug.Fail($"Could not get ParentControlDesigner for {parent}");
System\Windows\Forms\Design\SelectionUIService.cs (5)
923Debug.Fail("A component may have only one selection UI handler."); 955Debug.Fail("Caller is starting a drag, but there is already one in progress -- we cannot nest these!"); 961Debug.Fail("Caller is starting requesting a drag with no drag rules."); 1142Debug.Fail(e.ToString()); 1234Debug.Fail("The component is not currently selected.");
System\Windows\Forms\Design\StyleEditorForm.cs (1)
795Debug.Fail("Unsupported SizeType");
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1620Debug.Fail("Unknown SizeType!"); 1968Debug.Fail("Our indices are outta whack, how did that happen?"); 2013Debug.Fail("Unknown SizeType!");
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
51Debug.Fail("Unknown borderstyle");
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (1)
14Debug.Fail("why were we passed a non winbar?");
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
668Debug.Fail("Unexpected list box item painted!"); 687Debug.Fail("Unexpected combo box item!"); 696Debug.Fail("Unexpected sender calling DrawItem");
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
718Debug.Fail("Couldn't get designer host!"); 1060Debug.Fail("Couldn't get designer host!");
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
769Debug.Fail("Couldn't get designer host!"); 844Debug.Fail("Couldn't get designer host!");
System.Windows.Forms.Primitives (6)
System\Drawing\ImageExtensions.cs (1)
54Debug.Fail($"Invalid image type {type}");
System\Windows\Forms\Automation\UiaTextRange.cs (2)
290Debug.Fail("Invalid text range argument. 'text' should not be null."); 297Debug.Fail("Invalid text range argument. 'text' length should be more than 0.");
System\Windows\Forms\Internals\ScaleHelper.cs (1)
420Debug.Fail("Unexpected DPI state.");
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
33Debug.Fail("Full support for DPI_AWARENESS_CONTEXT and mixed mode DPI_HOSTING_BEHAVIOR on the thread is only available after the RS4 OS release");
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
37Debug.Fail($"Module File Name is greater than {short.MaxValue}.");
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
348Debug.Fail("Unsupported parameters");
System.Xaml (11)
System\Xaml\InfosetObjects\XamlNodes.cs (2)
50Debug.Fail("XamlNode Ctor missing data argument"); 87Debug.Fail("XamlNode ctor, incorrect ctor called.");
System\Xaml\Parser\NodeStreamSorter.cs (1)
668Debug.Fail("Missing End Object in node sorter");
System\Xaml\Schema\Reflector.cs (5)
115Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 161Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 195Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 242Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 330Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}");
System\Xaml\XamlMember.cs (1)
983Debug.Fail("Enum out of range");
System\Xaml\XamlObjectReader.cs (1)
3304Debug.Fail("Invalid enum value");
System\Xaml\XamlType.cs (1)
1782Debug.Fail("Enum out of range");
Test.Utilities (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Text.Analyzers (11)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
UIAutomationClient (14)
MS\Internal\Automation\CacheHelper.cs (3)
99Debug.Fail("Internal error: got malformed tree description string (extra chars at end)"); 105Debug.Fail("Internal error: mismatch between count of property buckets and nodes claiming them"); 225Debug.Fail("Internal error: Got malformed tree description string, missing closing paren");
MS\Internal\Automation\ClientEventManager.cs (1)
461Debug.Fail("GetNewRootTracker internal error: Unexpected Tracker value!");
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
375Debug.Fail("unexpected switch() case:"); 1418Debug.Fail("too many children or inf loop?"); 1876Debug.Fail("too many children or inf loop?");
MS\Internal\Automation\Misc.cs (1)
149Debug.Fail("missing client-side pattern wrapper");
MS\Internal\Automation\ProxyManager.cs (1)
681Debug.Fail("unexpected switch() case:");
MS\Internal\Automation\Schema.cs (1)
68Debug.Fail("GetDefaultValue was passed an unknown property");
MS\Internal\Automation\UiaCoreApi.cs (4)
240Debug.Fail("unsupported property should not have made it this far"); 643Debug.Fail("Got unknown eventId from core: " + args._eventId); 661Debug.Fail("Got unknown propertyId from core: " + pcargs._propertyId); 702Debug.Fail("Unknown event type from core:" + args._type);
UIAutomationClientSideProviders (14)
MS\Internal\AutomationProxies\Accessible.cs (3)
916System.Diagnostics.Debug.Fail("Call to AccessibleChildren() returned E_INVALIDARG."); 1370Debug.Fail(string.Format(CultureInfo.CurrentCulture, "MsaaNativeProvider: IAccessible threw a COMException: {0}", e.Message)); 1387Debug.Fail(string.Format(CultureInfo.CurrentCulture, "Unexpected IAccessible exception: {0}", e));
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
127Debug.Fail("MsgWaitForMultipleObjects failed while WaitForWork");
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
556Debug.Fail("WindowsEditBox.GetObject unexpected return value");
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (2)
411System.Diagnostics.Debug.Fail("Cannot add item to the needed group"); 436System.Diagnostics.Debug.Fail("Cannot add item to the needed group");
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
47System.Diagnostics.Debug.Fail("The listview item on the Start Menu has an unexpected IAccessible role!");
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1350System.Diagnostics.Debug.Fail("Cannot find back the accelerator in the menu!");
MS\Internal\AutomationProxies\WindowsTab.cs (1)
1177System.Diagnostics.Debug.Fail("XSendMessage.GetItem() failed!");
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (1)
47System.Diagnostics.Debug.Fail("Unexpected role " + role);
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (1)
41System.Diagnostics.Debug.Fail("Unexpected role " + role);
MS\Internal\AutomationProxies\WinEventTracker.cs (2)
264Debug.Fail("Exception raising event " + eventId + " for prop " + ecp._idProp + " on hwnd " + hwnd + "\n" + e.Message); 309Debug.Fail("Exception raising event " + eventId + " for prop " + ecp._idProp + " on hwnd " + hwnd + "\n" + e.Message);
UIAutomationTypes (1)
System\Windows\Automation\AutomationIdentifier.cs (1)
168default: Debug.Fail("Invalid type specified for AutomationIdentifier");
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
1603Debug.Fail("Unknown FocusNavigationDirection");
System\Windows\Integration\WindowsFormsHost.cs (1)
869Debug.Fail("Unknown FocusNavigationDirection");