1784 references to Fail
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
377Debug.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);
http2cat (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
illink (11)
ILLink.RoslynAnalyzer (3)
IOperationExtensions.cs (1)
100 Debug.Fail ("Unhandled declaration pattern context");
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
408 Debug.Fail ("Unreachable.");
TrimAnalysis\ParameterProxy.cs (1)
31 Debug.Fail ($"Unexpected RefKind {Method.Method.Parameters[MetadataIndex].RefKind} found on parameter {GetDisplayName ()}");
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 (2)
Circuits\CircuitRegistry.cs (1)
276Debug.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)
177Debug.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)
345Debug.Fail($"Unexpected header type: {headerType}"); 814Debug.Fail("Unexpected header parsing state.");
Internal\Infrastructure\HttpUtilities.cs (1)
465Debug.Fail("Unexpected HttpVersion: " + httpVersion);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.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)
177Debug.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 (12)
BackEnd\Shared\TargetResult.cs (1)
150Debug.Fail($"Unknown enum value: {ResultCode}");
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
191Debug.Fail("Unexpected finalization. Dispose should already have been called.");
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
Instance\ProjectItemInstance.cs (2)
1165Debug.Fail($"metadatum from {_itemDefinitions[i]} is null, see https://github.com/dotnet/msbuild/issues/5267"); 1181Debug.Fail("metadatum in _directMetadata is null, see https://github.com/dotnet/msbuild/issues/5267");
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Utilities\Utilities.cs (4)
676Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected: property is null"); 680Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected property {item} of type {item?.GetType().ToString()}"); 834Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected: {nameof(item)} is null"); 838Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected {nameof(item)} {item} of type {item?.GetType().ToString()}");
Microsoft.Build.Engine.OM.UnitTests (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
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.Framework.UnitTests (3)
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.Tasks.CodeAnalysis (2)
RCWForCurrentContext.cs (1)
72Debug.Fail("This object requires explicit call to Dispose");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
Microsoft.Build.Tasks.Core (35)
BootstrapperUtil\BootstrapperBuilder.cs (10)
552Debug.Fail(ex.Message); 577Debug.Fail("Already found resources for culture " + stringNode.InnerText); 817Debug.Fail("Could not locate schema '" + schemaPath + "', so no validation of '" + filePath + "' is possible."); 826Debug.Fail("Could not locate data file '" + filePath + "'."); 854Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 859Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 1052Debug.Fail(ex.Message); 1056Debug.Fail(ex.Message); 1060Debug.Fail(ex.Message); 1894Debug.Fail(ex.Message);
BootstrapperUtil\PackageCollection.cs (1)
39Debug.Fail("Package with culture " + package.Culture + " has already been added.");
BootstrapperUtil\Product.cs (1)
34Debug.Fail("Products are not to be created in this fashion. Please use IBootstrapperBuilder.Products instead.");
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
GenerateResource.cs (2)
3047Debug.Fail("Unknown format " + format.ToString()); 3342Debug.Fail("Unknown format " + format.ToString());
ManifestUtil\ConvertUtil.cs (2)
29Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}, returning {2}", value, typeof(bool).Name, defaultValue.ToString())); 33Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}, returning {2}", value, typeof(bool).Name, defaultValue.ToString()));
ManifestUtil\Manifest.cs (3)
774Debug.Fail("Comparing null objects"); 782Debug.Fail("Objects do not have a SortName"); 789Debug.Fail("Comparing objects that are not BaseReferences");
ManifestUtil\Util.cs (3)
613Debug.Fail("Comparing null objects"); 618Debug.Fail("Comparing objects that are not ITaskItem"); 625Debug.Fail("Objects do not have a ItemSpec");
ManifestUtil\XmlUtil.cs (1)
194Debug.Fail(String.Format(CultureInfo.CurrentCulture, "ResourceResolver could not find file '{0}'", filename));
ResolveManifestFiles.cs (8)
1000Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}", value, "PublishState")); 1004Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}", value, "PublishState")); 1039Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.DataFile is invalid for an assembly")); 1046Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString())); 1076Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.Prerequisite is invalid for a file")); 1079Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString())); 1106Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.DataFile is invalid for an assembly")); 1113Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString()));
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.UnitTests.Shared (2)
DummyMappedDrive.cs (2)
57Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString()); 70Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString());
Microsoft.Build.Utilities.Core (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2993Debug.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)
30Debug.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)
291Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 329Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
291Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 329Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
24Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
112Debug.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.");
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
42Debug.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)
50Debug.Fail("Could not get analyzer");
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\ThrowHelper.cs (2)
291Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 329Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Conversions.cs (1)
2924Debug.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\LocalRewriter\LocalRewriter_LockStatement.cs (1)
47Debug.Fail("We should have reported an error during binding if lock type info cannot be found.");
Lowering\MethodToClassRewriter.cs (1)
70Debug.Fail($"Override the visitor for {node.Kind}");
Operations\CSharpOperationFactory.cs (1)
2132Debug.Fail($"Unexpected syntax: {kind}");
Operations\CSharpOperationFactory_Methods.cs (1)
64Debug.Fail($"Unexpected syntax kind: {syntax.Kind()}");
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
237Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 243Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 400Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 420Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 429Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 440Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 472Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 481Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 500Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
785Debug.Fail("Unhandled pattern type");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
60Debug.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)
87Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 206Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.Features (8)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
154Debug.Fail("Unexpected state?");
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
60Debug.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)
87Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 206Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
237Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 243Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 400Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 420Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 429Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 440Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 472Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 481Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 500Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
785Debug.Fail("Unhandled pattern type");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
Microsoft.CodeAnalysis.EditorFeatures (4)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (3)
101Debug.Fail("The closing point was not found at the expected position."); 175Debug.Fail("Unable to clear braces"); 248Debug.Fail("Unable to clear closing brace");
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
144Debug.Fail("This should not be possible. Caller would have seen this item when calling TryUseCache");
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.EditorFeatures.Wpf (5)
InlineRename\UI\Dashboard\RenameShortcutKeys.cs (1)
43Debug.Fail("Could not locate accelerator for " + localizedLabel + " for the rename dashboard");
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)
137Debug.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.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.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)
30Debug.Fail(message.ToStringAndClear());
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)
188Debug.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)
169Debug.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)
584Debug.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)
42Debug.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)
50Debug.Fail("Could not get analyzer");
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (1)
484Debug.Fail("Unexpected error");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
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)
42Debug.Fail($"Request for solution-checksum '{solutionChecksum}' that was not pinned on the host side.");
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\TestExceptionUtilities.cs (1)
16System.Diagnostics.Debug.Fail(output);
Compilation\TestOperationVisitor.cs (1)
859Debug.Fail($"Language {operation.Language} is unknown!");
Microsoft.CodeAnalysis.Workspaces (13)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.UnderlyingNamedTypeVisitor.cs (1)
39Debug.Fail($"Symbol case not handled: {symbol.Kind}");
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
92Debug.Fail("Previous container didn't map back to a normal accessor container."); 101Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 115Debug.Fail($"Unhandled member type in {nameof(GetPreviousBodyNode)}"); 124Debug.Fail("Member count shouldn't have changed as there were no top level edits.");
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
291Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 329Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
24Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
112Debug.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.");
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
55Debug.Fail("Sqlite failed to load: " + e);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
291Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 329Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CSharp (52)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (1)
27Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (1)
26Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (1)
27Debug.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)
91Debug.Fail("Shouldn't be here!"); 135Debug.Fail("Shouldn't be here!");
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (3)
60Debug.Fail("impossible sk"); 386Debug.Fail($"Bad symbol kind: {sym.getKind()}"); 532Debug.Fail("Bad type kind");
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (8)
206Debug.Fail("Invalid Predefined Method in VisitCALL"); 271Debug.Fail("How did we get a call that doesn't have a methodinfo?"); 408Debug.Fail("How did we get a prop that doesn't have a propinfo?"); 553Debug.Fail("Invalid Predefined Method in GenerateBinaryOperator"); 630Debug.Fail("Invalid Predefined Method in GenerateUserDefinedBinaryOperator"); 655Debug.Fail("Invalid Predefined Method in GenerateUnaryOperator"); 685Debug.Fail("Invalid Predefined Method in GenerateUserDefinedUnaryOperator"); 881Debug.Fail("Invalid Predefined Method in GetExpression");
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
562Debug.Fail("Unhandled kind"); 750Debug.Fail("Unexpected type returned from lookup"); 1014Debug.Fail("Unknown operator: " + p); 1176Debug.Fail("Unexpected type returned from lookup");
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
141Debug.Fail("Bad kind in CompareTypes");
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (2)
134Debug.Fail($"Bad type kind: {_typeDest.TypeKind}"); 207Debug.Fail("BindExplicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1190Debug.Fail("Unreachable");
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
149Debug.Fail($"Bad type symbol kind: {_typeSrc.TypeKind}"); 382Debug.Fail("bind(Im|Ex)plicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
216Debug.Fail("Shouldn't happen!"); 302Debug.Fail("Shouldn't happen!"); 1146Debug.Fail($"Bad op: {op}"); 1417Debug.Fail("Shouldn't happen!"); 1775Debug.Fail($"Bad kind: {ek}"); 2174Debug.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)
315Debug.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)
257Debug.Fail("Unknown type kind"); 372Debug.Fail("Bad Symbol kind in SubstEqualTypesCore"); 468Debug.Fail("Bad Symbol kind in TypeContainsType"); 507Debug.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."); 639Debug.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.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)
327Debug.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)
297Debug.Fail("Unknown category: " + category.ToString()); 338Debug.Fail("Symbol description should always contain LLT_PACKAGE node as first node"); 393Debug.Fail("Symbol description cannot contain more than one LLT_MEMBERS node.");
Library\ObjectBrowser\Helpers.cs (2)
39Debug.Fail("Unsupported list type: " + ((_LIB_LISTTYPE)listType).ToString()); 64Debug.Fail("Unsupported object list kind: " + kind.ToString());
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
54Debug.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)
438Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 444Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 450Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called."); 470Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.FilesChanged, this should not be called."); 515Debug.Fail("Since we're implementing IVsFreeThreadedFileChangeEvents2.DirectoryChangedEx2, this should not be called.");
ProjectSystem\Legacy\AbstractLegacyProject_IVsHierarchyEvents.cs (1)
24Debug.Fail("Failed to connect IVsHierarchyEvents");
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1240Debug.Fail("Attempting to change the name of a file in a Shared Project");
TaskList\ProjectExternalErrorReporter.cs (1)
127Debug.Fail("This is not implemented, because no one called it.");
Workspace\VisualStudioDocumentNavigationService.cs (2)
389Debug.Fail("Could not get IVsTextBuffer for document!"); 396Debug.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)
48Debug.Fail("Invalid symbol kind: " + symbol.Kind); 70Debug.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)}");
MSBuild (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
MSBuildTaskHost (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
470Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 477Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 484Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
6349Debug.Fail($"State machine checking for TypeConverter syntax has encountered an unexpected XamlNode type {tokenType}");
PresentationCore (28)
MS\Internal\Media\VisualTreeUtils.cs (3)
173Debug.Fail("How did a ray hit a Visual3D not parented to a Viewport3DVisual?"); 178Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 282Debug.Fail(String.Format(
System\Windows\dataobject.cs (1)
1675Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}");
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)
306Debug.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)
306Debug.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)
306Debug.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)
306Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\RepeatBehavior.cs (3)
186Debug.Fail("Unhandled RepeatBehaviorType"); 231Debug.Fail("Unhandled RepeatBehaviorType"); 297Debug.Fail("Unhandled RepeatBehaviorType.");
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
143Debug.Fail("Unknown type of RepeatBehavior passed to RepeatBehaviorConverter.");
System\Windows\Media3D\MeshGeometry3D.cs (2)
575Debug.Fail("Cached bounds are invalid. Caller needs to check for IsEmpty and call UpdateCachedBounds."); 579Debug.Fail("Cached bounds are invalid. We missed a call to SetCachedBoundsDirty.");
System\Windows\Media3D\Viewport3DVisual.cs (1)
626Debug.Fail("Cached bbox subgraph is incorrect!");
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
25Debug.Fail(ex.Message);
PresentationFramework (18)
MS\Internal\AppModel\JournalNavigationScope.cs (2)
303Debug.Fail("Tried to navigate to a null JournalEntry."); 308Debug.Fail("Tried to navigate to a non-navigable journal entry.");
MS\Internal\Controls\ActiveXSite.cs (2)
214Debug.Fail(t.ToString()); 357Debug.Fail(t.ToString());
MS\Internal\DataStreams.cs (2)
132Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 261Debug.Fail($"Unexpected exception reading binary formatted data. {ex.Message}");
System\Windows\Controls\DataGrid.cs (1)
5329Debug.Fail("Unknown SelectionUnit encountered.");
System\Windows\Controls\Frame.cs (1)
442Debug.Fail("UsesOwnJournal->Automatic transition should be blocked by CoerceJournalOwnership().");
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6565Debug.Fail($"Unexpected container type: {((container == null) ? "null" : container.GetType().Name)}");
System\Windows\Interop\ActiveXHost.cs (4)
429Debug.Fail("bad state"); 461Debug.Fail("how did we ever get into the open state?"); 485Debug.Fail("bad state"); 989Debug.Fail(e.ToString());
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
303Debug.Fail("No items where found and IsComposite return true");
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
195Debug.Fail("Unexpected property value type");
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
304Debug.Fail("Unknown animation type.");
System\Windows\Navigation\NavigationService.cs (2)
3844Debug.Fail("Could not find the finishing PageFunction in the journal."); 3901Debug.Fail($"Unhandled scenario: PageFunction returning to {parentEntry.GetType().Name}");
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
30Debug.Fail(message.ToStringAndClear());
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)
681Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 707Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 898Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 920Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 936Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 958Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 1096Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1123Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1182Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1333Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1360Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1439Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1929Debug.Fail("unknown pipeline type"); 2056Debug.Fail("unknown pipeline type"); 2127Debug.Fail("unknown pipeline type"); 2268Debug.Fail("unknown pipeline type"); 2308Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2395Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2461Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2523Debug.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 (9)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (6)
85Debug.Fail($"Failed to read \"{path}/memory.stat\": {e}"); 199Debug.Fail($"Failed to read \"{path}\": {e}"); 372Debug.Fail($"Unexpected cgroup version \"{cgroupVersion}\""); 386Debug.Fail($"Failed to read or parse \"{ProcMountInfoFilePath}\": {e}"); 458Debug.Fail($"Unexpected cgroup version: \"{cgroupVersion}\""); 465Debug.Fail($"Failed to read or parse \"{procCGroupFilePath}\": {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)
407Debug.Fail($"TryWrite failed or written was wrong value ({written} vs {spaceRequired})"); 883Debug.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)
108Debug.Fail( 125Debug.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.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)
444Debug.Fail("Unknown FileSystemEvent change type! Value: " + changeType);
System\IO\FileSystemWatcher.Linux.cs (1)
811Debug.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)
162Debug.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)
64Debug.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)
177Debug.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)
274Debug.Fail("'NotParsed' is unexpected: We started nested expression " + 284Debug.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)
166Debug.Fail("Unknown HttpConnectionKind in HttpConnectionPool.ctor");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
1275Debug.Fail($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 2079Debug.Fail($"Stream {http2Stream.StreamId} not found in dictionary during RemoveStream???"); 2149Debug.Fail($"Unexpected keep alive state ({_keepAliveState})");
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (5)
357Debug.Fail($"Unexpected exception type in Http3RequestStream.SendAsync: {ex}"); 584Debug.Fail($"Received unexpected frame type {frameType}."); 1027Debug.Fail(message); 1100Debug.Fail($"Unexpected {nameof(Http3RequestStream)}.{nameof(_headerState)} '{_headerState}'."); 1108Debug.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 (4)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
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)
29Debug.Fail("LogFailure should return false"); 418Debug.Fail("LogFailure should return false"); 460Debug.Fail("LogFailure should return false"); 490Debug.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 (1)
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.OpenSsl.cs (1)
483Debug.Fail("Failed to add issuer to trusted CA list.");
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
104Debug.Fail("Unable to load required type."); 133Debug.Fail("Unable to load required members.");
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 (126)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (3)
199Debug.Fail("Unhandled exceptions should be processed by the native runtime only"); 721Debug.Fail("unreachable"); 953Debug.Fail("unreachable");
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 (3)
945Debug.Fail("All primitive types should be handled above"); 1441Debug.Fail("All primitive types should be handled above"); 1668Debug.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)
4499Debug.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)
235Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleStringData)] Failed"); 260Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleNumberData)] failed"); 276Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleGroupingData type)] failed"); 314Debug.Fail("[CultureData.GetTimeFormatString(bool shortFormat)] Failed"); 493Debug.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"); 5186Debug.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"); 62Debug.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)
70Debug.Fail("Vector<T> isn't 128 or 256 bits in size?"); 82Debug.Fail("Vector<T> isn't 256 bits in size?"); 88Debug.Fail("Vector<T> is greater than 256 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)
2406Debug.Fail("Invalid m_action in Task"); 7451Debug.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)
1062Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 1244Debug.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)
169Debug.Fail(" WeakReference<T> finalizer should never run");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
175Debug.Fail("Pre-allocated full name should have been provided in the ctor");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (5)
365Debug.Fail("Expected to be unreachable"); 376Debug.Fail("Expected to be unreachable"); 387Debug.Fail("Expected to be unreachable"); 398Debug.Fail("Expected to be unreachable"); 409Debug.Fail("Expected to be unreachable");
src\System\Array.CoreCLR.cs (2)
154Debug.Fail("Fell through switch in Array.Copy!"); 760Debug.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)
2282default: Debug.Fail("Unreachable code"); break; 2291default: 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 (12)
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)
31Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}");
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
275Debug.Fail(e.ToString()); 483Debug.Fail("All mapped formats must be either restricted or not restricted.");
System\Value.cs (1)
69Debug.Fail($"Unexpected type {type.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.Windows.GdiPlus (3)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (3)
58Debug.Fail("We should be special casing FontFamilyNotFound so we can provide the font name"); 62Debug.Fail("We should be special casing FontStyleNotFound so we can provide the font name"); 66Debug.Fail("We should be special casing NotTrueTypeFont so we can provide the font name");
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)
404Debug.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)
1020Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1039Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1044Debug.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)
175Debug.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 (101)
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.EcKey.cs (1)
61Debug.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.EvpPkey.cs (2)
32Debug.Fail($"EVP_PKEY_bits returned non-positive value: {keySizeBits}"); 128Debug.Fail($"Unexpected return '{ret}' value from {nameof(CryptoNative_GetPkcs8PrivateKeySize)}.");
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 (2)
104Debug.Fail("Unable to load required type."); 133Debug.Fail("Unable to load required members.");
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\DSAKeyFormatHelper.cs (1)
281Debug.Fail("TryEncode failed with a pre-allocated buffer");
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\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)
199Debug.Fail("TryEncode failed with a pre-allocated buffer"); 229Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
519Debug.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)
69Debug.Fail($"GCM encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 117Debug.Fail($"GCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 130Debug.Fail("Key size should already be validated");
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
199Debug.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)
405Debug.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)
175Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded"); 241Debug.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\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)
530Debug.Fail($"Key was of no known type: {_key?.GetType().FullName ?? "null"}");
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
55Debug.Fail("Base64Decode failed, but PemEncoding said it was legal"); 375Debug.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)
1169Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code30); 1181Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code102); 1193Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code111); 1559Debug.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)
1094Debug.Fail("The contents should have already been validated by the PEM reader.");
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (4)
390Debug.Fail("The contents should have already been validated by the PEM reader."); 505Debug.Fail("Pre-allocated buffer was not the correct size."); 560Debug.Fail("Presized buffer is too small or did not write the correct amount."); 679Debug.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 (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
137Debug.Fail("TrySignData failed with a pre-calculated destination"); 158Debug.Fail("TrySignData failed with a pre-calculated destination");
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"); 88Debug.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)
202Debug.Fail("TryDecrypt wanted more space than the key size");
Internal\Cryptography\PkcsHelpers.cs (2)
249Debug.Fail($"Invalid recipientIdentifier type: {recipientIdentifierType}"); 350Debug.Fail($"Invalid hex character: {c}");
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
183Debug.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)
199Debug.Fail("TryEncode failed with a pre-allocated buffer"); 229Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
519Debug.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)
97Debug.Fail("Unhandled RSA signature padding.");
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
278Debug.Fail($"Unresolved SignerIdentifierType value: {SignerIdentifierType}");
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (2)
82Debug.Fail($"Unexpected _lastCall value: {_lastCall}"); 305Debug.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)
196Debug.Fail( 532Debug.Fail(
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
66Debug.Fail("Unable to decode the data we encoded");
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
271Debug.Fail($"TryCopyOctetStringBytes failed with an array larger than the encoded value");
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (4)
35Debug.Fail($"Illegal type passed to SubjectIdentifier: {type}"); 92Debug.Fail("Do not know how to decode value"); 125Debug.Fail($"Invalid SubjectIdentifierType: {Type}"); 160Debug.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 (46)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
85Debug.Fail($"Unexpected state {state}");
System\ReflectionExtensions.cs (1)
156Debug.Fail("Unreachable code");
System\Text\Json\Document\JsonDocument.cs (3)
197Debug.Fail( 831Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 877Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}");
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
328Debug.Fail($"Unable to find expected {lookupType} token");
System\Text\Json\Document\JsonElement.cs (1)
1677Debug.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)
200Debug.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\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)
456Debug.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)
1364Debug.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)
1430Debug.Fail("Method given an invalid symbol type.");
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
85Debug.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}"); 2355Debug.Fail($"Unknown node: {Kind}"); 2492Debug.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 (12)
RegexGenerator.Emitter.cs (4)
793Debug.Fail($"Unexpected mode: {regexTree.FindOptimizations.FindMode}"); 1033Debug.Fail($"Unexpected mode: {opts.FindMode}"); 2945Debug.Fail($"Unexpected node type: {node.Kind}"); 5424Debug.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}"); 2355Debug.Fail($"Unknown node: {Kind}"); 2492Debug.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}");
System.Threading.Channels (2)
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.Tasks.Dataflow (7)
Base\DataflowBlock.cs (4)
336Debug.Fail("A message should never be postponed when no source has been provided"); 340Debug.Fail("The message should never be missed, as it's offered to only this one target"); 620Debug.Fail("The message should never be missed, as it's offered to only this one target"); 1343Debug.Fail("Invalid linking cleanup reason specified.");
Blocks\BroadcastBlock.cs (1)
816Debug.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)
628Debug.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)
309Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 442Debug.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)
280Debug.Fail("we can't be in showobject if we own our window..."); 525Debug.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)
1121Debug.Fail($"Couldn't convert {currentProperty.Name} to string."); 1205Debug.Fail($"No ambient property for dispid {dispid}"); 1251Debug.Fail($"There is no property change notification for: {propName} on Control."); 1526Debug.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)
8288Debug.Fail($"Unknown PaintLayer {layer}");
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (6)
983Debug.Fail($"Unsupported FlatStyle: \"{FlatStyle}\""); 996Debug.Fail("Derived classes need to provide a meaningful implementation."); 1002Debug.Fail("Derived classes need to provide a meaningful implementation."); 1008Debug.Fail("Derived classes need to provide a meaningful implementation."); 1016Debug.Fail("Adapter not expected to be null at this point"); 1027Debug.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)
1231Debug.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"); 6617Debug.Fail("Unexpected Displayed state for row"); 6767Debug.Fail("Unexpected Displayed state for column"); 8547Debug.Fail("Could not find column in GetColumnXFromIndex"); 9276Debug.Fail("Could not find row in GetRowYFromIndex"); 10424Debug.Fail("Unexpected autoSizeRowsMode value in MapAutoSizeRowsModeToRowMode"); 14774Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14836Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14877Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14883Debug.Fail("Unexpected DataGridViewElement type in DataGridView.OnDataGridViewElementStateChanging"); 16730Debug.Fail($"DataGridView.OnPaint exception: {ex.Message} stack trace {ex.StackTrace}"); 19336Debug.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)
2963Debug.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)
375Debug.Fail($"Unsupported PictureBoxSizeMode value: {mode}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
239Debug.Fail(ex.ToString()); 1651Debug.Fail($"{nameof(CreatePropertyTab)} failed. {exception.Message}"); 1688Debug.Fail($"Failed to create {nameof(PropertyTab)}. {exception.Message}"); 2118Debug.Fail($"Failed to add a large property grid toolstrip button, {ex}"); 3710Debug.Fail("Failed to find the tab!"); 3942Debug.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)
1409Debug.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!"); 3337Debug.Fail(ex.Message); 3364Debug.Fail(ex.Message); 4618Debug.Fail("Committing with no selected row!"); 4730Debug.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)
669Debug.Fail("RemoveToolTip should remove a toolTip that was set.");
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
576Debug.Fail("Invalid InsertKeyMode. This code path should have never been executed."); 1090Debug.Fail("Could not get IME input context."); 2885Debug.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"); 1919Debug.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?"); 970Debug.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)
363Debug.Fail("border style has no corresponding dash style"); 409Debug.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 (140)
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"); 789Debug.Fail("There are open transactions at unload"); 1116Debug.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"); 2028Debug.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!"); 210Debug.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)
134Debug.Fail("Unknown FlatStyle"); 155Debug.Fail("Unknown FlatStyle"); 186Debug.Fail("Unknown FlatStyle"); 215Debug.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)
1710Debug.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."); 102Debug.Fail("AutoScaleMode should not be shadowed on non-ContainerControl objects."); 1035Debug.Fail($"Called back to create a service we don't know how to create: {serviceType.Name}"); 1047Debug.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)
90Debug.Fail("Who removed GetLeadingTextPaddingFromTextFormatFlags from Label?"); 114Debug.Fail("Unknown BorderStyle"); 130Debug.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."); 669Debug.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\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)
288Debug.Fail("Invalid text range argument. 'text' should not be null."); 295Debug.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)
349Debug.Fail("Unsupported parameters");
System.Xaml (8)
System\Xaml\Schema\Reflector.cs (5)
116Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 162Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 196Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 243Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 331Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}");
System\Xaml\XamlMember.cs (1)
983Debug.Fail("Enum out of range");
System\Xaml\XamlObjectReader.cs (1)
3305Debug.Fail("Invalid enum value");
System\Xaml\XamlType.cs (1)
1784Debug.Fail("Enum out of range");