2557 references to Fail
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
413Debug.Fail("Attempt to remove an unknown resource view model.");
Aspire.Hosting (1)
Dcp\OtlpEndpointReferenceGatherer.cs (1)
52Debug.Fail("Dashboard does not have any endpoints??");
dotnet (3)
Commands\Test\MTP\Terminal\FileUtilities.cs (1)
33Debug.Fail("Casing test failed: " + exc);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26375.102\contentFiles\cs\net11.0\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Telemetry\TelemetryClient.cs (1)
310Debug.Fail(e.ToString());
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (1)
310Debug.Fail(e.ToString());
dotnet-svcutil-lib (16)
Bootstrapper\SvcutilBootstrapper.cs (2)
67Debug.Fail($"The NoBootstrapping property is not set, this would cause infinite bootstrapping recursion!"); 73Debug.Fail("Bootstrapping is enabled for the bootstrapper! This would cause an infinite bootstrapping recursion!");
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (8)
830Debug.Fail("Unexpected parent NodeType"); 1135Debug.Fail("should never happen"); 1225Debug.Fail("should never happen"); 1320Debug.Fail("should never happen"); 1415Debug.Fail("should never happen"); 1510Debug.Fail("should never happen"); 1605Debug.Fail("should never happen"); 1700Debug.Fail("should never happen");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\LogicalExpr.cs (2)
324Debug.Fail("Unexpected Operator.op code in cmpNumberNumber()"); 336Debug.Fail("Unexpected Operator.op code in cmpNumberNumberO()");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingquery.cs (1)
100Debug.Fail("Algorithm error: we missed the centinel node");
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
79Debug.Fail("We managed to miss sentinel node (input)");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
669Debug.Fail("Couldn't find Namespace Node! Should not happen!");
Metadata\MetadataDocumentSaver.cs (1)
120Debug.Fail("Unknown metadata found: " + typeName);
GenerateDocumentationAndConfigFiles (12)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
60Debug.Fail("FixAllScope.ContainingMember and FixAllScope.ContainingType are not supported in CodeStyle layer");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
ILCompiler.Compiler (30)
Compiler\CompilerTypeSystemContext.GeneratedAssembly.cs (1)
66Debug.Fail("Resolving a TypeRef in the compiler generated assembly?");
Compiler\Dataflow\CompilerGeneratedState.cs (1)
449Debug.Fail("This should be impossible in valid code");
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
212Debug.Fail("Invalid IL or a bug in the scanner");
Compiler\Dataflow\TrimAnalysisTokenAccessPattern.cs (1)
39Debug.Fail($"Unsupported entity for reflection access pattern: {Entity}");
Compiler\DelegateCreationInfo.cs (1)
148Debug.Fail("Need to do runtime lookup");
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (3)
147Debug.Fail("Did we introduce a new overload?"); 196Debug.Fail("Did we introduce a new overload?"); 214Debug.Fail("Did we introduce a new overload?");
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (2)
386Debug.Fail("UNREACHABLE"); 433Debug.Fail("UNREACHABLE");
Compiler\DescriptorMarker.cs (1)
142Debug.Fail(member.GetType().ToString());
Compiler\HardwareIntrinsicHelpers.Aot.cs (2)
45Debug.Fail("Unsupported Architecture"); 97Debug.Fail("Unsupported Architecture");
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (1)
327Debug.Fail("Trying to operate with unsupported TypeSystemEntity " + entity.GetType().ToString());
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (1)
216Debug.Fail("Unknown variable location type");
Compiler\ObjectWriter\Eabi\EabiUnwindConverter.cs (1)
112Debug.Fail("Unknown register");
Compiler\UserDefinedTypeDescriptor.cs (1)
351Debug.Fail("Unhandled UserDefinedTypeDescriptor type: {type}");
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (2)
53Debug.Fail("CreateValueFromKey not supported"); 81Debug.Fail("CreateValueFromKey not supported");
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (2)
694Debug.Fail("Invalid RelocType: " + relocType); 819Debug.Fail("Invalid RelocType: " + relocType);
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (1)
56Debug.Fail("Probably unimplemented");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
394Debug.Fail("Unsupported architecture");
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
387Debug.Fail($"Unexpected TypeMapAttributeKind: {attrKind}");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
247Debug.Fail("Unexpected DelegateMarshallingMethodThunkKind.");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (1)
257Debug.Fail("Unexpected DelegateMarshallingMethodThunkKind");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (2)
100Debug.Fail("Unexpected Struct marshalling thunk type"); 122Debug.Fail("Unexpected Struct marshalling thunk type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
192Debug.Fail("Unexpectting setting value on non-byref arg");
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
525Debug.Fail("Unreachable.");
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.TypeForwarders.cs (1)
42Debug.Fail("Multi-module assemblies");
ILCompiler.ReadyToRun (17)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (1)
387Debug.Fail("Not possible to reach here");
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
868Debug.Fail("Unhandled form of type in VersionsWithTypeReference");
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (2)
53Debug.Fail("CreateValueFromKey not supported"); 81Debug.Fail("CreateValueFromKey not supported");
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Relocation.cs (2)
694Debug.Fail("Invalid RelocType: " + relocType); 819Debug.Fail("Invalid RelocType: " + relocType);
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (1)
56Debug.Fail("Probably unimplemented");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
394Debug.Fail("Unsupported architecture");
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
387Debug.Fail($"Unexpected TypeMapAttributeKind: {attrKind}");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
3517Debug.Fail("CorInfoImpl.runWithErrorTrap should not be called"); 3527Debug.Fail("CorInfoImpl.runWithSPMIErrorTrap should not be called");
src\runtime\src\coreclr\tools\Common\JitInterface\JitTypeNameFormatter.cs (2)
35Debug.Fail("Unexpected signature type variable in JitTypeNameFormatter"); 40Debug.Fail("Unexpected signature method variable in JitTypeNameFormatter");
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (1)
217Debug.Fail("Non-unmanaged types should not be passed directly to a Swift function.");
src\runtime\src\coreclr\tools\Common\JitInterface\SystemVStructClassificator.cs (2)
136Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.Category}"); 263Debug.Fail("Invalid struct size. The size of fields and overall size don't agree");
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
192Debug.Fail("Unexpectting setting value on non-byref arg");
ILCompiler.RyuJit (8)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1917Debug.Fail("Unexpected raw handle intrinsic");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
3517Debug.Fail("CorInfoImpl.runWithErrorTrap should not be called"); 3527Debug.Fail("CorInfoImpl.runWithSPMIErrorTrap should not be called");
src\runtime\src\coreclr\tools\Common\JitInterface\JitTypeNameFormatter.cs (2)
35Debug.Fail("Unexpected signature type variable in JitTypeNameFormatter"); 40Debug.Fail("Unexpected signature method variable in JitTypeNameFormatter");
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (1)
217Debug.Fail("Non-unmanaged types should not be passed directly to a Swift function.");
src\runtime\src\coreclr\tools\Common\JitInterface\SystemVStructClassificator.cs (2)
136Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.Category}"); 263Debug.Fail("Invalid struct size. The size of fields and overall size don't agree");
ILCompiler.TypeSystem (26)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\GenericParameterDesc.Canon.cs (2)
13Debug.Fail("IsCanonicalSubtype of an indefinite type"); 19Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (2)
66Debug.Fail("Invalid CanonicalFormKind: " + kind); 86Debug.Fail("Invalid CanonicalFormKind: " + kind);
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\SignatureVariable.Canon.cs (4)
13Debug.Fail("IsCanonicalSubtype of an indefinite type"); 19Debug.Fail("ConvertToCanonFormImpl for an indefinite type"); 29Debug.Fail("IsCanonicalSubtype of an indefinite type"); 35Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\TypeDesc.Canon.cs (2)
29Debug.Fail("Invalid CanonicalFormKind: " + kind); 49Debug.Fail("Invalid CanonicalFormKind: " + kind);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (1)
123Debug.Fail("Unknown form of type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ExplicitLayoutValidator.cs (1)
68Debug.Fail("We should recurse on value types with GC pointers or byrefs");
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (1)
76Debug.Fail(fieldType.ToString());
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
72Debug.Fail("Multi-module assemblies");
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
158Debug.Fail("method has no related type in the type hierarchy of type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\CustomAttributeTypeNameParser.cs (1)
134Debug.Fail("Expected to be unreachable");
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.MethodImpls.cs (1)
97Debug.Fail("unexpected methodDeclHandleKind");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\ILStackHelper.cs (1)
404Debug.Fail("Unknown instruction");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\ILEmitter.cs (4)
286Debug.Fail("Unexpected TypeDesc category"); 335Debug.Fail("Unexpected TypeDesc category"); 385Debug.Fail("Unexpected TypeDesc category"); 435Debug.Fail("Unexpected TypeDesc category");
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
786Debug.Fail("Unknown UnsafeAccessorKind");
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MethodDesc.Interop.cs (1)
191System.Diagnostics.Debug.Fail("Unexpected Unmanaged Calling Convention.");
src\runtime\src\coreclr\tools\Common\TypeSystem\RuntimeDetermined\GenericParameterDesc.RuntimeDetermined.cs (1)
14Debug.Fail("IsRuntimeDeterminedSubtype of an indefinite type");
src\runtime\src\coreclr\tools\Common\TypeSystem\RuntimeDetermined\SignatureVariable.RuntimeDetermined.cs (1)
14Debug.Fail("IsRuntimeDeterminedSubtype of an indefinite type");
illink (11)
ILLink.RoslynAnalyzer (11)
IOperationExtensions.cs (1)
104Debug.Fail("Unhandled declaration pattern context");
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
231Debug.Fail("Pre-allocated full name should have been provided in the ctor");
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (6)
360Debug.Fail("Expected to be unreachable"); 371Debug.Fail("Expected to be unreachable"); 382Debug.Fail("Expected to be unreachable"); 393Debug.Fail("Expected to be unreachable"); 404Debug.Fail("Expected to be unreachable"); 415Debug.Fail("Expected to be unreachable");
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
525Debug.Fail("Unreachable.");
TrimAnalysis\ParameterProxy.cs (1)
34Debug.Fail($"Unexpected RefKind {ParameterSymbol!.RefKind} found on parameter {GetDisplayName()}");
TrimAnalysis\TypeNameResolver.cs (1)
90Debug.Fail("Unreachable");
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\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
231Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitRegistry.cs (1)
279Debug.Fail($"Unexpected {nameof(EvictionReason)} {reason}");
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
94Debug.Fail($"Unexpected {nameof(EvictionReason)} {reason}");
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
268Debug.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\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
525Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\aspnetcore\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)
826Debug.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\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
525Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\EnumExtensions.cs (4)
38Debug.Fail("Unexpected enum underlying type."); 67Debug.Fail("Unexpected enum underlying type."); 111Debug.Fail("Unexpected enum underlying type."); 141Debug.Fail("Unexpected enum underlying type.");
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.Server.Kestrel.Core (6)
Internal\Http2\Http2Connection.cs (1)
1676Debug.Fail($"Unexpected header type: {headerType}");
Internal\Http3\Http3Stream.cs (2)
369Debug.Fail($"Unexpected header type: {headerType}"); 864Debug.Fail("Unexpected header parsing state.");
Internal\Infrastructure\HttpUtilities.cs (1)
465Debug.Fail("Unexpected HttpVersion: " + httpVersion);
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
src\aspnetcore\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)
190Debug.Fail($"Unexpected exception in {nameof(QuicConnectionContext)}.{nameof(AcceptAsync)}: {ex}");
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)
182Debug.Fail($"Unknown enum value: {ResultCode}");
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
219Debug.Fail("Unexpected finalization. Dispose should already have been called.");
Definition\BuiltInMetadata.cs (1)
69Debug.Fail($"Expected a valid item-spec modifier, got \"{name}\".");
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\msbuild\src\Shared\ResourceUtilities.cs (3)
455Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 462Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 469Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Utilities\Utilities.cs (4)
726Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected: property is null"); 730Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected property {item} of type {item?.GetType().ToString()}"); 907Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected: {nameof(item)} is null"); 911Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected {nameof(item)} {item} of type {item?.GetType().ToString()}");
Microsoft.Build.Framework (2)
FileUtilities.cs (1)
98Debug.Fail($"Casing test failed: {ex}");
ITaskItemExtensions.cs (1)
59Debug.Fail(e.ToString());
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (1)
225Debug.Fail("The SDK framework-to-core bridge task only runs on .NET Framework MSBuild.");
src\roslyn\src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
72Debug.Fail("This object requires explicit call to Dispose");
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
409Debug.Fail("The SDK framework-to-core bridge task only runs on .NET Framework MSBuild.");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.Build.Tasks.Core (34)
BootstrapperUtil\BootstrapperBuilder.cs (10)
554Debug.Fail(ex.Message); 579Debug.Fail("Already found resources for culture " + stringNode.InnerText); 819Debug.Fail("Could not locate schema '" + schemaPath + "', so no validation of '" + filePath + "' is possible."); 828Debug.Fail("Could not locate data file '" + filePath + "'."); 856Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 861Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 1054Debug.Fail(ex.Message); 1058Debug.Fail(ex.Message); 1062Debug.Fail(ex.Message); 1901Debug.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.");
GenerateResource.cs (2)
3113Debug.Fail($"Unknown format {format}"); 3408Debug.Fail($"Unknown format {format}");
ManifestUtil\ConvertUtil.cs (2)
28Debug.Fail($"Invalid value '{value}' for {typeof(bool).Name}, returning {defaultValue}"); 32Debug.Fail($"Invalid value '{value}' for {typeof(bool).Name}, returning {defaultValue}");
ManifestUtil\Manifest.cs (3)
778Debug.Fail("Comparing null objects"); 786Debug.Fail("Objects do not have a SortName"); 793Debug.Fail("Comparing objects that are not BaseReferences");
ManifestUtil\Util.cs (3)
596Debug.Fail("Comparing null objects"); 601Debug.Fail("Comparing objects that are not ITaskItem"); 608Debug.Fail("Objects do not have a ItemSpec");
ManifestUtil\XmlUtil.cs (1)
197Debug.Fail($"ResourceResolver could not find file '{filename}'");
ResolveManifestFiles.cs (8)
1033Debug.Fail($"Invalid value '{value}' for PublishState"); 1037Debug.Fail($"Invalid value '{value}' for PublishState"); 1072Debug.Fail("PublishState.DataFile is invalid for an assembly"); 1079Debug.Fail($"Unhandled value PublishFlags.{state}"); 1109Debug.Fail("PublishState.Prerequisite is invalid for a file"); 1112Debug.Fail($"Unhandled value PublishFlags.{state}"); 1139Debug.Fail("PublishState.DataFile is invalid for an assembly"); 1146Debug.Fail($"Unhandled value PublishFlags.{state}");
src\msbuild\src\Shared\ResourceUtilities.cs (3)
455Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 462Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 469Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.Utilities.Core (3)
src\msbuild\src\Shared\ResourceUtilities.cs (3)
455Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 462Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 469Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
3050Debug.Fail($"Expected operation with kind '{operationBlock.Kind}' to be the root operation with null 'Parent', but instead it has a non-null Parent with kind '{operationBlock.Parent.Kind}'");
InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Operations\ControlFlowGraphBuilder.cs (3)
6370Debug.Fail("This code path should not be reachable."); 6376Debug.Fail("This code path should not be reachable."); 7454Debug.Fail("All placeholders should be handled above. Have we introduced a new scenario where placeholders are used?");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.CodeAnalysis.Analyzers (17)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (3)
92Debug.Fail($"Unsupported diagnostic ID {diagnostic.Id}"); 337Debug.Fail($"Unexpected line {lineText}"); 363Debug.Fail($"Unexpected line {lineText}");
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
61Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
74Debug.Fail($"Unknown FixAllScope '{fixAllContext.Scope}'");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
60Debug.Fail("FixAllScope.ContainingMember and FixAllScope.ContainingType are not supported in CodeStyle layer");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (4)
142Debug.Fail("Can we have a tainted data parameter with no syntax references?"); 328Debug.Fail("Are the tainted data sources misconfigured?"); 367Debug.Fail("Are the tainted data sources misconfigured?"); 406Debug.Fail("Are the tainted data sanitizers misconfigured?");
src\a03b2aad21e28a8a\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (8)
187Debug.Fail("Unhandled ConstructorMapper"); 271Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 306Debug.Fail("Unhandled PropertyMapper"); 381Debug.Fail("Expected to have tracked assignment operations for a given location"); 408Debug.Fail("Expected to have tracked assignment operations with locations"); 431Debug.Fail("Expected to have tracked assignment operations with unknown PointsTo"); 440Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 722Debug.Fail("Can LValues FlowCaptureReferences have more than one operation?");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ControlFlowConditionKindExtensions.cs (1)
22Debug.Fail($"Unsupported conditional kind: '{controlFlowConditionKind}'");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.cs (1)
41Debug.Fail("Expected non-null CFG");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeAbstractValueDomain.cs (1)
156Debug.Fail($"Unhandled dispose value kind merge: {value1.Kind} and {value2.Kind}");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.cs (1)
73Debug.Fail("Expected non-null CFG");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
206Debug.Fail("Expected non-null CFG");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.cs (1)
56Debug.Fail("Expected non-null CFG");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (4)
200Debug.Fail($"SinkKind {sinkKind} entry missing from {typeof(T).Name} map"); 251Debug.Fail($"Unhandled SinkKind {sinkKind}"); 307Debug.Fail($"Unhandled SinkKind {sinkKind}"); 362Debug.Fail($"Unhandled SinkKind {sinkKind}");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
117Debug.Fail("Expected non-null 'namedTypeSymbol'");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDomain.cs (1)
59Debug.Fail("Non-monotonic merge");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
119Debug.Fail("TryCreateForSymbolDeclaration failed");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (2)
1302Debug.Fail($"Unexpected 'null' target type for '{operation.Syntax}'"); 1641Debug.Fail($"Unknown pattern kind '{isPatternOperation.Pattern.Kind}'");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
70Debug.Fail("Flow capture used as both an r-value and an l-value?");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\MapAbstractDomain.cs (1)
93Debug.Fail("Non-monotonic merge");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
36Debug.Fail("Declared symbol must never be null here");
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
70Debug.Fail("We should always be able to find the node from the diagnostic."); 77Debug.Fail("We should always be able to find the method symbol for the diagnostic.");
src\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
48Debug.Fail("Could not get analyzer");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
60Debug.Fail("FixAllScope.ContainingMember and FixAllScope.ContainingType are not supported in CodeStyle layer");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Conversions.cs (1)
3625Debug.Fail("This method should have been eliminated in overload resolution!");
Binder\Binder_Unsafe.cs (3)
149Debug.Fail($"Symbol {symbol} has {nameof(CallerUnsafeMode)}={callerUnsafeMode}."); 154Debug.Fail($"Symbol {symbol} has {nameof(symbol.Kind)}={symbol.Kind}."); 159Debug.Fail($"Symbol {symbol} is a generic type.");
Binder\DecisionDagBuilder.cs (2)
3625Debug.Fail("Unexpected change in temp map during conditional removal of indexer evaluation."); 3827Debug.Fail("Do not expect to get in a situation when a type evaluation removal initiates a temp rewrite.");
Binder\RefSafetyAnalysis.cs (1)
241Debug.Fail($"Placeholder {placeholder} already has a scope: {existing.FilePath}:{existing.LineNumber}.");
BoundTree\BoundAwaitableInfo.cs (1)
34Debug.Fail($"Unexpected RuntimeAsyncAwaitCall: {RuntimeAsyncAwaitCall.Method.Name}");
BoundTree\BoundExpression.cs (2)
236Debug.Fail("Getting here is unexpected."); 707Debug.Fail("Getting here is unexpected.");
CodeGen\EmitStatement.cs (2)
708Debug.Fail("Exception handling constructs should be blocked at the binding layer, not here at emit time"); 937Debug.Fail("Exception handling constructs should be blocked at the binding layer, not here at emit time");
Compilation\CSharpCompilation.cs (1)
1785Debug.Fail($"Unsupported type argument: {typeArgument.ToDisplayString()}");
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
116Debug.Fail($"Did not find a snapshot for {node} `{node.Syntax}.`");
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
40Debug.Fail($"Override the visitor for {node.Kind}");
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
47Debug.Fail("We should have reported an error during binding if lock type info cannot be found.");
Operations\CSharpOperationFactory_Methods.cs (1)
64Debug.Fail($"Unexpected syntax kind: {syntax.Kind()}");
Operations\CSharpOperationFactory.cs (2)
1328Debug.Fail("Unhandled case: " + collectionCreation.GetType()); 2198Debug.Fail($"Unexpected syntax: {kind}");
Parser\SyntaxParser.cs (2)
889Debug.Fail("This should not be reachable. We should have hit a skipped token in the trivia of this token."); 893Debug.Fail("This should not be reachable. We should have hit a child token with skipped text within this node.");
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
711Debug.Fail("Not expecting to get here; if we end up here through ENC, add tests to verify");
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
218Debug.Fail("We are performing a check for an unrelated assembly which likely indicates a bug.");
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\Fixers\CSharpPreferIsKindFix.cs (1)
61Debug.Fail("Unreachable.");
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
235Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 241Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 370Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 394Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 403Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 414Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 448Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 457Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 477Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
827Debug.Fail("Unhandled pattern type");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
875Debug.Fail("Unexpected node type " + node.Kind());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
50Debug.Fail("The diagnostic can only be produced in context of a deconstruction-assignment, deconstruction-foreach or deconstruction-positionalpattern");
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (3)
70Debug.Fail("Could not find close brace in fixer"); 77Debug.Fail("Could not find previous close brace in fixer"); 84Debug.Fail("Could not match analyzer pattern");
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
72Debug.Fail("Couldn't find statement in fixer");
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
86Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 205Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
154Debug.Fail("Unexpected state?");
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
520Debug.Fail("Unhandled type: " + type.GetType().FullName);
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
50Debug.Fail("The diagnostic can only be produced in context of a deconstruction-assignment, deconstruction-foreach or deconstruction-positionalpattern");
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (3)
70Debug.Fail("Could not find close brace in fixer"); 77Debug.Fail("Could not find previous close brace in fixer"); 84Debug.Fail("Could not match analyzer pattern");
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
72Debug.Fail("Couldn't find statement in fixer");
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
86Debug.Fail($"Unexpected node kind for local/parameter declaration or reference: '{node.Kind()}'"); 205Debug.Fail($"Unexpected kind for originalCompoundAssignment: {originalCompoundAssignment.Kind()}");
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (5)
Microsoft.CodeQuality.Analyzers\Maintainability\CSharpUseCrossPlatformIntrinsicsFixer.cs (4)
36Debug.Fail($"Found unexpected node kind: {currentNode.RawKind}"); 44Debug.Fail($"Found unexpected number of arguments for binary operator replacement: {arguments.Count}"); 60Debug.Fail($"Found unexpected node kind: {currentNode.RawKind}"); 68Debug.Fail($"Found unexpected number of arguments for unary operator replacement: {arguments.Count}");
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (1)
111Debug.Fail("there is only 3 type of ComputeHash");
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
235Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 241Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 370Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 394Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 403Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 414Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 448Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 457Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 477Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
827Debug.Fail("Unhandled pattern type");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
875Debug.Fail("Unexpected node type " + node.Kind());
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.Features (18)
Completion\CommonCompletionProvider.cs (2)
36Debug.Fail("For backwards API compat only, should not be called"); 58Debug.Fail("For backwards API compat only, should not be called");
Completion\CompletionService.cs (1)
75Debug.Fail("For backwards API compat only, should not be called");
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
191Debug.Fail("Expected non-null value for declaration.");
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
204Debug.Fail("We should always be able to get an anonymous type for any anonymous creation node.");
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
171Debug.Fail("How did we not get any labels?");
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
651Debug.Fail("We should always be able to get an tuple type for any tuple expression node."); 764Debug.Fail("We should always be able to get an tuple type for any tuple type syntax node.");
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (1)
17Debug.Fail("For backwards API compat only, should not be called");
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
989Debug.Fail("Should have found {0} in the resource string.");
QuickInfo\QuickInfoService.cs (1)
39Debug.Fail("For backwards API compat only, should not be called");
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
253Debug.Fail($"Parent node of {nameToken} is null."); 293Debug.Fail($"Parent node of {nameToken} is null.");
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
36Debug.Fail("Declared symbol must never be null here");
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
70Debug.Fail("We should always be able to find the node from the diagnostic."); 77Debug.Fail("We should always be able to find the method symbol for the diagnostic.");
src\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
48Debug.Fail("Could not get analyzer");
Microsoft.CodeAnalysis.NetAnalyzers (56)
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsFixer.cs (2)
34Debug.Fail($"Found diagnostic without an associated {nameof(RuleKind)} property."); 40Debug.Fail($"Found diagnostic with an unrecognized {nameof(RuleKind)} property: {ruleKindName}.");
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
83Debug.Fail("This should never happen.");
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (3)
916Debug.Fail($"Should never reach this line. This means the symbol {symbol.Name} was not processed in this analyzer"); 943Debug.Fail($"Should never reach this line. This means the symbol {previewSymbol.Name} was not processed in this analyzer"); 970Debug.Fail($"Should never reach this line. This means the symbol {previewSymbol.Name} was not processed in this analyzer");
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.Fixer.cs (1)
127Debug.Fail($"Unexpected method name '{methodName}' for {DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectlyAnalyzer.RuleId} code fix.");
Microsoft.NetCore.Analyzers\Security\DoNotAlwaysSkipTokenValidationInDelegates.cs (1)
122Debug.Fail("Unhandled OperationKind " + delegateCreationOperation.Target.Kind);
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
253Debug.Fail(methodSymbol.Name + " was not found in callGraph");
Microsoft.NetCore.Analyzers\Security\DoNotDisableHttpClientCRLCheck.cs (1)
232Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotInstallRootCert.cs (1)
221Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseCreateEncryptorWithNonDefaultIV.cs (1)
197Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureCryptographicAlgorithms.cs (1)
83Debug.Fail($"Unhandled IOperation {operationAnalysisContext.Operation.Kind}");
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJavascriptSerializerWithSimpleTypeResolver.cs (3)
142Debug.Fail($"Unhandled PointsToAbstractValueKind {pointsTo.Kind}"); 149Debug.Fail($"Unhandled JavaScriptSerializer constructor {constructorMethod.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)}"); 256Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJsonNetWithoutBinder.cs (2)
81Debug.Fail($"Unhandled JsonSerializer constructor {constructorMethod.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)}"); 236Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerWithoutBinderBase.cs (1)
220Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureSettingsForJsonNet.cs (2)
80Debug.Fail($"Unhandled JsonSerializerSettings constructor {constructorMethod.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)}"); 263Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFInsufficientIterationCount.cs (1)
217Debug.Fail($"Unhandled result value {kvp.Value}");
Microsoft.NetCore.Analyzers\Security\SslProtocolsAnalyzer.cs (1)
146Debug.Fail("Unhandled IOperation " + operationAnalysisContext.Operation.Kind);
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (2)
387Debug.Fail(methodSymbol.Name + " was not found in inverseGraph."); 410Debug.Fail(child.Name + " was not found in results.");
Microsoft.NetCore.Analyzers\Security\UseSecureCookiesASPNetCore.cs (1)
215Debug.Fail($"Unhandled result value {kvp.Value}");
src\11b41c7305441175\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (8)
184Debug.Fail("Unhandled ConstructorMapper"); 268Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 303Debug.Fail("Unhandled PropertyMapper"); 378Debug.Fail("Expected to have tracked assignment operations for a given location"); 405Debug.Fail("Expected to have tracked assignment operations with locations"); 428Debug.Fail("Expected to have tracked assignment operations with unknown PointsTo"); 437Debug.Fail($"Unhandled PointsToAbstractValue: Kind = {pointsToAbstractValue.Kind}, NullState = {pointsToAbstractValue.NullState}"); 719Debug.Fail("Can LValues FlowCaptureReferences have more than one operation?");
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (4)
140Debug.Fail("Can we have a tainted data parameter with no syntax references?"); 326Debug.Fail("Are the tainted data sources misconfigured?"); 365Debug.Fail("Are the tainted data sources misconfigured?"); 404Debug.Fail("Are the tainted data sanitizers misconfigured?");
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (1)
118Debug.Fail("TryCreateForSymbolDeclaration failed");
src\afc74d572e54ec72\DisposeAnalysis.DisposeAbstractValueDomain.cs (1)
155Debug.Fail($"Unhandled dispose value kind merge: {value1.Kind} and {value2.Kind}");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
992Debug.Fail("Unhandled declaration pattern context");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\Extensions\ControlFlowConditionKindExtensions.cs (1)
21Debug.Fail($"Unsupported conditional kind: '{controlFlowConditionKind}'");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.cs (1)
40Debug.Fail("Expected non-null CFG");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.cs (1)
72Debug.Fail("Expected non-null CFG");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
205Debug.Fail("Expected non-null CFG");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.cs (1)
55Debug.Fail("Expected non-null CFG");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (4)
199Debug.Fail($"SinkKind {sinkKind} entry missing from {typeof(T).Name} map"); 250Debug.Fail($"Unhandled SinkKind {sinkKind}"); 306Debug.Fail($"Unhandled SinkKind {sinkKind}"); 361Debug.Fail($"Unhandled SinkKind {sinkKind}");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMap.cs (1)
115Debug.Fail("Expected non-null 'namedTypeSymbol'");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDomain.cs (1)
58Debug.Fail("Non-monotonic merge");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (2)
1299Debug.Fail($"Unexpected 'null' target type for '{operation.Syntax}'"); 1638Debug.Fail($"Unknown pattern kind '{isPatternOperation.Pattern.Kind}'");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
70Debug.Fail("Flow capture used as both an r-value and an l-value?");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\MapAbstractDomain.cs (1)
92Debug.Fail("Non-monotonic merge");
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\CodeGeneration\CodeWriter.cs (1)
161Debug.Fail("Do not use this indexer without reimplementing it more efficiently.");
Language\Legacy\HtmlLanguageCharacteristics.cs (1)
84Debug.Fail("FlipBracket must be called with a bracket character");
Language\Legacy\HtmlTokenizer.cs (2)
79Debug.Fail("Invalid TokenizerState"); 254Debug.Fail("Unexpected token!");
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (1)
169Debug.Fail("FlipBracket must be called with a bracket character");
Language\Legacy\NativeCSharpTokenizer.cs (1)
176Debug.Fail("Invalid TokenizerState");
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (1)
161Debug.Fail("FlipBracket must be called with a bracket character");
Language\Legacy\RoslynCSharpTokenizer.cs (4)
140Debug.Fail("Invalid TokenizerState"); 172Debug.Fail("This should be handled by using the C# lexer's interned string in NumericLiteral()"); 189Debug.Fail("This should be handled by using the C# lexer's interned string in Operator()"); 204Debug.Fail("This should be handled by using the C# lexer's interned string in Operator()");
Language\RazorCSharpDocument.cs (1)
42Debug.Fail("input not sorted");
Language\RazorProjectEngineBuilder.cs (1)
44Debug.Fail($"Encountered an {nameof(IRazorFeature)} that is not an {nameof(IRazorEngineFeature)} or {nameof(IRazorProjectEngineFeature)}.");
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.UnderlyingNamedTypeVisitor.cs (1)
39Debug.Fail($"Symbol case not handled: {symbol.Kind}");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
57Debug.Fail($"No log is registered for submission {buildEventContext.SubmissionId}.");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
Microsoft.CSharp (53)
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantBuilder.cs (1)
98Debug.Fail("Unexpected VarEnum");
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (1)
28Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (1)
27Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (1)
28Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFacts.cs (1)
198Debug.Fail("Missing resources for the error " + code.ToString());
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (2)
93Debug.Fail("Shouldn't be here!"); 137Debug.Fail("Shouldn't be here!");
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (3)
61Debug.Fail("impossible sk"); 397Debug.Fail($"Bad symbol kind: {sym.getKind()}"); 544Debug.Fail("Bad type kind");
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (8)
207Debug.Fail("Invalid Predefined Method in VisitCALL"); 272Debug.Fail("How did we get a call that doesn't have a methodinfo?"); 409Debug.Fail("How did we get a prop that doesn't have a propinfo?"); 554Debug.Fail("Invalid Predefined Method in GenerateBinaryOperator"); 631Debug.Fail("Invalid Predefined Method in GenerateUserDefinedBinaryOperator"); 656Debug.Fail("Invalid Predefined Method in GenerateUnaryOperator"); 686Debug.Fail("Invalid Predefined Method in GenerateUserDefinedUnaryOperator"); 882Debug.Fail("Invalid Predefined Method in GetExpression");
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
578Debug.Fail("Unhandled kind"); 772Debug.Fail("Unexpected type returned from lookup"); 1039Debug.Fail("Unknown operator: " + p); 1202Debug.Fail("Unexpected type returned from lookup");
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
142Debug.Fail("Bad kind in CompareTypes");
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (2)
135Debug.Fail($"Bad type kind: {_typeDest.TypeKind}"); 208Debug.Fail("BindExplicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1191Debug.Fail("Unreachable");
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
150Debug.Fail($"Bad type symbol kind: {_typeSrc.TypeKind}"); 384Debug.Fail("bind(Im|Ex)plicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
227Debug.Fail("Shouldn't happen!"); 313Debug.Fail("Shouldn't happen!"); 1170Debug.Fail($"Bad op: {op}"); 1444Debug.Fail("Shouldn't happen!"); 1814Debug.Fail($"Bad kind: {ek}"); 2225Debug.Fail($"Bad ek: {ek}");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
166Debug.Fail("cannot find property for accessor");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs (2)
169Debug.Fail("GetAssemblyID called on bad sym kind"); 192Debug.Fail("InternalsVisibleTo called on bad sym kind");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
96Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\EXPR.cs (1)
47Debug.Fail("Invalid Expr in GetObject");
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (1)
320Debug.Fail("Unexpected type.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (1)
63Debug.Fail("Constant nullable?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs (1)
37Debug.Fail("Constant of pointer in dynamic code?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\Type.cs (1)
132Debug.Fail("Bad type for AsAggregateType");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
73Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (4)
271Debug.Fail("Unknown type kind"); 387Debug.Fail("Bad Symbol kind in SubstEqualTypesCore"); 483Debug.Fail("Bad Symbol kind in TypeContainsType"); 522Debug.Fail("Bad Symbol kind in TypeContainsTyVars");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (1)
33Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (2)
82Debug.Fail("Sub-optimal equality called. Check if this is correct."); 91Debug.Fail("If using this as a key, implement IEquatable<SymWithType>");
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
41Debug.Fail("Sub-optimal overload called. Check if this can be avoided."); 651Debug.Fail("Should be unreachable");
Microsoft.Data.Analysis (4)
TextFieldParser.cs (4)
439Debug.Fail("The TextFieldType is not supported"); 1011Debug.Fail("Delimiter element is empty. This should have been caught on input"); 1036Debug.Fail("Unknown TextFieldType"); 1119Debug.Fail("Unknown TextFieldType");
Microsoft.Data.Analysis.Tests (4)
src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
439Debug.Fail("The TextFieldType is not supported"); 1011Debug.Fail("Delimiter element is empty. This should have been caught on input"); 1036Debug.Fail("Unknown TextFieldType"); 1119Debug.Fail("Unknown TextFieldType");
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\StackWalk\Context\AMD64\AMD64Unwinder.cs (4)
804Debug.Fail("Any remaining operation must be a machine frame"); 847Debug.Fail("Expected unwind code"); 856Debug.Fail("Expected unwind code"); 1040Debug.Fail("Unexpected unwind operation code.");
Microsoft.Diagnostics.DataContractReader.Legacy (7)
Dbi\DacDbiImpl.cs (3)
1666Debug.Fail(DescribeContextDiff(cdacBytes, legacyBytes)); 1769Debug.Fail(DescribeContextDiff(cdacBytes, legacyBytes)); 2339Debug.Fail($"Unexpected generics type token index: {dwExactGenericArgsTokenIndex}");
Marshalling\DacComNullableByRef.cs (1)
92Debug.Fail("Exception occurred while marshalling COM interface output parameter. The native caller will receive a null pointer.");
SOSDacImpl.cs (3)
2535Debug.Fail("Unknown RejitState. cDAC should be updated to understand this new state."); 4611Debug.Fail($"Received unexpected clause index {clauseIndex} of {totalClauses}"); 4872Debug.Fail($"Unexpected RCW address {rcwAddr:x} or context {ctx:x}");
Microsoft.Diagnostics.NETCore.Client (3)
DiagnosticsIpc\IpcSocket.cs (1)
43Debug.Fail("Token should have thrown cancellation exception.");
ReversedServer\ReversedDiagnosticsServer.cs (2)
119Debug.Fail(ex.Message); 132Debug.Fail(ex.Message);
Microsoft.DotNet.Cli.Telemetry (5)
Implementation\PersistentStorageTelemetryUploader.cs (1)
117Debug.Fail(e.ToString());
PersistentStorageLogExporter.cs (2)
73Debug.Fail(e.ToString()); 118Debug.Fail(e.ToString());
PersistentStorageTraceExporter.cs (2)
76Debug.Fail(e.ToString()); 126Debug.Fail(e.ToString());
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyChatClient.cs (2)
148Debug.Fail(ErrorMessage); 156Debug.Fail(ErrorMessage);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (4)
Emitter\CoreBindingHelpers.cs (4)
149Debug.Fail($"Complex should not be included for GetCore gen: {complexType.TypeRef.FullyQualifiedName}"); 291Debug.Fail($"Unsupported spec for bind core gen: {effectiveType.GetType()}"); 658Debug.Fail($"Invalid string parsable kind: {typeKind}"); 1297Debug.Fail($"Invalid initialization kind: {initKind}");
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)
349Debug.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)
182Debug.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.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.NET.HostModel (1)
ComHost\ClsidMap.cs (1)
239Debug.Fail("Unknown attribute constructor kind");
Microsoft.NET.Sdk.Publish.Tasks (2)
Tasks\MsDeploy\VsMsdeploy.cs (1)
1084Diagnostics.Debug.Fail("Exception on ICancelableTask.Cancel being invoked:" + ex.Message);
Tasks\Xdt\TaskTransformationLogger.cs (1)
84Debug.Fail("Unknown MessageType");
Microsoft.Private.Windows.Core (11)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
51Debug.Fail(ex.Message);
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
52Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}");
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
610Debug.Fail("All mapped formats must be either restricted or not restricted.");
System\TypeExtensions.cs (1)
280Debug.Fail(e.Message);
System\Value.cs (1)
68Debug.Fail($"Unexpected type {type.Name}.");
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (3)
62Debug.Fail("We should be special casing FontFamilyNotFound so we can provide the font name"); 66Debug.Fail("We should be special casing FontStyleNotFound so we can provide the font name"); 70Debug.Fail("We should be special casing NotTrueTypeFont so we can provide the font name");
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
31Debug.Fail($"GetWindowTextLength failed. Error: {new Win32Exception(error).Message}"); 50Debug.Fail($"GetWindowText failed. Error: {new Win32Exception().Message}");
Windows\Win32\System\Com\ComHelpers.cs (1)
191Debug.Fail("How did we fail to query for IUnknown?");
Microsoft.TemplateEngine.Cli (1)
CliTemplateParameter.cs (1)
177Debug.Fail($"Unexpected Option type: {option.GetType()}");
Microsoft.TestPlatform.CoreUtilities (1)
Tracing\EqtTrace.cs (1)
825Debug.Fail(message);
Microsoft.TestPlatform.Filter.Source (1)
FilterExpression.cs (1)
131Debug.Fail("ProcessOperator called for Unexpected operator.");
Microsoft.TestPlatform.PlatformAbstractions (5)
common\Tracing\PlatformEqtTrace.cs (5)
201Debug.Fail("Should never get here!"); 273Debug.Fail("Should never get here!"); 407Debug.Fail("Could not get process name from command line, will try to use the slow way."); 417Debug.Fail("Could not get process name: " + e); 432Debug.Fail("Could not get process id: " + e);
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.TestPlatform.Common (2)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpression.cs (1)
131Debug.Fail("ProcessOperator called for Unexpected operator.");
Utilities\AssemblyResolver.cs (1)
87Debug.Fail("AssemblyResolver.OnResolve: args.Name is null or empty.");
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
ObjectModel\TestResult.cs (1)
386Debug.Fail("'m_testRun' is null");
ObjectModel\TestRun.cs (2)
178Debug.Fail("'RunConfiguration' is null"); 184Debug.Fail("'RunConfiguration.RunDeploymentRootDirectory' is null or empty");
Utility\Converter.cs (1)
163Debug.Fail("Unexpected Outcome.");
Utility\TrxFileHelper.cs (1)
89Debug.Fail($"After replacing invalid chars in file '{fileName}' there's nothing left...");
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\FrameworkReducer.cs (1)
444Debug.Fail("Unable to get portable frameworks from: " + pcl.ToString());
Microsoft.Web.XmlTransform (11)
XmlAttributePreservationDict.cs (2)
49Debug.Fail("Couldn't get leading whitespace for attribute"); 58Debug.Fail("Couldn't get trailing whitespace for tag");
XmlAttributePreservationProvider.cs (2)
46Debug.Fail("Failed to get preservation info"); 72Debug.Fail("cal dispose please");
XmlElementContext.cs (1)
51Debug.Fail("No ServiceProvider");
XmlFileInfoDocument.cs (1)
464Debug.Fail("call dispose please");
XmlFormatter.cs (2)
132Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Unexpected element type '{0}' while formatting document", node.NodeType.ToString())); 348Debug.Fail("Popped too many indents");
XmlLocator.cs (1)
231Debug.Fail("There should be no XPathAxis enum value that isn't handled in this switch statement");
XmlTransformation.cs (2)
127Debug.Fail("The XPath for elements returned something that wasn't an element?"); 383Debug.Fail("call dispose please");
Microsoft.Win32.Registry (2)
Microsoft\Win32\RegistryKey.cs (2)
258Debug.Fail("Unexpected code path in RegistryKey::CreateSubKey"); 720Debug.Fail("unexpected code path");
Microsoft.Win32.SystemEvents (4)
Microsoft\Win32\SystemEvents.cs (4)
644Debug.Fail("Unrecognized message passed to UserPreferenceCategory"); 656Debug.Fail("Failed to install console handler."); 734Debug.Fail("SystemEvents marshaled callback failed:" + t); 1128Debug.Fail("Exception occurred while freeing memory: " + e.ToString());
MSBuild (3)
src\msbuild\src\Shared\ResourceUtilities.cs (3)
455Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 462Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 469Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
NuGet.Commands (2)
RestoreCommand\ContentFiles\ContentFileUtils.cs (1)
306Debug.Fail("Unable to get relative path: " + path);
RestoreCommand\RestoreCommand.cs (1)
2460Debug.Fail("RestoreRequest.ExternalProjects contains references, but does not contain the top level references. Add the project we are restoring for.");
NuGet.Common (1)
Telemetry\TelemetryActivity.cs (1)
46Debug.Fail("Looking at all references to the static Create methods, I don't think this code path is possible.");
NuGet.Frameworks (1)
FrameworkReducer.cs (1)
444Debug.Fail("Unable to get portable frameworks from: " + pcl.ToString());
NuGet.Protocol (3)
LegacyFeed\V2FeedPackageInfo.cs (1)
310Debug.Fail("Unknown dependency format: " + set);
LegacyFeed\V2FeedQueryBuilder.cs (2)
252Debug.Fail("Unhandled value of SearchFilterType"); 280Debug.Fail("Unhandled value of SearchFilterType");
NuGet.Resolver (2)
CombinationSolver.cs (2)
163Debug.Fail("Evaluated past the end of the array."); 236Debug.Fail("MoveBackward called with invalid value for i.");
PresentationBuildTasks (10)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordHelper.cs (1)
130Debug.Fail("Unhandled case in DoesRecordTypeHaveDebugExtension");
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (3)
687Debug.Fail("Assembly, Type and Attribute records are not cached, so don't ask for one."); 712Debug.Fail("Unknown RecordType"); 864Debug.Fail("Must override RecordType");
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
523Debug.Fail("Unknown Xaml Token.");
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
5308Debug.Fail("XmlReader doesn't support LineNumber"); 5339Debug.Fail("XmlReader doesn't support LinePosition"); 6344Debug.Fail($"State machine checking for TypeConverter syntax has encountered an unexpected XamlNode type {tokenType}");
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
3150Debug.Fail("Should initialize cache prior to compiling"); 3421Debug.Fail("Should initialize cache prior to compiling");
PresentationCore (64)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
941Debug.Fail("Missing case statement!");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
282System.Diagnostics.Debug.Fail("Corrupt Matrix in the ExtendedPropertyCollection!");
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
291System.Diagnostics.Debug.Fail("ExtendedProperties for points are not supported");
MS\Internal\Ink\StrokeNode.cs (3)
259Debug.Fail("StrokeNodeOperations.GetPointsAtStartOfSegment failed to find the D position"); 372Debug.Fail("StrokeNodeOperations.GetPointsAtEndOfSegment failed to find the B position"); 639Debug.Fail("Couldn't find all 4 indexes in StrokeNodeOperations.GetPointsAtMiddleSegment");
MS\Internal\Media\VisualTreeUtils.cs (3)
172Debug.Fail("How did a ray hit a Visual3D not parented to a Viewport3DVisual?"); 177Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 281Debug.Fail(String.Format(
MS\Internal\Shaping\OpenTypeCommon.cs (4)
594Debug.Fail("Unknown OpenType layout table!"); 1075Debug.Fail("Ext.Lookup processed earlier!"); 1160Debug.Fail("Ext.Lookup processed earlier!"); 1173Debug.Fail("Unknown OpenType layout table!");
MS\Internal\Shaping\TypefaceMap.cs (1)
217Debug.Fail("Invalid font face spans");
MS\Internal\Shaping\UshortList2.cs (4)
134Debug.Fail("Not supported"); 140Debug.Fail("Not supported"); 146Debug.Fail("Not supported"); 151Debug.Fail("Not supported");
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
23Debug.Fail("Assertion failed");
MS\Internal\TextFormatting\LineServicesCallbacks.cs (3)
1237Debug.Fail("Not supported TextDecorationUnit"); 1264Debug.Fail("Not supported TextDecorationUnit"); 2315Debug.Fail("Unsupported installed object!");
MS\Internal\TextFormatting\TextMarkerSource.cs (1)
127Debug.Fail("Invalid marker style");
System\IO\Packaging\PackWebResponse.cs (1)
611Debug.Fail("Cannot return full-container stream from cached container object");
System\Windows\DragEventArgs.cs (3)
44Debug.Fail("Invalid dragDropKeyStates"); 49Debug.Fail("Invalid allowedEffects"); 54Debug.Fail("Invalid target");
System\Windows\GiveFeedbackEventArgs.cs (1)
40Debug.Fail("Invalid effects");
System\Windows\Ink\IncrementalHitTester.cs (2)
204Debug.Fail("Benign assert. IncrementalHitTester's _strokeInfos cache is out of sync, rebuilding."); 212Debug.Fail("Benign assert. IncrementalHitTester's _strokeInfos cache is out of sync, rebuilding.");
System\Windows\Input\InputMethod.cs (1)
714Debug.Fail("Unknown Speech Mode");
System\Windows\Input\InputMethodStateTypeInfo.cs (1)
91Debug.Fail("The guid does not match.");
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
767Debug.Fail("Unknown Flick Action encountered");
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (1)
143Debug.Fail("Retry limit reached when acquiring PenThread");
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (2)
267Debug.Fail("Error acquiring PenThread in UpdateTabletsImpl()"); 415Debug.Fail("Error acquiring PenThread in HandleTabletAdded()");
System\Windows\Media\Animation\Generated\ByteAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\ColorAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int16Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int32Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int64Animation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\PointAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\RectAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SingleAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SizeAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\RepeatBehavior.cs (3)
185Debug.Fail("Unhandled RepeatBehaviorType"); 230Debug.Fail("Unhandled RepeatBehaviorType"); 296Debug.Fail("Unhandled RepeatBehaviorType.");
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
142Debug.Fail("Unknown type of RepeatBehavior passed to RepeatBehaviorConverter.");
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
426Debug.Fail("Parameterless constructor is illegal for ClockCollection.");
System\Windows\Media\Animation\TimeManager.cs (1)
575Debug.Fail("Unrecognized TimeState enumeration value");
System\Windows\Media\Visual.cs (1)
156Debug.Fail("TYPE_VISUAL or TYPE_VIEWPORT3DVISUAL expected.");
System\Windows\Media3D\MeshGeometry3D.cs (2)
574Debug.Fail("Cached bounds are invalid. Caller needs to check for IsEmpty and call UpdateCachedBounds."); 578Debug.Fail("Cached bounds are invalid. We missed a call to SetCachedBoundsDirty.");
System\Windows\Media3D\Viewport3DVisual.cs (1)
625Debug.Fail("Cached bbox subgraph is incorrect!");
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
25Debug.Fail(ex.Message);
System\Windows\QueryContinueDragEventArgs.cs (1)
33Debug.Fail("Invalid dragDropKeyStates");
PresentationFramework (115)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
512Debug.Fail("Mismatched segment data");
MS\Internal\AppModel\JournalNavigationScope.cs (2)
302Debug.Fail("Tried to navigate to a null JournalEntry."); 307Debug.Fail("Tried to navigate to a non-navigable journal entry.");
MS\Internal\Controls\ActiveXSite.cs (2)
213Debug.Fail(t.ToString()); 356Debug.Fail(t.ToString());
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
721Debug.Fail("The annotation data does match with the current content control in StickyNote");
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
636Debug.Fail("Failed to find item in expected subgroup after Move");
MS\Internal\Data\CompositeCollectionView.cs (2)
1652Debug.Fail("CurrentItem is not consistent with CurrentPosition"); 1657Debug.Fail("CurrentItem is not consistent with CurrentPosition");
MS\Internal\Data\DataExtensionMethods.cs (1)
33Debug.Fail("Unsupported list passed to Search");
MS\Internal\Data\IndexedEnumerable.cs (1)
393Debug.Fail("EnsureCacheCurrent: _enumerator.Current failed with InvalidOperationException");
MS\Internal\Data\StaticPropertyChangedEventManager.cs (2)
83Debug.Fail("Should never get here"); 91Debug.Fail("Should never get here");
MS\Internal\DataStreams.cs (2)
131Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 260Debug.Fail($"Unexpected exception reading binary formatted data. {ex.Message}");
MS\Internal\Documents\HostedElements.cs (1)
185Debug.Fail("Invalid state in HostedElements.cs");
MS\Internal\Documents\RowCache.cs (1)
1062Debug.Fail("Requested to update a non-existent row.");
MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
341Debug.Fail("Garbage in logical tree.");
MS\Internal\Globalization\LocalizableResourceBuilder.cs (1)
515Debug.Fail("Can't process localizability attribute on nodes other than Element, Property and LiteralContent.");
MS\Internal\Ink\EditingCoordinator.cs (2)
1178Debug.Fail("Unknown behavior"); 1215Debug.Fail("Unknown behavior");
MS\Internal\Ink\EraserBehavior.cs (1)
140Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\Ink\InkCanvasSelection.cs (2)
480Debug.Fail("The updatedElement has to be the same type as the originalElement."); 600Debug.Fail("An unexpected single selected Element");
MS\Internal\Ink\InkCollectionBehavior.cs (1)
162Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
96Debug.Fail("Cannot switch from Select to Select in mid-stroke"); 109Debug.Fail("Unknown InkCanvasEditingMode!");
MS\Internal\PtsHost\ErrorHandler.cs (2)
26System.Diagnostics.Debug.Fail(message); 40System.Diagnostics.Debug.Fail(message);
MS\Internal\PtsHost\FigureParagraph.cs (1)
301Debug.Fail("Tight wrap is not currently supported.");
MS\Internal\PtsHost\FloaterBaseParagraph.cs (1)
112Debug.Fail("Tight wrap is not currently supported.");
MS\Internal\PtsHost\FloaterParagraph.cs (1)
808Debug.Fail("Unknown type of anchor.");
MS\Internal\PtsHost\Pts.cs (1)
208Debug.Fail("Unknown WrapDirection value.");
MS\Internal\PtsHost\PtsHost.cs (19)
569Debug.Fail("PTS.GetSegmentDefinedColumnSpanAreaInfo is not implemented."); 581Debug.Fail("PTS.GetHeightDefinedColumnSpanAreaInfo is not implemented."); 869Debug.Fail("PTS.GetNumberEndnoteColumns is not implemented."); 881Debug.Fail("PTS.GetEndnoteColumnInfo is not implemented."); 892Debug.Fail("PTS.GetFootnoteSeparators is not implemented."); 901Debug.Fail("PTS.FFootnoteBeneathText is not implemented."); 910Debug.Fail("PTS.GetNumberFootnoteColumns is not implemented."); 922Debug.Fail("PTS.GetFootnoteColumnInfo is not implemented."); 931Debug.Fail("PTS.GetFootnoteSegment is not implemented."); 945Debug.Fail("PTS.GetFootnotePresentationAndRejectionOrder is not implemented."); 954Debug.Fail("PTS.FAllowFootnoteSeparation is not implemented."); 1252Debug.Fail("PTS.GetFootnotes is not implemented."); 1271Debug.Fail("PTS.FormatDropCap is not implemented."); 1289Debug.Fail("PTS.GetDropCapPolygons is not implemented."); 1297Debug.Fail("PTS.DestroyDropCap is not implemented."); 1705Debug.Fail("PTS.SnapGridVertical is not implemented."); 1806Debug.Fail("PTS.UpdGetDropCapChange is not implemented."); 1907Debug.Fail("PTS.GetOptimalLineDcpCache is not implemented."); 2933Debug.Fail("PTS.ObjGetFootnoteInfo is not implemented.");
MS\Internal\PtsHost\TableParaClient.cs (1)
1972Debug.Fail("Unsupported unit type");
MS\Internal\PtsHost\TextParaClient.cs (10)
131Debug.Fail("Should not get here. ParaCache is not currently used."); 229Debug.Fail("Should not get here. ParaCache is not currently used."); 318Debug.Fail("Should not get here. ParaCache is not currently used."); 371Debug.Fail("Should not get here. ParaCache is not currently used."); 713Debug.Fail("Should not get here. ParaCache is not currently used."); 794Debug.Fail("Should not get here. ParaCache is not currently used."); 857Debug.Fail("Should not get here. ParaCache is not currently used."); 907Debug.Fail("Should not get here. ParaCache is not currently used."); 1064Debug.Fail("Should not get here. ParaCache is not currently used."); 1366Debug.Fail("Should not get here. ParaCache is not currently used.");
MS\Internal\SystemDataHelper.cs (1)
83Debug.Fail("Could not find Null field or property for SqlNullable type");
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
610Debug.Fail("it must not add already present Item");
System\Windows\Controls\DataGrid.cs (1)
5316Debug.Fail("Unknown SelectionUnit encountered.");
System\Windows\Controls\DataGridCellsPanel.cs (1)
769Debug.Fail("We should have found a child");
System\Windows\Controls\Frame.cs (1)
441Debug.Fail("UsesOwnJournal->Automatic transition should be blocked by CoerceJournalOwnership().");
System\Windows\Controls\GridViewColumn.cs (1)
424Debug.Fail("Invalid value for ActualWidth.");
System\Windows\Controls\GridViewColumnHeader.cs (1)
289Debug.Fail("Method ShouldSerializeProperty is called on an internally generated GridViewColumnHeader.");
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
934Debug.Fail("Head is container for itself, but parent is neither GridViewHeaderRowPresenter nor null.");
System\Windows\Controls\ItemContainerGenerator.cs (3)
279Debug.Fail("Unexpected reentrant call to ICG.Remove"); 2444Debug.Fail("unexpected reentrant call to OnItemAdded"); 2634Debug.Fail("unexpected reentrant call to OnItemMoved");
System\Windows\Controls\PasswordTextNavigator.cs (2)
469Debug.Fail("Bad distance!"); 508Debug.Fail("No scoping element!");
System\Windows\Controls\Primitives\Thumb.cs (1)
243Debug.Fail("Got MouseLeftButtonDown event while dragging!");
System\Windows\Controls\VirtualizingStackPanel.cs (3)
6457Debug.Fail("SetInset should only be called for a container"); 6561Debug.Fail($"Unexpected container type: {((container == null) ? "null" : container.GetType().Name)}"); 9253Debug.Fail("We should have found a child");
System\Windows\Data\BindingGroup.cs (1)
1318Debug.Fail("Unexpected change event");
System\Windows\Data\ListCollectionView.cs (1)
1685Debug.Fail("Cannot update collection view from outside UIContext without index in event args");
System\Windows\Data\MultiBinding.cs (2)
109Debug.Fail("Unexpected BindingMode value"); 132Debug.Fail("Unexpected UpdateSourceTrigger value");
System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
51Debug.Fail("This method is not implemented and not expected to be called.");
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
434Debug.Fail("should never be here");
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1082Debug.Fail("invalid TextPointerContext");
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
192Debug.Fail("It should not be called");
System\Windows\Documents\NullTextContainer.cs (1)
251Debug.Fail("Unexpected call to NullTextContainer.set_TextView!");
System\Windows\Documents\NullTextNavigator.cs (3)
268Debug.Fail("No scoping element!"); 276Debug.Fail("NullTextPointer does not expect layout dependent method calls!"); 285Debug.Fail("NullTextPointer does not expect layout dependent method calls!");
System\Windows\FrameworkTemplate.cs (2)
825Debug.Fail("We do not have support for DynamicResource within unshared template content"); 1047Debug.Fail("Unknown enum value");
System\Windows\Interop\ActiveXHost.cs (4)
425Debug.Fail("bad state"); 457Debug.Fail("how did we ever get into the open state?"); 481Debug.Fail("bad state"); 985Debug.Fail(e.ToString());
System\Windows\Markup\BamlRecordHelper.cs (1)
130Debug.Fail("Unhandled case in DoesRecordTypeHaveDebugExtension");
System\Windows\Markup\BamlRecordReader.cs (1)
4980Debug.Fail("The only remaining option is attached property, which is not allowed in xaml for content properties");
System\Windows\Markup\BamlRecords.cs (3)
687Debug.Fail("Assembly, Type and Attribute records are not cached, so don't ask for one."); 712Debug.Fail("Unknown RecordType"); 864Debug.Fail("Must override RecordType");
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
302Debug.Fail("No items where found and IsComposite return true");
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
194Debug.Fail("Unexpected property value type");
System\Windows\Markup\XamlStream.cs (2)
783Debug.Fail("Close called on ReaderStream"); 791Debug.Fail("Flush called on ReaderStream");
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
305Debug.Fail("Unknown animation type.");
System\Windows\Navigation\NavigationService.cs (2)
3838Debug.Fail("Could not find the finishing PageFunction in the journal."); 3895Debug.Fail($"Unhandled scenario: PageFunction returning to {parentEntry.GetType().Name}");
System\Windows\ResourceDictionary.cs (1)
1347Debug.Fail("StaticResources[] entry is not a StaticResource not OptimizedStaticResource");
System\Windows\StyleHelper.cs (1)
5800Debug.Fail("GetHashCode for value types will use reflection to generate the hashcode. Write a better hash code generation algorithm if this struct is to be used in a hashtable, or remove this assert if it's decided that reflection is OK.");
System\Windows\TemplateNameScope.cs (1)
198Debug.Fail("Should never be trying to unregister via this interface for templates");
System\Windows\Window.cs (2)
4043Debug.Fail("Invalid value for ResizeMode"); 5954Debug.Fail($"specifiedRestoreBounds can't be {specifiedRestoreBounds}");
ReachFramework (22)
AlphaFlattener\BrushProxy.cs (10)
675Debug.Fail("IsOpaque(" + _brush.GetType() + ") not handled"); 771Debug.Fail("IsTransparent not handled " + _brush.GetType()); 1075Debug.Fail("Unexpected brush type"); 1933Debug.Fail("Unhandled GradientBrush type"); 2885Debug.Fail("Unhandled GradientBrush type"); 2910Debug.Fail("Unandled Brush type"); 3199Debug.Fail("Unhandled ImageBrush.ImageSource type"); 3341Debug.Fail("Brush type not expected"); 3494Debug.Fail("Unexpected brush type"); 3614Debug.Fail("Single brush expected");
AlphaFlattener\DrawingContext.cs (2)
682Debug.Fail("Opacity invalid at BrushProxyDecomposer"); 687Debug.Fail("Opacity invalid at BrushProxyDecomposer");
AlphaFlattener\Flattener.cs (1)
1171Debug.Fail("Wrong Primitive type");
AlphaFlattener\Primitive.cs (5)
1856Debug.Fail("Image over Brush?"); 2027Debug.Fail("GetShapeGeometry on Canvas"); 2033Debug.Fail("Exclude on Canvas"); 2038Debug.Fail("BlendBrush on Canvas"); 2045Debug.Fail("BlendOverImage on Canvas");
AlphaFlattener\Utility.cs (2)
960Debug.Fail("Unsupported PathSegment"); 1597Debug.Fail("Unhandled TileBrush type");
PrintConfig\PrintSchemaShim.cs (1)
658Debug.Fail("PrintTicketScope enum is out of range");
Serialization\VisualSerializer.cs (1)
820Debug.Fail("Brush not supported");
Roslyn.Diagnostics.Analyzers (12)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
32Debug.Fail(message.ToStringAndClear());
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
293Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 331Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
119Debug.Fail("Unhandled declaration pattern context");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
248Debug.Fail("Could not find common ancestor."); 271Debug.Fail("Could not find common ancestor.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
26Debug.Fail("Unhandled symbol kind in RequiresUnsafeModifierVisitor: " + node.Kind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
60Debug.Fail("FixAllScope.ContainingMember and FixAllScope.ContainingType are not supported in CodeStyle layer");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (4)
102Debug.Fail("Previous container didn't map back to a normal accessor container."); 111Debug.Fail("Accessor count shouldn't have changed as there were no top level edits."); 132Debug.Fail("Member count shouldn't have changed as there were no top level edits."); 139Debug.Fail("Child at indicated index should be a node as there were no top level edits.");
Roslyn.Diagnostics.CSharp.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (9)
235Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 241Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 370Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 394Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 403Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 414Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 448Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 457Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 477Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
827Debug.Fail("Unhandled pattern type");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
73Debug.Fail($"Unhandled compound assignment kind: {syntaxKind}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
875Debug.Fail("Unexpected node type " + node.Kind());
rzc (2)
Json\ObjectWriters_TagHelpers.cs (2)
55Debug.Fail($"Documentation objects should only be of type {nameof(DocumentationDescriptor)}, string, or null."); 204Debug.Fail($"Unsupported metadata kind '{value.Kind}'.");
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1721Debug.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)
821Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 827Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1032Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1185Debug.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)
690Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 716Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 907Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 929Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 945Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 967Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 1105Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1132Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1191Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1342Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1369Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1448Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1938Debug.Fail("unknown pipeline type"); 2065Debug.Fail("unknown pipeline type"); 2136Debug.Fail("unknown pipeline type"); 2277Debug.Fail("unknown pipeline type"); 2317Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2400Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2462Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2521Debug.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)
3792Debug.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\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
524Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 530Debug.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"); 2086Debug.Fail("This should have been handled above, irrespective of ignoreDataSetEvents value (true or false)"); 2433Debug.Fail("We should not get any exceptions because we always handle data-type conversion"); 2446Debug.Fail("We should not get any exceptions because DataSet.EnforceConstraints should be always off"); 2762Debug.Fail("We should not get any exceptions here"); 2790Debug.Fail("We should not get any exceptions here"); 2796Debug.Fail("Handle your case above"); 2823Debug.Fail("We should not get any exceptions here"); 2846Debug.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\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
524Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 530Debug.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)
789Debug.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.Data.OleDb (42)
ColumnBinding.cs (15)
238Debug.Fail("unexpected StatusValue"); 383Debug.Fail("should have bound as WSTR"); 386Debug.Fail("should have bound as NUMERIC"); 389Debug.Fail("UDT binding should not have been encountered"); 392Debug.Fail("should have bound as BYREF|WSTR"); 416Debug.Fail("should have bound as WSTR"); 419Debug.Fail("should have bound as BYREF|WSTR"); 587Debug.Fail("unknown DBTYPE"); 591Debug.Fail("Should have bound as WSTR"); 594Debug.Fail("UDT binding should not have been encountered"); 597Debug.Fail("not allowed to set HCHAPTER"); 600Debug.Fail("should have bound as NUMERIC"); 603Debug.Fail("should have bound as BYREF|WSTR"); 1671Debug.Fail("CheckStatusValue: unhandled data with ok status"); 1674Debug.Fail("CheckStatusValue: unhandled data with truncated status");
DbConnectionOptions.cs (2)
875Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 881Debug.Fail("ParseInternal code threw exception vs regex mismatch");
OleDb_Util.cs (5)
48Debug.Fail("CommandParameterStatus: unexpected E_CANTCREATE"); 57Debug.Fail("CommandParameterStatus: unexpected E_PERMISSIONDENIED"); 61Debug.Fail("CommandParameterStatus: unexpected E_INTEGRITYVIOLATION"); 65Debug.Fail("CommandParameterStatus: unexpected E_SCHEMAVIOLATION"); 69Debug.Fail("CommandParameterStatus: unexpected E_BADSTATUS");
OleDbCommand.cs (1)
690Debug.Fail("ExecuteReaderInternal: unknown result type");
OleDbConnection.cs (1)
242Debug.Fail($"Unknown 'Connection Status' value {connectionStatus.ToString("G", CultureInfo.InvariantCulture)}");
OleDbConnectionStringBuilder.cs (3)
121Debug.Fail("unexpected keyword"); 316Debug.Fail("unexpected keyword"); 360Debug.Fail("unexpected keyword");
OleDbDataReader.cs (4)
240Debug.Fail("object is disposed"); 251Debug.Fail("object is disposed"); 463Debug.Fail("bad IRow - IColumnsInfo not available"); 1296Debug.Fail("<oledb.OleDbDataReader.NextResultsInfinite|INFO> System.Data.OleDb.OleDbDataReader: 2000 IMultipleResult.GetResult(NULL, DBRESULTFLAG_DEFAULT, IID_NULL, NULL, NULL) iterations with 0 records affected. Stopping suspect infinite loop. To work-around try using ExecuteReader() and iterating through results with NextResult().\n");
OleDbReferenceCollection.cs (1)
35Debug.Fail("shouldn't be here");
RowBinding.cs (4)
58Debug.Fail("previous row not yet cleared"); 114Debug.Fail("unknown accessor buffer"); 386Debug.Fail("expected _needToReset"); 459Debug.Fail("investigate");
System\Data\Common\AdapterUtil.cs (5)
269Debug.Fail($"valid CommandType {value}"); 286Debug.Fail($"valid DataRowVersion {value}"); 306Debug.Fail($"valid IsolationLevel {value}"); 323Debug.Fail($"valid ParameterDirection {value}"); 340Debug.Fail($"valid UpdateRowSource {value}");
System\Data\ProviderBase\DbConnectionHelper.cs (1)
299Debug.Fail("unexpected state switch");
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\AggregatorStore.cs (1)
293Debug.Fail("Unexpected sequence type");
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\NativeWrapper.cs (1)
875Debug.Fail($"Do not understand EVT_SYSTEM_PROPERTY_ID {i}. A new case is needed.");
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\SharedPerformanceCounter.cs (1)
110Debug.Fail("Counter " + counterName + " does not exist in category " + catName);
System.Diagnostics.Process (10)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (6)
83Debug.Fail($"Failed to read \"{path}/memory.stat\": {e}"); 197Debug.Fail($"Failed to read \"{path}\": {e}"); 344Debug.Fail($"Unexpected cgroup version \"{cgroupVersion}\""); 357Debug.Fail($"Failed to read or parse \"{mountInfoFilePath}\": {e}"); 429Debug.Fail($"Unexpected cgroup version: \"{cgroupVersion}\""); 436Debug.Fail($"Failed to read or parse \"{procCGroupFilePath}\": {e}");
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
System\Diagnostics\ProcessManager.Linux.cs (1)
227Debug.Fail($"Unexpected status character: {c}");
System\Diagnostics\ProcessWaitState.Unix.cs (1)
392Debug.Fail("Unexpected errno value from kill");
System.DirectoryServices (9)
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (1)
600Debug.Fail("ConfigurationSet.GetRoleOwner: Invalid role type.");
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
538Debug.Fail("DirectoryContext::GetServerName - Unknown contextType");
System\DirectoryServices\ActiveDirectory\Domain.cs (1)
1057Debug.Fail("Domain.GetRoleOwner: Invalid role type.");
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
812Debug.Fail("Forest.GetRoleOwner: Invalid role type.");
System\DirectoryServices\ActiveDirectory\Utils.cs (2)
1734Debug.Fail($"ConfigurationSet::GetReplicaList - no dnsHostName information for replica {ntdsaName}"); 1749Debug.Fail($"ConfigurationSet::GetReplicaList - no port number information for replica {ntdsaName}");
System\DirectoryServices\ActiveDirectorySecurity.cs (2)
414Debug.Fail("Invalid PropertyAccess value"); 510Debug.Fail("Invalid PropagationFlags value");
System\DirectoryServices\DirectoryEntry.cs (1)
1101Debug.Fail("ntSecurityDescriptor property exists in cache but has no values.");
System.DirectoryServices.AccountManagement (43)
System\DirectoryServices\AccountManagement\AccountInfo.cs (3)
357Debug.Fail($"AccountInfo.LoadValueIntoProperty: fell off end looking for {propertyName}"); 405Debug.Fail($"AccountInfo.GetChangeStatusForProperty: fell off end looking for {propertyName}"); 442Debug.Fail($"AccountInfo.GetValueForProperty: fell off end looking for {propertyName}");
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (2)
122Debug.Fail("ADStoreCtx.ADDNConstraintLinkedAttrSet: Invalid constraint data. Expected: object of type ResultValidator"); 127Debug.Fail("ADStoreCtx.ADDNConstraintLinkedAttrSet: fell off end looking for " + _constraint.ToString());
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (2)
1059Debug.Fail("ADStoreCtx.GroupTypeFromLdapConverter: Fell off end looking for " + propertyName); 1467Debug.Fail("ADStoreCtx.GroupTypeToLdapConverter: Fell off end looking for " + propertyName);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (3)
206Debug.Fail($"ADStoreCtx.GetObjectClassPortion: fell off end looking for {principalType}"); 634Debug.Fail("ADStoreCtx.UserAccountControlConverter: fell off end looking for " + filter.PropertyName); 769Debug.Fail("ADStoreCtx.GroupTypeConverter: fell off end looking for " + filter.PropertyName);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1105Debug.Fail("ADStoreCtx.FindByDate: fell off end looking for " + matchType.ToString());
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (3)
561Debug.Fail("SDSUtils.AccountControlFromDirectoryEntry: Fell off end looking for " + propertyName); 745Debug.Fail( 753Debug.Fail("SDSUtils.AccountControlToDirectoryEntry: Fell off end looking for " + propertyName);
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (2)
494Debug.Fail("AuthenticablePrincipal.GetValueForProperty(AcctInfo): shouldn't be here"); 505Debug.Fail("AuthenticablePrincipal.GetValueForProperty(PwdInfo): shouldn't be here");
System\DirectoryServices\AccountManagement\AuthZSet.cs (2)
163Debug.Fail("With a zero-length buffer, this should have never succeeded"); 288Debug.Fail("AuthZSet.CurrentAsPrincipal: hit a user with a non-domain SID");
System\DirectoryServices\AccountManagement\Context.cs (1)
589Debug.Fail("PrincipalContext.Initialize: fell off end looking for " + _contextType.ToString());
System\DirectoryServices\AccountManagement\EmptySet.cs (1)
20Debug.Fail("EmptySet.CurrentAsPrincipal: Shouldn't be here");
System\DirectoryServices\AccountManagement\Group.cs (1)
272Debug.Fail("Group.LoadValueIntoProperty: Trying to load Members, but Members is demand-loaded.");
System\DirectoryServices\AccountManagement\PasswordInfo.cs (3)
281Debug.Fail($"PasswordInfo.LoadValueIntoProperty: fell off end looking for {propertyName}"); 316Debug.Fail($"PasswordInfo.GetChangeStatusForProperty: fell off end looking for {propertyName}"); 347Debug.Fail($"PasswordInfo.GetValueForProperty: fell off end looking for {propertyName}");
System\DirectoryServices\AccountManagement\Principal.cs (1)
1218Debug.Fail($"Principal.GetValueForProperty: Ran off end of list looking for {propertyName}");
System\DirectoryServices\AccountManagement\PrincipalCollectionEnumerator.cs (1)
202Debug.Fail($"PrincipalCollectionEnumerator.MoveNext: fell off end of function, mode = {_currentMode}");
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (3)
561Debug.Fail("SAMQuerySet.UserFlagsMatcher: fell off end looking for " + filter.PropertyName); 710Debug.Fail("FindByDateMatcher.Matches: Fell off end looking for propertyToMatch=" + _propertyToMatch.ToString()); 798Debug.Fail("FindByDateMatcher.TestForMatch: Fell off end looking for matchType=" + _matchType.ToString());
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (2)
28Debug.Fail("SAMStoreCtx: SearcherNativeType: There is no native searcher type."); 139Debug.Fail($"SAMStoreCtx.GetSchemaFilter: fell off end looking for {principalType}");
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (4)
333Debug.Fail("SAMStoreCtx.AccessCheck: user entry has an empty UserFlags value"); 341Debug.Fail("SAMStoreCtx.AccessCheck: Fell off end looking for " + targetPermission.ToString()); 775Debug.Fail("SAMStoreCtx.IsMemberOfInStore: Shouldn't be here."); 1087Debug.Fail("Property not found");
System\DirectoryServices\AccountManagement\SAM\SAMUtils.cs (4)
75Debug.Fail("SAMUtils.GetOSVersion: {computerDE.Path} claims to have negetive OS version, {version}"); 81Debug.Fail($"SAMUtils.GetOSVersion: FormatException on {version} for {computerDE.Path}"); 86Debug.Fail($"SAMUtils.GetOSVersion: OverflowException on {version} for {computerDE.Path}"); 108Debug.Fail($"SAMUtils.DirectoryEntryAsPrincipal: fell off end, Path={de.Path}, SchemaClassName={de.SchemaClassName}");
System\DirectoryServices\AccountManagement\StoreCtx.cs (1)
438Debug.Fail($"StoreCtx.BuildFilterSet: fell off end looking for {propertyName} of type {value.GetType()}");
System\DirectoryServices\AccountManagement\TrackedCollection.cs (3)
64Debug.Fail("TrackedCollection.SyncRoot: shouldn't be here."); 74Debug.Fail("TrackedCollection.IEnumerable.GetEnumerator(): should not be here"); 110Debug.Fail("TrackedCollection.GetEnumerator(): should not be here");
System.Drawing.Common (6)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
131Debug.Fail($"Exception thrown during Dispose: {ex}");
System\Drawing\Drawing2D\GraphicsPathIterator.cs (1)
46Debug.Fail($"Exception thrown during Dispose: {ex}");
System\Drawing\Graphics.cs (1)
3435Debug.Fail("Warning: context state not found!");
System\Drawing\Printing\PrinterSettings.cs (1)
822Debug.Fail("Invalid field in GetModeField");
System\Drawing\Printing\PrinterUnitConvert.cs (1)
81Debug.Fail($"Unknown PrinterUnit {unit}");
System\Drawing\StringFormat.cs (1)
87Debug.Fail($"Exception thrown during Dispose: {ex}");
System.Formats.Asn1 (25)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
226Debug.Fail("Fallback should have thrown"); 256Debug.Fail("Fallback should have thrown"); 295Debug.Fail("Fallback should have thrown"); 326Debug.Fail("Fallback should have thrown"); 342Debug.Fail("Fallback should have thrown");
System\Formats\Asn1\AsnCharacterStringEncodings.net.cs (2)
51Debug.Fail("Fallback should have thrown"); 83Debug.Fail("Fallback should have thrown");
System\Formats\Asn1\AsnDecoder.BitString.cs (2)
328Debug.Fail("TryCopyConstructedBitStringValue failed with a pre-allocated buffer"); 548Debug.Fail("Non-overlapping data encountered...");
System\Formats\Asn1\AsnDecoder.cs (3)
315Debug.Fail($"No handler is present for status {status}."); 544Debug.Fail($"No handler for validity {validity}."); 688Debug.Fail("AsnReader asked for a matching slice from a non-overlapping input");
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (2)
211Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(FracState)}"); 291Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(SuffixState)}");
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
347Debug.Fail("TryReadBitString failed with an over-allocated buffer");
System\Formats\Asn1\AsnDecoder.OctetString.cs (2)
413Debug.Fail("Non-overlapping data encountered..."); 530Debug.Fail("TryCopyConstructedOctetStringContents failed with a pre-allocated buffer");
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
99Debug.Fail($"UtcTime did not fit in tmpSpace ({contents.Length} total)");
System\Formats\Asn1\AsnWriter.cs (2)
441Debug.Fail($"TryWrite failed or written was wrong value ({written} vs {spaceRequired})"); 914Debug.Fail($"No handler for {_frame.ItemType}");
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (2)
88Debug.Fail($"Utf8Formatter.TryFormat could not format {floatingTicks} / TicksPerSecond"); 132Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System\Formats\Asn1\AsnWriter.Text.cs (2)
105Debug.Fail( 122Debug.Fail(
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
108Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System.Formats.Cbor (6)
System\Formats\Cbor\CborConformanceLevel.cs (1)
256Debug.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)
461Debug.Fail("Invalid CBOR major type pushed to stack.");
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
193Debug.Fail("Unreachable code in decimal exponentiation logic");
System.Formats.Tar (1)
System\Formats\Tar\TarEntry.cs (1)
624Debug.Fail($"Metadata entry type should not be visible: '{EntryType}'");
System.IO.Compression (3)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (3)
335Debug.Fail("check why we are here!"); 479Debug.Fail("check why we are here!"); 671Debug.Fail("check why we are here!");
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
System.IO.FileSystem.Watcher (3)
src\runtime\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)
435Debug.Fail("Unknown FileSystemEvent change type! Value: " + changeType);
System\IO\FileSystemWatcher.Linux.cs (1)
871Debug.Fail("Buffer provided to read was too small");
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
205Debug.Fail($"shm_open failed with ENAMETOOLONG for {Encoding.UTF8.GetByteCount(mapName)} byte long name.");
System.IO.Packaging (3)
System\IO\Packaging\PackageRelationshipSelector.cs (1)
153Debug.Fail("This option should never be called");
System\IO\Packaging\PartBasedPackageProperties.cs (1)
592Debug.Fail("Unknown value type for properties");
System\IO\Packaging\ZipPackage.cs (1)
479Debug.Fail("Encountered an invalid CompressionOption enum value");
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
532Debug.Fail("This should not happen");
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
67Debug.Fail("The ExceptionArgument value is not defined.");
System.Linq.Expressions (1)
System\Dynamic\Utils\ContractUtils.cs (1)
22Debug.Fail("Unreachable");
System.Linq.Parallel (18)
System\Linq\Parallel\Enumerables\ParallelQuery.cs (4)
52Debug.Fail("The derived class must override this method."); 65Debug.Fail("The derived class must override this method."); 78Debug.Fail("The derived class must override this method."); 127Debug.Fail("The derived class must override this method.");
System\Linq\Parallel\Merging\ArrayMergeHelper.cs (1)
76Debug.Fail("ArrayMergeHelper<>.GetEnumerator() is not intended to be used. Call GetResultsAsArray() instead.");
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
175Debug.Fail("An ordered pipelining merge is not intended to be used this way."); 375Debug.Fail("QueryEnd() should have thrown an exception.");
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
204Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
140Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\QueryResults.cs (2)
63Debug.Fail("GetElement property is not supported by non-indexable query results"); 78Debug.Fail("ElementsCount property is not supported by non-indexable query results");
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
129Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
107Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in Aggregate().");
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
105Debug.Fail("AsSequentialQuery is not supported on ForAllOperator");
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
99Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
78Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
273Debug.Fail("Search should have found a maximal element");
System.Net.Http (19)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
182Debug.Fail("HPACK decoder reach an invalid state");
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System\Net\Http\Headers\WarningHeaderValue.cs (1)
220Debug.Fail("Unable to parse value even though it was parsed as <=3 digits string. Input: '" +
System\Net\Http\HttpRuleParser.cs (2)
280Debug.Fail("'NotParsed' is unexpected: We started nested expression " + 290Debug.Fail("Unknown enum result: " + nestedResult);
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
421Debug.Fail($"Unexpected state: {_state}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
177Debug.Fail("Unknown HttpConnectionKind in HttpConnectionPool.ctor"); 1007Debug.Fail($"Unexpected exception while evaluating connections for eviction: {e}");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
1287Debug.Fail($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 2161Debug.Fail($"Stream {http2Stream.StreamId} not found in dictionary during RemoveStream???"); 2231Debug.Fail($"Unexpected keep alive state ({_keepAliveState})");
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (5)
383Debug.Fail($"Unexpected exception type in Http3RequestStream.SendAsync: {ex}"); 627Debug.Fail($"Received unexpected frame type {frameType}."); 1082Debug.Fail(message); 1155Debug.Fail($"Unexpected {nameof(Http3RequestStream)}.{nameof(_headerState)} '{_headerState}'."); 1163Debug.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)
55Debug.Fail("Bad socks version.");
System.Net.Http.WinHttpHandler (2)
src\runtime\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\Net\Http\WinHttpTrailersHelper.cs (1)
53Debug.Fail("Querying WINHTTP_OPTION_STREAM_ERROR_CODE on a session handle should never succeed.");
System.Net.Mail (3)
System\Net\Mime\Base64Encoder.cs (3)
74Debug.Fail("paddind was not in range [0,2]"); 115Debug.Fail("paddind was not in range [0,2]"); 141Debug.Fail("paddind was not in range [0,2]");
System.Net.NameResolution (9)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System\Net\Dns.cs (4)
30Debug.Fail("LogFailure should return false"); 558Debug.Fail("LogFailure should return false"); 615Debug.Fail("LogFailure should return false"); 650Debug.Fail("LogFailure should return false");
System\Net\NameResolutionPal.Unix.cs (2)
48Debug.Fail($"Unexpected error: {error} errno: {Interop.Sys.GetErrNo()}"); 51Debug.Fail($"Unexpected error: {error}");
System.Net.NetworkInformation (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
31Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
215Debug.Fail($"Unexpected error: {ex}");
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
31Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
119Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_IsSignatureAlgorithmAvailable)}");
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Requests (1)
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System.Net.Security (9)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (1)
119Debug.Fail($"Unexpected result {result} from {nameof(CryptoNative_IsSignatureAlgorithmAvailable)}");
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
528Debug.Fail("Failed to add issuer to trusted CA list.");
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
166Debug.Fail("Unable to load required type.");
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\runtime\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)
186Debug.Fail($"Unknown EncryptionPolicy value ({policy})");
System\Net\Security\NegotiateStream.cs (2)
790Debug.Fail("Unreachable"); 851Debug.Fail("Unreachable");
System.Net.Sockets (5)
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\runtime\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\runtime\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 (125)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
395Debug.Fail("RuntimeMethodHandle should only return a methodbase implemented by the runtime.");
Internal\Reflection\Core\Execution\ExecutionDomain.cs (1)
152Debug.Fail("Invalid RuntimeTypeHandle");
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\MethodTable.cs (2)
710Debug.Fail("RequiresAlign8 called for array or string"); 1273Debug.Fail("Unknown MethodTable field type");
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifier.cs (1)
283Debug.Fail("Bucket " + bucket + " has a cycle in its linked list.");
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierW.cs (2)
222Debug.Fail("Add: You were supposed to verify inside the lock that this entry's weak reference had already expired!"); 368Debug.Fail("Bucket " + bucket + " has a cycle in its linked list.");
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Concurrent\ConcurrentUnifierWKeyed.cs (1)
355Debug.Fail("Bucket " + bucket + " has a cycle in its linked list.");
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
955Debug.Fail("unreachable");
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (1)
704Debug.Fail("unknown generic variance type");
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
67Debug.Fail($"Failed to read \"{ProcMountInfoFilePath}\": {e}");
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
35Debug.Fail($"GetHostName failed with error {err}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
517Debug.Fail("Fell through switch in Array.Copy!"); 1337Debug.Fail("All primitive types should be handled above"); 1845Debug.Fail("All primitive types should be handled above"); 2072Debug.Fail("All primitive types should be handled above");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64Helper.cs (4)
25Debug.Fail($"Read for {typeof(TVector)} is not within safe bounds. srcIndex: {srcIndex}, srcLength: {srcLength}"); 39Debug.Fail($"Write for {typeof(TVector)} is not within safe bounds. destIndex: {destIndex}, destLength: {destLength}"); 53Debug.Fail($"Read for {typeof(TVector)} is not within safe bounds. srcIndex: {srcIndex}, srcLength: {srcLength}"); 67Debug.Fail($"Write for {typeof(TVector)} is not within safe bounds. destIndex: {destIndex}, destLength: {destLength}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\ParserHelpers.cs (1)
69Debug.Fail("Control should never reach this point.");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
442Debug.Fail("EventSource did not have a registered EventListener!");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
116Debug.Fail("GetSessionInfo returned false.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
133Debug.Fail($"Unsupported type \"{parameterType}\" encountered.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (3)
462Debug.Fail("Unknown enum underlying type"); 1246Debug.Fail("Unknown enum underlying type"); 1348Debug.Fail("Unknown enum underlying type");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
72Debug.Fail($"Unable to get home directory: {exc}"); 244Debug.Fail($"Failed reading {userDirsPath}: {exc}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
464Debug.Fail(e.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
209Debug.Fail("Not expected to come here");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (5)
246Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleStringData)] Failed"); 271Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleNumberData)] failed"); 287Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleGroupingData type)] failed"); 325Debug.Fail("[CultureData.GetTimeFormatString(bool shortFormat)] Failed"); 504Debug.Fail("[CultureData.IcuGetListSeparator] Unexpected ListSeparator value.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
2418Debug.Fail("The hashtable is full. This should not happen."); 2502Debug.Fail("The hashtable is full. This should not happen.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
1060Debug.Fail("Should never be reached"); 1082Debug.Fail("Should never be reached"); 5335Debug.Fail("Unknown DateTimeParseFailure: " + result.failure.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
130Debug.Fail("Should never be called non-Windows platforms.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
539Debug.Fail("Unexpected special token '%', Bug in DateTimeFormatInfo.FullTimeSpan[Positive|Negative]Pattern");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
108Debug.Fail($"Unknown platform {_platform}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
197Debug.Fail("Not used or called for this implementation.");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeNameResolver.cs (2)
18Debug.Fail("Expected to be unreachable"); 64Debug.Fail("Expected to be unreachable");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
72Debug.Fail("SetStateMachine should not be used.");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
270Debug.Fail("Fell through switch statement!");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
317Debug.Fail("Unable to find escape sequence for this character");
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (3)
86Debug.Fail("Vector<T> is unexpected size."); 98Debug.Fail("Vector<T> is unexpected size."); 104Debug.Fail("Vector<T> is greater than 512 bits in size?");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
741Debug.Fail("Should not reach this point.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2413Debug.Fail("We should not be able to reach this point of MakeSeparatorListVectorized.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
499Debug.Fail("Unknown types.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (2)
259Debug.Fail("Unexpected OperationStatus return value."); 324Debug.Fail("Unexpected OperationStatus return value.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
234Debug.Fail("Unexpected return value.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
374Debug.Fail("Unknown return value.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (7)
76Debug.Fail("This should be overridden by a subclassed type."); 82Debug.Fail("This should be overridden by a subclassed type."); 114Debug.Fail("This should be overridden by a subclassed type."); 207Debug.Fail("This should be overridden by a subclassed type."); 470Debug.Fail("This should be overridden by a subclassed type."); 801Debug.Fail("This should be overridden by a subclassed type."); 1066Debug.Fail("This should be overridden by a subclassed type.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
241Debug.Fail("Unexpected code page");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Condition.cs (2)
67Debug.Fail("Waiter is not in the waiter list"); 78Debug.Fail("Waiter is in the waiter list, but should not be");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
290Debug.Fail("The sentinel delegate should never be invoked.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
495Debug.Fail("Invalid m_action in Task<TResult>");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2559Debug.Fail("Invalid m_action in Task"); 7633Debug.Fail("UnwrapPromise in illegal state");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs (1)
15Debug.Fail("Unreachable");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
72Debug.Fail("Should have found the queue");
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
1064Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 1252Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
1248Debug.Fail("Missed all cases for computing Tuple hash code");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
175Debug.Fail(" WeakReference<T> finalizer should never run");
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
231Debug.Fail("Pre-allocated full name should have been provided in the ctor");
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (6)
360Debug.Fail("Expected to be unreachable"); 371Debug.Fail("Expected to be unreachable"); 382Debug.Fail("Expected to be unreachable"); 393Debug.Fail("Expected to be unreachable"); 404Debug.Fail("Expected to be unreachable"); 415Debug.Fail("Expected to be unreachable");
System\InvokeUtils.cs (11)
201Debug.Fail("Expected to be unreachable"); 225Debug.Fail("Expected to be unreachable"); 253Debug.Fail("Expected to be unreachable"); 274Debug.Fail("Expected to be unreachable"); 292Debug.Fail("Expected to be unreachable"); 311Debug.Fail("Expected to be unreachable"); 326Debug.Fail("Expected to be unreachable"); 341Debug.Fail("Expected to be unreachable"); 353Debug.Fail("Expected to be unreachable"); 359Debug.Fail("Expected to be unreachable"); 424Debug.Fail("Unexpected CheckArgumentSemantics value: " + semantics);
System\Reflection\ModifiedType.NativeAot.cs (1)
73Debug.Fail(handle.HandleType.ToString());
System\Reflection\Runtime\BindingFlagSupport\ConstructorPolicies.cs (1)
60Debug.Fail("This code path should be unreachable.");
System\Reflection\Runtime\TypeInfos\RuntimeGenericParameterTypeInfo.cs (1)
107Debug.Fail("Since this class always returns null for FullName, this helper should be unreachable.");
System\Runtime\InteropServices\TypeMapLazyDictionary.NativeAot.cs (2)
52Debug.Fail("Expected exception stub to throw an exception."); 95Debug.Fail("Expected exception stub to throw an exception.");
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CodeGenerator.cs (2)
694Debug.Fail("Data can only be stored into ArgBuilder or LocalBuilder."); 817Debug.Fail("Char is not a valid schema primitive and should be treated as int in DataContract");
System\Runtime\Serialization\DataContract.cs (1)
427Debug.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)
84Debug.Fail("Object table overflow"); 119Debug.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.Reflection.Execution (3)
Internal\Reflection\Execution\FieldAccessors\StaticFieldAccessor.cs (1)
61Debug.Fail("Cannot call Offset on a static field.");
Internal\Reflection\Execution\TypeLoader\TypeCast.cs (1)
204Debug.Fail("unknown generic variance type");
src\runtime\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?");
System.Private.StackTraceMetadata (1)
Internal\StackTraceMetadata\MethodNameFormatter.cs (1)
248Debug.Fail($"Type handle {typeHandle.HandleType} was not handled");
System.Private.TypeLoader (15)
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
333Debug.Fail("Unexpected BagElementKind for generic method with name " + method.NameAndSignature.GetName() + "! Only BagElementKind.DictionaryLayout should appear.");
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\MethodTable.cs (2)
710Debug.Fail("RequiresAlign8 called for array or string"); 1273Debug.Fail("Unknown MethodTable field type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\GenericParameterDesc.Canon.cs (2)
13Debug.Fail("IsCanonicalSubtype of an indefinite type"); 19Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (2)
66Debug.Fail("Invalid CanonicalFormKind: " + kind); 86Debug.Fail("Invalid CanonicalFormKind: " + kind);
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\SignatureVariable.Canon.cs (4)
13Debug.Fail("IsCanonicalSubtype of an indefinite type"); 19Debug.Fail("ConvertToCanonFormImpl for an indefinite type"); 29Debug.Fail("IsCanonicalSubtype of an indefinite type"); 35Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\TypeDesc.Canon.cs (2)
29Debug.Fail("Invalid CanonicalFormKind: " + kind); 49Debug.Fail("Invalid CanonicalFormKind: " + kind);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
72Debug.Fail("Multi-module assemblies");
src\runtime\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?");
System.Private.Uri (1)
System\UriExt.cs (1)
930Debug.Fail("Uri failed to locate custom port at index: " + portIndex);
System.Private.Windows.Core (14)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
51Debug.Fail(ex.Message);
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
52Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}");
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
610Debug.Fail("All mapped formats must be either restricted or not restricted.");
System\TypeExtensions.cs (1)
280Debug.Fail(e.Message);
System\Value.cs (1)
68Debug.Fail($"Unexpected type {type.Name}.");
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (3)
62Debug.Fail("We should be special casing FontFamilyNotFound so we can provide the font name"); 66Debug.Fail("We should be special casing FontStyleNotFound so we can provide the font name"); 70Debug.Fail("We should be special casing NotTrueTypeFont so we can provide the font name");
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
31Debug.Fail($"GetWindowTextLength failed. Error: {new Win32Exception(error).Message}"); 50Debug.Fail($"GetWindowText failed. Error: {new Win32Exception().Message}");
Windows\Win32\System\Com\ComHelpers.cs (1)
191Debug.Fail("How did we fail to query for IUnknown?");
Windows\Win32\System\Com\WinFormsComWrappers.cs (2)
28Debug.Fail("object does not implement IManagedWrapper"); 85Debug.Fail($"Exception thrown in UnwrapAndInvoke {ex.Message}.");
Windows\Win32\System\Variant\VARIANT.cs (1)
455Debug.Fail("The CLR should not support arrays with more than 32 dimensions.");
System.Private.Xml (260)
System\Xml\BinaryXml\XmlBinaryReader.cs (8)
809Debug.Fail("Unexpected parent NodeType"); 1124Debug.Fail("should never happen"); 1214Debug.Fail("should never happen"); 1309Debug.Fail("should never happen"); 1404Debug.Fail("should never happen"); 1499Debug.Fail("should never happen"); 1594Debug.Fail("should never happen"); 1689Debug.Fail("should never happen");
System\Xml\Cache\XPathDocumentNavigator.cs (1)
84Debug.Fail("ReadStringValue() should have taken care of these node types.");
System\Xml\Core\ReadContentAsBinaryHelper.cs (4)
93Debug.Fail($"Unexpected state {_state}"); 136Debug.Fail($"Unexpected state {_state}"); 179Debug.Fail($"Unexpected state {_state}"); 222Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
44Debug.Fail($"Unexpected state {_state}"); 88Debug.Fail($"Unexpected state {_state}"); 132Debug.Fail($"Unexpected state {_state}"); 176Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReader.cs (1)
188Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
50Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlEventCache.cs (3)
241Debug.Fail($"Unknown event: {page[idxEvent].EventType}"); 247Debug.Fail("Unknown event should be added to end of event sequence."); 304Debug.Fail("Unknown event should be added to end of event sequence.");
System\Xml\Core\XmlSubtreeReader.cs (10)
533Debug.Fail($"Unexpected state {_state}"); 652Debug.Fail($"Unexpected state {_state}"); 878Debug.Fail($"Unexpected state {_state}"); 901Debug.Fail($"Unexpected state {_state}"); 958Debug.Fail($"Unexpected state {_state}"); 1016Debug.Fail($"Unexpected state {_state}"); 1039Debug.Fail($"Unexpected state {_state}"); 1095Debug.Fail($"Unexpected state {_state}"); 1154Debug.Fail($"Unexpected state {_state}"); 1552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlSubtreeReaderAsync.cs (9)
96Debug.Fail($"Unexpected state {_state}"); 178Debug.Fail($"Unexpected state {_state}"); 284Debug.Fail($"Unexpected state {_state}"); 307Debug.Fail($"Unexpected state {_state}"); 364Debug.Fail($"Unexpected state {_state}"); 422Debug.Fail($"Unexpected state {_state}"); 445Debug.Fail($"Unexpected state {_state}"); 501Debug.Fail($"Unexpected state {_state}"); 552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlTextReaderImpl.cs (19)
442Debug.Fail($"Unexpected conformance level {settings.ConformanceLevel}"); 838default: Debug.Fail($"Unexpected fragment type {_fragmentType}"); goto case XmlNodeType.None; 1210Debug.Fail("Invalid InitInputType"); 1334Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1362Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1517Debug.Fail("Unexpected entity type"); 1543Debug.Fail("Unexpected entity type"); 3048Debug.Fail("Unhandled DtdProcessing enumeration value."); 3554Debug.Fail("We should get an exception again."); 3848Debug.Fail($"Unexpected xmlDeclState {xmlDeclState}"); 4642Debug.Fail("We should never get to this point."); 5322Debug.Fail("We should never get to this point."); 5343Debug.Fail("no EndEntity reporting while parsing attributes"); 6132Debug.Fail($"Unexpected parsing states stack top {_parsingStatesStackTop}"); 7055Debug.Fail("We should never get to this point."); 7156Debug.Fail("We should never get to this point."); 8271Debug.Fail($"Unexpected read state {_incReadState}"); 8655Debug.Fail("We should never get to this point."); 8713Debug.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)
704Debug.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)
295Debug.Fail("Expected currentState <= State.Error "); 1534Debug.Fail("State.Attribute == currentState || State.RootLevelAttr == currentState"); 1948Debug.Fail("We should not get to this point."); 1975Debug.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)
402Debug.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)
61get { Debug.Fail("Should not use base property"); return null; } 62set { Debug.Fail("Should not use base property"); } 71get { Debug.Fail("Should not use base property"); return null; } 72set { 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)
1091Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1110Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1115Debug.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)
500default: 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)
175Debug.Fail("Should never be called on XmlAttributeCache."); 179Debug.Fail("Should never be called on XmlAttributeCache."); 183Debug.Fail("Should never be called on XmlAttributeCache."); 187Debug.Fail("Should never be called on XmlAttributeCache."); 191Debug.Fail("Should never be called on XmlAttributeCache."); 196Debug.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)
1020Debug.Fail($"Text cannot be output in the {_xstate} state."); 1191Debug.Fail($"Unexpected node type {navigator.NodeType}"); 1339Debug.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)
747default: Debug.Fail($"Unexpected type of AST node: {nodeType}"); result = null; break; 1877Debug.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"); 253default: 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)
1174Debug.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)
762Debug.Fail("Unexpected result of RecordBuilder.BeginEvent()"); 802Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 837Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 865Debug.Fail("Invalid XPathNodeType in CopyBeginEvent"); 894Debug.Fail("Invalid XPathNodeType in CopyTextEvent"); 924Debug.Fail("Invalid XPathNodeType in CopyEndEvent");
System\Xml\Xsl\XsltOld\RootAction.cs (1)
287Debug.Fail("Invalid RootAction execution state");
System\Xml\Xsl\XsltOld\SequentialOutput.cs (4)
436Debug.Fail("Should never get here"); 477Debug.Fail("Should never get here"); 485Debug.Fail("Should never get here"); 506Debug.Fail("Should never get here");
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
248Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\TextAction.cs (1)
81Debug.Fail("Invalid execution state in TextAction");
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (1)
85Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\ValueOfAction.cs (2)
84Debug.Fail("Invalid ValueOfAction execution state"); 123Debug.Fail("Invalid BuiltInRuleTextAction execution state");
System\Xml\Xsl\XsltOld\VariableAction.cs (1)
180Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WithParamAction.cs (1)
66Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
46Debug.Fail("XSLT never gives us CDATA"); 75Debug.Fail($"Invalid NodeType on output: {mainNode.NodeType}");
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
736Debug.Fail("unexpected XPath type");
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
219Debug.Fail("Override invoked");
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
1032System.Diagnostics.Debug.Fail("Parent node doesn't contain itself.");
System.Reflection.Metadata (5)
System\Reflection\Metadata\TypeName.cs (1)
231Debug.Fail("Pre-allocated full name should have been provided in the ctor");
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (1)
169Debug.Fail("Unexpected virtual index value");
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (1)
138Debug.Fail($"Unexpected treatment {treatment}");
System\Reflection\Metadata\TypeSystem\TypeReference.cs (2)
109Debug.Fail("Unknown TypeRef treatment"); 137Debug.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.AccessControl (23)
System\Security\AccessControl\ACE.cs (5)
91Debug.Fail("Length > ushort.MaxValue"); 641Debug.Fail("OpaqueLength somehow managed to exceed MaxOpaqueLength"); 878Debug.Fail("Invalid ACE type"); 1211Debug.Fail("OpaqueLength somehow managed to exceed MaxOpaqueLength"); 1683Debug.Fail("OpaqueLength somehow managed to exceed MaxOpaqueLength");
System\Security\AccessControl\ACL.cs (5)
242Debug.Fail("aceLength % 4 != 0"); 344Debug.Fail("aceLength % 4 != 0"); 374Debug.Fail("aceLength % 4 != 0"); 1368Debug.Fail("Audit and alarm ACEs must have been stripped by remove-meaningless logic"); 1431Debug.Fail("Allow and deny ACEs must have been stripped by remove-meaningless logic");
System\Security\AccessControl\CommonObjectSecurity.cs (3)
251Debug.Fail("Invalid operation"); 292Debug.Fail("Invalid operation"); 310Debug.Fail("rule.AccessControlType unrecognized");
System\Security\AccessControl\NativeObjectSecurity.cs (2)
143Debug.Fail($"Win32GetSecurityInfo() failed with unexpected error code {error}"); 277Debug.Fail($"Unexpected error code {error}");
System\Security\AccessControl\Privilege.cs (4)
112System.Diagnostics.Debug.Fail($"LookupPrivilegeValue() failed with unrecognized error code {error}"); 262System.Diagnostics.Debug.Fail($"WindowsIdentity.GetCurrentThreadToken() failed with unrecognized error code {error}"); 455System.Diagnostics.Debug.Fail($"AdjustTokenPrivileges() failed with unrecognized error code {error}"); 520System.Diagnostics.Debug.Fail($"AdjustTokenPrivileges() failed with unrecognized error code {error}");
System\Security\AccessControl\SecurityDescriptor.cs (3)
184Debug.Fail("binaryForm produced invalid output"); 189Debug.Fail($"Win32.ConvertSdToSddl returned {error}"); 484Debug.Fail($"Unexpected error out of Win32.ConvertStringSdToSd: {error}");
System\Security\AccessControl\Win32.cs (1)
273Debug.Fail("Internal error: both name and handle are null");
System.Security.Cryptography (166)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (1)
72Debug.Fail("Written byte count does not match required byte count.");
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
166Debug.Fail("Unable to load required type.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
82Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} bytes when {expectedOutputSize} was expected");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
94Debug.Fail($"A signature field was longer ({signatureField.Length}) than expected ({response.Length})");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
145Debug.Fail("TryEncode failed with a pre-allocated buffer");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1517Debug.Fail("Max sized buffer was not large enough."); 1639Debug.Fail("Max sized buffer was not large enough.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
522Debug.Fail($"Unsupported OID: {oid}.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (5)
56Debug.Fail($"Unexpected parameter set {parameterSet}"); 95Debug.Fail("Buffer too small but caller should have already validated the buffer size."); 144Debug.Fail($"Private key size too large for buffer: {privateKey.Length} / {destination.Length}"); 212Debug.Fail($"Unknown algorithm {Algorithm.Name}."); 220Debug.Fail(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (5)
59Debug.Fail("Base class should have validated algorithm support."); 85Debug.Fail("Base class should have validated algorithm support."); 107Debug.Fail("Base class should have validated algorithm support."); 170Debug.Fail("Unsupported algorithm."); 178Debug.Fail(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (2)
61Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}"); 97Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
81Debug.Fail($"Unknown curve {algorithm}");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
63Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (2)
88Debug.Fail($"Unexpected parameter set {parameterSet}"); 462Debug.Fail(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (2)
51Debug.Fail($"Expected {destination.Length} bytes, but {nameof(Interop.BCrypt.BCryptSignHashPqcPure)} wrote {written} bytes."); 245Debug.Fail(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (1)
25Debug.Fail("dwMagic is not expected value");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (1)
80Debug.Fail($"Unexpected parameter set '{parameterSet}'.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
415Debug.Fail($"UTF-8 encoding size changed between GetByteCount and GetBytes"); 444Debug.Fail("TryEncode failed with a pre-allocated buffer"); 627Debug.Fail("Key-sized OID included in the if, but not the switch"); 785Debug.Fail($"No Specified Salt value is present, indicating a new choice was unhandled"); 915Debug.Fail( 1037Debug.Fail("TryGetHashAndReset failed with pre-allocated input"); 1050Debug.Fail("TryGetHashAndReset failed with pre-allocated input");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PemKeyHelpers.Factory.cs (2)
80Debug.Fail("Base64 decoding failed on already validated contents."); 145Debug.Fail("Base64 decoding failed on already validated contents.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
184Debug.Fail("TryEncode failed with a pre-allocated buffer"); 214Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
559Debug.Fail($"No handler for {ConfidentialityMode}");
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (7)
46Debug.Fail($"Unknown MLDsaAlgorithm: {algorithm}"); 101Debug.Fail("Unknown blob type."); 125Debug.Fail("Unknown blob type."); 151Debug.Fail("Unknown blob type."); 174Debug.Fail("Unknown blob type."); 273Debug.Fail($"Unknown MLKemAlgorithm: {algorithm.Name}"); 289Debug.Fail($"Unknown blob type '{other}'.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
112Debug.Fail("TryEncode failed with a presized buffer");
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
82Debug.Fail("BCryptKeyDerivation resultLength != destination.Length"); 211Debug.Fail($"Unexpected hash algorithm '{hashAlgorithmName}'");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (2)
349Debug.Fail("Export unexpectedly failed to pre-sized buffer or wrote an unexpected number of bytes."); 376Debug.Fail("Export unexpectedly failed to pre-sized buffer or wrote an unexpected number of bytes.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (1)
87Debug.Fail($"Unexpected number of bytes written: {written}.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
68Debug.Fail($"{nameof(MLDsaCng)} should only give ML-DSA keys.");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
1263Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macKey.Length} bytes");
System\Security\Cryptography\CapiHelper.Windows.cs (4)
436Debug.Fail($"Unexpected key param {keyParam}"); 593Debug.Fail($"Unexpected key param {keyParam}"); 618Debug.Fail("Unknown param in SetKeyParameter"); 643Debug.Fail("Unknown param in SetKeyParameter");
System\Security\Cryptography\CngKey.EC.cs (1)
63Debug.Fail($"Unknown curve {algorithm}");
System\Security\Cryptography\CryptoConfig.cs (1)
410Debug.Fail("Unsupported Dictionary value:" + retvalObj.ToString());
System\Security\Cryptography\CryptographicOperations.cs (2)
847Debug.Fail($"Validated hash algorithm '{hashAlgorithm.Name}' size ({hashSizeInBytes}) exceeds stack alloc."); 939Debug.Fail($"Validated hash algorithm '{hashAlgorithm.Name}' size ({hashSizeInBytes}) exceeds stack alloc.");
System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs (1)
88Debug.Fail($"Unknown KDF ({KeyDerivationFunction})");
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (2)
80Debug.Fail($"Unknown algorithm {alg}"); 125Debug.Fail("Should not have invalid key size");
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\ECDsaCng.Key.cs (2)
69Debug.Fail($"Unknown algorithm {alg}"); 108Debug.Fail("Should not have invalid key size");
System\Security\Cryptography\HashProviderDispenser.Windows.cs (4)
136Debug.Fail("Caller should have checked length."); 172Debug.Fail("Caller should have checked length."); 265Debug.Fail("Unknown hash algorithm."); 271Debug.Fail("Caller should have checked length.");
System\Security\Cryptography\Helpers.cs (3)
183Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded"); 249Debug.Fail($"Missing match criteria for curve type {aCurve.CurveType}"); 335Debug.Fail("Contents do not overlap original span");
System\Security\Cryptography\HKDF.Windows.cs (1)
223Debug.Fail("HKDF resultLength != destination.Length");
System\Security\Cryptography\LiteHash.Windows.cs (4)
90Debug.Fail($"Unexpected hash algorithm name '{algorithm}'."); 105Debug.Fail("Unexpectedly asked for the hash size of KMAC."); 210Debug.Fail($"Unexpected hash algorithm name '{algorithm}'."); 225Debug.Fail("Unexpectedly asked for the hash size of a XOF.");
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
30Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\MLDsaOpenSsl.NotSupported.cs (12)
21Debug.Fail("Caller should have checked platform availability."); 27Debug.Fail("Caller should have checked platform availability."); 33Debug.Fail("Caller should have checked platform availability."); 39Debug.Fail("Caller should have checked platform availability."); 45Debug.Fail("Caller should have checked platform availability."); 51Debug.Fail("Caller should have checked platform availability."); 57Debug.Fail("Caller should have checked platform availability."); 63Debug.Fail("Caller should have checked platform availability."); 69Debug.Fail("Caller should have checked platform availability."); 75Debug.Fail("Caller should have checked platform availability."); 81Debug.Fail("Caller should have checked platform availability."); 87Debug.Fail("Caller should have checked platform availability.");
System\Security\Cryptography\MLKemOpenSsl.NotSupported.cs (8)
21Debug.Fail("Caller should have checked platform availability."); 27Debug.Fail("Caller should have checked platform availability."); 33Debug.Fail("Caller should have checked platform availability."); 39Debug.Fail("Caller should have checked platform availability."); 45Debug.Fail("Caller should have checked platform availability."); 51Debug.Fail("Caller should have checked platform availability."); 57Debug.Fail("Caller should have checked platform availability."); 63Debug.Fail("Caller should have checked platform availability.");
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (3)
77Debug.Fail("Preallocated buffer was too small."); 193Debug.Fail("PBKDF2 resultLength != destination.Length"); 218Debug.Fail($"Unexpected hash algorithm '{hashAlgorithmName}'");
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\RSABCrypt.cs (1)
423Debug.Fail(
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\SlhDsaOpenSsl.NotSupported.cs (9)
17Debug.Fail("Caller should have checked platform availability."); 23Debug.Fail("Caller should have checked platform availability."); 29Debug.Fail("Caller should have checked platform availability."); 35Debug.Fail("Caller should have checked platform availability."); 41Debug.Fail("Caller should have checked platform availability."); 47Debug.Fail("Caller should have checked platform availability."); 53Debug.Fail("Caller should have checked platform availability."); 59Debug.Fail("Caller should have checked platform availability."); 65Debug.Fail("Caller should have checked platform availability.");
System\Security\Cryptography\SymmetricPadding.cs (2)
31Debug.Fail($"Unknown padding mode {paddingMode}."); 145Debug.Fail($"Unknown padding mode {padding}.");
System\Security\Cryptography\X25519DiffieHellmanOpenSsl.NotSupported.cs (6)
18Debug.Fail("Caller should have checked platform availability."); 24Debug.Fail("Caller should have checked platform availability."); 30Debug.Fail("Caller should have checked platform availability."); 36Debug.Fail("Caller should have checked platform availability."); 42Debug.Fail("Caller should have checked platform availability."); 48Debug.Fail("Caller should have checked platform availability.");
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\CertificateHelpers.Windows.cs (2)
132Debug.Fail("RSA key did not open with KeyNumber 0 or AT_SIGNATURE"); 165Debug.Fail("DSA key did not open with KeyNumber 0 or AT_SIGNATURE");
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
88Debug.Fail("CryptoApi does not support ML-DSA.");
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
709Debug.Fail($"Key was of no known type: {_key?.GetType().FullName ?? "null"}");
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
58Debug.Fail("Base64Decode failed, but PemEncoding said it was legal"); 415Debug.Fail(
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
276Debug.Fail("Base64Decode failed, but PemEncoding said it was legal");
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (2)
177Debug.Fail("Mac validation failed."); 198Debug.Fail($"Unknown confidentiality mode {safeContents.ConfidentialityMode}.");
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
144Debug.Fail("ValueAsnReader produced a span outside of the original bounds");
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
1538Debug.Fail("The contents should have already been validated by the PEM reader."); 2020Debug.Fail("Preallocated buffer and validated data decoding failed."); 2111Debug.Fail("Preallocated buffer and validated data decoding failed."); 2169Debug.Fail("Unexpected trailing data in PKCS#8 buffer."); 2186Debug.Fail("Unexpected trailing data in PKCS#8 buffer.");
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (4)
455Debug.Fail("The contents should have already been validated by the PEM reader."); 570Debug.Fail("Pre-allocated buffer was not the correct size."); 625Debug.Fail("Presized buffer is too small or did not write the correct amount."); 744Debug.Fail("Precomputed buffer was not large enough");
System\Security\Cryptography\XmlKeyHelper.cs (2)
148Debug.Fail($"Convert.TryToBase64Chars failed with {localLength} bytes to {StackChars} chars"); 247Debug.Fail("Original enumerator had elements, new one does not");
System.Security.Cryptography.Cose (6)
System\Security\Cryptography\Cose\CoseKey.cs (5)
185Debug.Fail($"Unknown key type: {KeyType}"); 210Debug.Fail("Unknown key type"); 219Debug.Fail("TrySignData failed with a pre-calculated destination"); 230Debug.Fail("TrySignData failed with a pre-calculated destination"); 262Debug.Fail($"Unknown keyType: {KeyType}");
System\Security\Cryptography\Cose\CoseMessage.cs (1)
329Debug.Fail("Unexpected ArgumentException from CoseHeaderMap.Add");
System.Security.Cryptography.Pkcs (44)
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"); 92Debug.Fail($"Unknown key type requested: {typeof(T).FullName}");
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
73Debug.Fail($"{nameof(RecipientInfoAsn)} deserialized with an unknown recipient type");
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
203Debug.Fail("TryDecrypt wanted more space than the key size");
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (1)
110Debug.Fail($"Unexpected RecipientInfoType: {type}");
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (3)
236Debug.Fail("Only the framework can construct SubjectIdentifier's so if we got a bad value here, that's our fault."); 384Debug.Fail("PP_PROVTYPE writes a DWORD - enum misalignment?"); 398Debug.Fail("PP_KEYSET_TYPE writes a DWORD - enum misalignment?");
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
158Debug.Fail($"Unknown CNG key type request: {typeof(T).FullName}"); 185Debug.Fail($"Unknown CAPI key type request: {typeof(T).FullName}");
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
423Debug.Fail($"Unexpected SubjectIdentifierType: {type}");
Internal\Cryptography\PkcsHelpers.cs (2)
209Debug.Fail($"Invalid recipientIdentifier type: {recipientIdentifierType}"); 310Debug.Fail($"Invalid hex character: {c}");
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
193Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
82Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} bytes when {expectedOutputSize} was expected");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
415Debug.Fail($"UTF-8 encoding size changed between GetByteCount and GetBytes"); 444Debug.Fail("TryEncode failed with a pre-allocated buffer"); 627Debug.Fail("Key-sized OID included in the if, but not the switch"); 785Debug.Fail($"No Specified Salt value is present, indicating a new choice was unhandled"); 915Debug.Fail( 1037Debug.Fail("TryGetHashAndReset failed with pre-allocated input"); 1050Debug.Fail("TryGetHashAndReset failed with pre-allocated input");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
184Debug.Fail("TryEncode failed with a pre-allocated buffer"); 214Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} of {macSpan.Length} bytes");
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
559Debug.Fail($"No handler for {ConfidentialityMode}");
src\runtime\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)
102Debug.Fail("Unhandled RSA signature padding.");
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
378Debug.Fail($"Unresolved SignerIdentifierType value: {SignerIdentifierType}");
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (2)
76Debug.Fail($"Unexpected _lastCall value: {_lastCall}"); 285Debug.Fail($"Unexpected _lastCall value: {_lastCall}");
System\Security\Cryptography\Pkcs\RecipientInfo.cs (1)
27Debug.Fail($"Illegal recipientInfoType: {type}");
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
69Debug.Fail($"AcceptResponse should have thrown or returned true (status={status})");
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
190Debug.Fail( 526Debug.Fail(
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
66Debug.Fail("Unable to decode the data we encoded");
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
258Debug.Fail($"TryCopyOctetStringBytes failed with an array larger than the encoded value");
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (4)
36Debug.Fail($"Illegal type passed to SubjectIdentifier: {type}"); 93Debug.Fail("Do not know how to decode value"); 131Debug.Fail($"Invalid SubjectIdentifierType: {Type}"); 166Debug.Fail($"No match logic for SubjectIdentifierType {Type}");
System\Security\Cryptography\Pkcs\SubjectIdentifierOrKey.cs (1)
31Debug.Fail($"Illegal type passed to SubjectIdentifierOrKey: {type}");
System.Security.Principal.Windows (10)
System\Security\Principal\IRCollection.cs (3)
196Debug.Fail("Source type is an IdentityReference type which has not been included in translation logic."); 258Debug.Fail("Source type is an IdentityReference type which has not been included in translation logic."); 351Debug.Fail("Source type is an IdentityReference type which has not been included in translation logic.");
System\Security\Principal\NTAccount.cs (2)
238Debug.Fail("NTAccount::TranslateToSids - source account name is too long."); 287Debug.Fail($"Interop.LsaLookupNames(2) returned unrecognized error {win32ErrorCode}");
System\Security\Principal\SID.cs (5)
508Debug.Fail($"Win32.CreateSidFromString returned unrecognized error {error}"); 592Debug.Fail($"Win32.GetWindowsAccountDomainSid returned unrecognized error {error}"); 617Debug.Fail($"Win32.CreateWellKnownSid returned unrecognized error {error}"); 782Debug.Fail($"Win32.GetWindowsAccountDomainSid returned unrecognized error {error}"); 1012Debug.Fail($"Interop.LsaLookupSids returned {win32ErrorCode}");
System.Speech (9)
Internal\ObjectToken\ObjectToken.cs (1)
288Debug.Fail("Cannot query for interface " + typeof(ISpObjectWithToken).GUID + " from COM class " + clsid);
Internal\RBList.cs (1)
119System.Diagnostics.Debug.Fail("We don't expect First to be called on empty graphs");
Internal\SrgsCompiler\CfgSemanticTag.cs (1)
75System.Diagnostics.Debug.Fail("Unknown Semantic Tag type");
Internal\SrgsCompiler\RuleRef.cs (1)
128System.Diagnostics.Debug.Fail("Unknown special ruleref type");
Internal\SrgsParser\SrgsDocumentParser.cs (1)
350System.Diagnostics.Debug.Fail("Unsupported Srgs element");
Internal\Synthesis\AudioDeviceOut.cs (1)
197System.Diagnostics.Debug.Fail(((int)result).ToString(System.Globalization.CultureInfo.InvariantCulture));
Internal\Synthesis\PcmConverter.cs (1)
115System.Diagnostics.Debug.Fail("Invalid wave format");
Internal\Synthesis\VoiceSynthesis.cs (1)
806System.Diagnostics.Debug.Fail("Unknown Action!");
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
89System.Diagnostics.Debug.Fail("Unknown Tag Format!!!");
System.Text.Encoding.CodePages (1)
System\Text\ISO2022Encoding.cs (1)
314Debug.Fail("[ISO2022Encoding.GetChars] had unexpected code page");
System.Text.Encodings.Web (10)
src\runtime\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 (52)
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
101Debug.Fail($"Unexpected state {state}");
System\ReflectionExtensions.cs (1)
199Debug.Fail("Unreachable code");
System\Text\Json\Document\JsonDocument.cs (4)
194Debug.Fail( 764Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 810Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 1105Debug.Fail($"Expected only complex children but got {curr.ValueKind}");
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
321Debug.Fail($"Unable to find expected {lookupType} token");
System\Text\Json\Document\JsonElement.cs (1)
1673Debug.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)
245Debug.Fail("Impossible case");
System\Text\Json\Nodes\JsonValueOfJsonPrimitive.cs (1)
29Debug.Fail("Only primitives allowed.");
System\Text\Json\Reader\JsonReaderHelper.cs (1)
139Debug.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)
72Debug.Fail("Unrecognized F# type.");
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
62Debug.Fail("End array token not found.");
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (2)
98Debug.Fail("Property name expected."); 111Debug.Fail("End object token not found.");
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (2)
50Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter."); 114Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter.");
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
448Debug.Fail("should not have been reached.");
System\Text\Json\Serialization\JsonConverter.cs (2)
112Debug.Fail("Should not be reachable."); 119Debug.Fail("Should not be reachable.");
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (3)
73Debug.Fail("Unexpected PolymorphicSerializationState."); 145Debug.Fail("Unexpected PolymorphicSerializationState."); 192Debug.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\JsonConverterOfT.cs (1)
507Debug.Fail("Should not be reachable.");
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
752Debug.Fail("Only FieldInfo and PropertyInfo members are supported."); 853Debug.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)
1809Debug.Fail($"Unexpected class type: {converter.ConverterStrategy}");
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
100Debug.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)
687Debug.Fail("unexpected syntax kind");
JsonSourceGenerator.Emitter.cs (1)
276Debug.Fail($"Unexpected class type {typeGenerationSpec.ClassType}");
JsonSourceGenerator.Parser.cs (1)
2733Debug.Fail("Method given an invalid symbol type.");
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
101Debug.Fail($"Unexpected state {state}");
System.Text.RegularExpressions (26)
System\Text\RegularExpressions\RegexCompiler.cs (3)
491Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 3070Debug.Fail($"Unexpected node type: {node.Kind}"); 5587Debug.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)
1152Debug.Fail($"Unimplemented state: {_operator:X8}");
System\Text\RegularExpressions\RegexInterpreterCode.cs (1)
117Debug.Fail($"Unknown opcode: {opcode}");
System\Text\RegularExpressions\RegexNode.cs (5)
233Debug.Fail($"Unexpected type: {Kind}"); 268Debug.Fail("All Group nodes should have been removed."); 324Debug.Fail($"Unexpected node type: {node.Kind}"); 2936Debug.Fail($"Unknown node: {Kind}"); 3073Debug.Fail($"Unknown node: {Kind}");
System\Text\RegularExpressions\RegexParser.cs (2)
444Debug.Fail($"Unexpected char {ch}"); 502Debug.Fail($"Unexpected char {ch}");
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1118Debug.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)
351Debug.Fail($"{nameof(Transform)}:{node._kind}");
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
462Debug.Fail($"Unexpected reversal kind: {_optimizedReversalInfo.Kind}"); 1095Debug.Fail("No nullable state found in the set of end states");
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (7)
1345Debug.Fail($"{nameof(CreateDerivative)}:{_kind}"); 1425Debug.Fail($"{nameof(StripEffects)}:{_kind}"); 1538Debug.Fail($"{nameof(StripAndMapEffects)}:{_kind}"); 1786Debug.Fail($"{nameof(ToStringHelper)}:{_kind}"); 1914Debug.Fail($"{nameof(CollectSets)}:{_kind}"); 1983Debug.Fail("Should only happen if a reversed regex is reversed again, which isn't expected"); 2071Debug.Fail($"{nameof(ComputeStartSet)}:{kind}");
System.Text.RegularExpressions.Generator (13)
RegexGenerator.Emitter.cs (4)
918Debug.Fail($"Unexpected mode: {regexTree.FindOptimizations.FindMode}"); 1173Debug.Fail($"Unexpected mode: {opts.FindMode}"); 3024Debug.Fail($"Unexpected node type: {node.Kind}"); 5559Debug.Fail("This shouldn't happen, as we should only get to the point of emitting code if RegexOptions was valid.");
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (5)
233Debug.Fail($"Unexpected type: {Kind}"); 268Debug.Fail("All Group nodes should have been removed."); 324Debug.Fail($"Unexpected node type: {node.Kind}"); 2936Debug.Fail($"Unknown node: {Kind}"); 3073Debug.Fail($"Unknown node: {Kind}");
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
444Debug.Fail($"Unexpected char {ch}"); 502Debug.Fail($"Unexpected char {ch}");
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1118Debug.Fail($"Unexpected node {node.Kind}");
UpgradeToGeneratedRegexCodeFixer.cs (1)
424Debug.Fail($"Unknown parameter: {parameterName}");
System.Threading.Channels (7)
System\Threading\Channels\AsyncOperation.cs (2)
17private static void AvailableSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation<>)}.{nameof(AvailableSentinel)} invoked with {s}"); 21private static void CompletedSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation<>)}.{nameof(CompletedSentinel)} invoked with {s}");
System\Threading\Channels\BoundedChannel.cs (1)
684Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\RendezvousChannel.cs (1)
478Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (1)
390Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\UnboundedChannel.cs (1)
333Debug.Fail($"Unexpected operation: {state.Value}");
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
329Debug.Fail($"Unexpected operation: {state.Value}");
System.Threading.Tasks.Dataflow (7)
Base\DataflowBlock.cs (4)
312Debug.Fail("A message should never be postponed when no source has been provided"); 316Debug.Fail("The message should never be missed, as it's offered to only this one target"); 596Debug.Fail("The message should never be missed, as it's offered to only this one target"); 1310Debug.Fail("Invalid linking cleanup reason specified.");
Blocks\BroadcastBlock.cs (1)
810Debug.Fail("Messages from a Broadcast should never be missed.");
Blocks\TransformManyBlock.cs (1)
295Debug.Fail("The task should have been in a final state.");
Internal\SourceCore.cs (1)
622Debug.Fail("The target did not follow the protocol.");
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\Parallel.cs (1)
2700Debug.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 (47)
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\Oletx\OletxEnlistment.cs (1)
1184Debug.Fail("this.prepareInfoByteArray == null in RecoveryInformation()");
System\Transactions\Oletx\OletxResourceManager.cs (1)
607Debug.Fail("this.prepareInfoByteArray == null in RecoveryInformation()");
System\Transactions\Oletx\OletxVolatileEnlistment.cs (21)
311Debug.Fail("OletxPhase0VolatileEnlistmentContainer.OutcomeFromTransaction, outcome is not Commited or Aborted or InDoubt"); 339Debug.Fail("OletxPhase1VolatileEnlistmentContainer.Committed, enlistmentList element is not an OletxVolatileEnlistment."); 371Debug.Fail("OletxPhase1VolatileEnlistmentContainer.Aborted, enlistmentList element is not an OletxVolatileEnlistment."); 403Debug.Fail("OletxPhase1VolatileEnlistmentContainer.InDoubt, enlistmentList element is not an OletxVolatileEnlistment."); 499Debug.Fail("OletxPhase0VolatileEnlistmentContainer.Phase0Request, phase != -1"); 523Debug.Fail("OletxPhase0VolatileEnlistmentContainer.Phase0Request, enlistmentList element is not an OletxVolatileEnlistment."); 803Debug.Fail("OletxPhase1VolatileEnlistmentContainer.OutcomeFromTransaction, outcome is not Aborted or InDoubt"); 842Debug.Fail("OletxPhase1VolatileEnlistmentContainer.Committed, enlistmentList element is not an OletxVolatileEnlistment."); 872Debug.Fail("OletxPhase1VolatileEnlistmentContainer.Aborted, enlistmentList element is not an OletxVolatileEnlistment."); 902Debug.Fail("OletxPhase1VolatileEnlistmentContainer.InDoubt, enlistmentList element is not an OletxVolatileEnlistment."); 969Debug.Fail("OletxPhase1VolatileEnlistmentContainer.VoteRequest, enlistmentList element is not an OletxVolatileEnlistment."); 1075Debug.Fail("OletxVolatileEnlistment.Prepare, no enlistmentNotification member."); 1110Debug.Fail("OletxVolatileEnlistment.Prepare, invalid state."); 1156Debug.Fail("OletxVolatileEnlistment.Commit, no enlistmentNotification member."); 1172Debug.Fail("OletxVolatileEnlistment.Commit, invalid state."); 1239Debug.Fail("OletxVolatileEnlistment.Rollback, invalid state."); 1291Debug.Fail("OletxVolatileEnlistment.InDoubt, no enlistmentNotification member."); 1307Debug.Fail("OletxVolatileEnlistment.InDoubt, invalid state."); 1387Debug.Fail("OletxVolatileEnlistment.Prepared, no container member."); 1422Debug.Fail("OletxVolatileEnlistment.Prepared, invalid pending outcome value."); 1463Debug.Fail("OletxVolatileEnlistment.ForceRollback, no container member.");
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 (199)
misc\ImageListUtils.cs (2)
34Debug.Fail("A property specified in the path is null or not yet instantiated at this time"); 41Debug.Fail("The path specified to the property is wrong");
System\Resources\ResXDataNode.cs (2)
308Debug.Fail($"Unexpected exception writing binary formatted data. {ex.Message}"); 441Debug.Fail($"Unexpected exception getting binary formatted data.");
System\Windows\Forms\Accessibility\AccessibleObject.cs (7)
592Debug.Fail(message); 785Debug.Fail("Not implemented. DocumentRangeInternal property should be overridden."); 802Debug.Fail("Not implemented. SupportedTextSelectionInternal property should be overridden."); 2842Debug.Fail($"{nameof(TryGetAccessibleObject)} got a child id of {id}"); 2850Debug.Fail($"{nameof(TryGetAccessibleObject)} got a multi selection"); 2870Debug.Fail("This should never happen"); 3296internal virtual void ScrollIntoView() => Debug.Fail($"{nameof(ScrollIntoView)}() is not overridden");
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (3)
256Debug.Fail("Label edit control cannot have a child element."); 316Debug.Fail("SetSelection start is out of text range."); 322Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (5)
184Debug.Fail("onlyNext && onlyPrevious are both set"); 190Debug.Fail("GC_WCH_FONLYNEXT or FONLYPREV used with CONTAINER or CONTAINED"); 200Debug.Fail("Bad GC_WCH"); 459Debug.Fail("Control is calling OnInPlaceDeactivate by itself"); 676Debug.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)
1301Debug.Fail("how did we ever get into the open state?"); 1333Debug.Fail("bad state"); 1433Debug.Fail("bad state"); 1457Debug.Fail(t.ToString()); 1525Debug.Fail("extremely naughty ctl is refusing to give us an hWnd... giving up..."); 1604Debug.Fail(t.ToString()); 1778Debug.Fail($"error in processMnemonic: {t}"); 1839Debug.Fail("Trying to reload with a OcxState that is of a different type."); 1895Debug.Fail("we got to have an old state which holds out scribble storage..."); 1914Debug.Fail("unknown storage type."); 2052Debug.Fail("unknown storage type"); 2629Debug.Fail($"Duplicate property with same name: {propName}"); 2774Debug.Fail("no implemented persistence interfaces on object"); 2841Debug.Fail("unknown storage type."); 2879Debug.Fail(t.ToString()); 2896Debug.Fail(t.ToString()); 2959Debug.Fail($"Failed to get instance in {nameof(ShowPropertyPageForDispid)}."); 3375Debug.Fail(t.ToString()); 3393Debug.Fail(ex.Message);
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
283Debug.Fail("we can't be in showobject if we own our window..."); 528Debug.Fail(ex.ToString());
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (1)
53Debug.Fail($"PropertyBagStream: {nameof(BinaryFormatter)} failed with {inner.Message}");
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
106Debug.Fail($"failure: {e}"); 122Debug.Fail($"failure: {e}");
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1120Debug.Fail($"Couldn't convert {currentProperty.Name} to string."); 1204Debug.Fail($"No ambient property for dispid {dispid}"); 1250Debug.Fail($"There is no property change notification for: {propName} on Control."); 1525Debug.Fail($"Failed to write with BinaryFormatWriter: {ex.Message}");
System\Windows\Forms\ActiveX\Control.ActiveXImpl.PropertyBagStream.cs (1)
39Debug.Fail(e.Message);
System\Windows\Forms\ActiveX\Control.ActiveXVerbEnum.cs (1)
36Debug.Fail("Caller of IEnumOLEVERB requested celt > 1, but clr marshalling does not support this.");
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
182Debug.Fail($"Unexpected exception thrown during Dispose: {ex.Message}");
System\Windows\Forms\Application.ParkingWindow.cs (2)
47Debug.Fail("How did parkingwindow childcount go negative???"); 58Debug.Fail("How did parkingwindow childcount go negative???");
System\Windows\Forms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
37Debug.Fail($"Don't know how to set type: {managedValue.GetType().Name}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
34Debug.Fail($"Failed to get IFont: {hr}"); 100Debug.Fail($"Failed to get IFont: {hr}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (5)
107Debug.Fail("No dot in class name?"); 118Debug.Fail($"Failed load attribute '{typeName}{assemblyName}'. It's Type could not be found."); 138Debug.Fail($"Couldn't load field '{fieldName}' from type '{typeName[..lastDot]}'. It does not exist or is not static"); 170Debug.Fail($"Attribute {type.FullName} did not have a initializer specified and has no default constructor"); 188Debug.Fail($"Attribute {type.FullName} did not have a initializer specified and has no default constructor");
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (2)
101Debug.Fail($"Bad IPerPropertyBrowsing item [{i}], name={_names?[i] ?? "(unknown)"}"); 152Debug.Fail($"Failed to build IPerPropertyBrowsing editor. {ex.GetType().Name}, {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
112Debug.Fail($"IPerPropertyBrowsing::GetPredefinedStrings(dispid={sender.DISPID}) failed.");
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
30Debug.Fail("Property Browser doesn't support standard builders -- NYI");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
45Debug.Fail($"Failed to get IPicture: {hr}"); 74Debug.Fail("Unknown picture type"); 116Debug.Fail($"Unknown Image type: {managedValue.GetType().Name}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
69Debug.Fail($"Failed to show property frame: {hr}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
624Debug.Fail($"Failed to get property: {hr}"); 652Debug.Fail($"Could not convert the native value to a .NET object: {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (4)
416Debug.Fail($"ProcessFunctions failed with hr={ex.ErrorCode}, message={ex}"); 426Debug.Fail($"ProcessVariables failed with hr={ex.ErrorCode}, message={ex}"); 500Debug.Fail($"ITypeInfo::GetDocumentation didn't return a name for DISPID 0x{dispid:X} but returned SUCCEEDED(hr)"); 812Debug.Fail($"Failed to process type info enum. {ex.Message}");
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
158Debug.Fail(ex.Message); 316Debug.Fail("Failed to find Com2 properties key on dispose.");
System\Windows\Forms\Control.cs (1)
8367Debug.Fail($"Unknown PaintLayer {layer}");
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (6)
1041Debug.Fail($"Unsupported FlatStyle: \"{FlatStyle}\""); 1054Debug.Fail("Derived classes need to provide a meaningful implementation."); 1060Debug.Fail("Derived classes need to provide a meaningful implementation."); 1066Debug.Fail("Derived classes need to provide a meaningful implementation."); 1074Debug.Fail("Adapter not expected to be null at this point"); 1085Debug.Fail("Adapter not expected to be null at this point");
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
138Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString())); 169Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString()));
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
55Debug.Fail($"Unexpected control type '{Control.GetType().FullName}'");
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
323Debug.Fail("Text edit control cannot have a child element."); 389Debug.Fail("SetSelection start is out of text range."); 395Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1227Debug.Fail("Unexpected this.advancedCellBorderStyle.All value in CellBorderStyle.get");
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
603Debug.Fail("fail in debug builds so we can catch this situation in the check in suites"); 890Debug.Fail("we only care about which data fields are read only when we are data bound");
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (14)
1504Debug.Fail("DataGridView.AreAllCellsSelected - Shouldn't reach this code"); 2090Debug.Fail("Unexpected rowHeadersWidthSizeMode value in AutoResizeRowHeadersWidth"); 2252Debug.Fail("Unexpected rowHeadersWidthSizeMode value in AutoResizeRowHeadersWidth"); 6612Debug.Fail("Unexpected Displayed state for row"); 6762Debug.Fail("Unexpected Displayed state for column"); 8542Debug.Fail("Could not find column in GetColumnXFromIndex"); 9271Debug.Fail("Could not find row in GetRowYFromIndex"); 10419Debug.Fail("Unexpected autoSizeRowsMode value in MapAutoSizeRowsModeToRowMode"); 14769Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14831Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14872Debug.Fail("Unexpected DataGridViewElementStates param in DataGridView.OnDataGridViewElementStateChanging"); 14878Debug.Fail("Unexpected DataGridViewElement type in DataGridView.OnDataGridViewElementStateChanging"); 16722Debug.Fail($"DataGridView.OnPaint exception: {ex.Message} stack trace {ex.StackTrace}"); 19328Debug.Fail("DataGridView.PaintBorder - Unexpected BorderStyle value.");
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3000Debug.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)
2973Debug.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\MonthCalendar\MonthCalendar.cs (1)
2109Debug.Fail($"NotifyWinEvent failed: {ex.Message}");
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
373Debug.Fail($"Unsupported PictureBoxSizeMode value: {mode}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
241Debug.Fail(ex.ToString()); 1647Debug.Fail($"{nameof(CreatePropertyTab)} failed. {exception.Message}"); 1684Debug.Fail($"Failed to create {nameof(PropertyTab)}. {exception.Message}"); 2113Debug.Fail($"Failed to add a large property grid toolstrip button, {ex}"); 3705Debug.Fail("Failed to find the tab!"); 3931Debug.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)
1400Debug.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)
973Debug.Fail(e.ToString()); 1159Debug.Fail(ex.ToString()); 1204Debug.Fail(ex.ToString()); 1710Debug.Fail(ex.ToString()); 1776Debug.Fail(e.ToString()); 1885Debug.Fail("We have a bad client width!"); 3375Debug.Fail(ex.Message); 3402Debug.Fail(ex.Message); 4650Debug.Fail("Committing with no selected row!"); 4762Debug.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)
681Debug.Fail("RemoveToolTip should remove a toolTip that was set.");
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
572Debug.Fail("Invalid InsertKeyMode. This code path should have never been executed."); 1086Debug.Fail("Could not get IME input context."); 2876Debug.Fail(ex.ToString());
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
88Debug.Fail("Text edit control cannot have a child element."); 417Debug.Fail("SetSelection start is out of text range."); 423Debug.Fail("SetSelection end is out of text range.");
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
96Debug.Fail("No item matched the index??");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
687Debug.Fail("You can't set this except on ToolStripDropDownMenu"); 1916Debug.Fail($"Why are we being activated when we're not visible? Deactivating thing is {WindowsFormsUtils.GetControlInformation((HWND)(nint)m.LParamInternal)}");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
662Debug.Fail("Why are we here");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
189Debug.Fail("No item matched the index?");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (3)
732Debug.Fail("Why wasn't 'UpdateScrollButtonStatus called'? We don't have the item to scroll by"); 743Debug.Fail("We're trying to scroll up, but the top item is displayed!!!"); 758Debug.Fail("We're trying to scroll down, but the last item is displayed!!!");
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
343Debug.Fail("No item matched the index?");
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
186Debug.Fail("passed in bogus toolstrip, why?"); 955Debug.Fail("why are we passing null to GetMainMenuStrip?");
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
587Debug.Fail("why were we called to fetch native menu item info with nothing assigned?"); 607Debug.Fail("why were we called to fetch native menu item info with nothing assigned?"); 659Debug.Fail("Why were we called to fetch native menu item info with nothing assigned?");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (5)
774Debug.Fail("Move called on immovable object."); 1060Debug.Fail($"ToolStripPanelRow has not been assigned! Should be set to {i}."); 1064Debug.Fail($"Detected orphan cell! {cell.Control.Name} is in row {goodRowIndex}. It shouldn't have a cell in {i}! \r\n\r\nTurn on DEBUG_PAINT in ToolStripPanel and ToolStripPanelRow to investigate."); 1070Debug.Fail("why do we have a cell with a null control in this row?"); 1104Debug.Fail($@"OVERLAP detection:
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
64Debug.Fail("Somehow we've gotten ourself in a situation where we're pumping an unreasonable number of paint messages, investigate.");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (2)
120Debug.Fail("why was a negative number given to growControlsAfter?"); 152Debug.Fail("why was a negative number given to growControlsAfter?");
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
229Debug.Fail("Could not calculate the relative position for AllowItemReorder");
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
351Debug.Fail($"error in processMnemonic: {ex}"); 615Debug.Fail("bad state"); 656Debug.Fail("bad state");
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
116Debug.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)
176Debug.Fail($"Cannot handle HTML parameter of type: {htmlParam!.GetType()}");
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1571Debug.Fail($"{nameof(RepaintSplitterRect)} failed with hr={ex.ErrorCode}, message={ex}");
System\Windows\Forms\Layout\DefaultLayout.cs (1)
469Debug.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)
388Debug.Fail("border style has no corresponding dash style"); 434Debug.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)
1735Debug.Fail("The passed in control is disposed.");
System.Windows.Forms.Design (143)
System\ComponentModel\Design\BinaryEditor.cs (3)
66Debug.Fail($"No conversion from {value?.GetType().FullName ?? "null"} to byte[]"); 91Debug.Fail($"No conversion from byte[] to {value?.GetType().FullName ?? "null"}"); 134Debug.Fail("Unable to get IHelpService.");
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
51Debug.Fail("Should never try to focus a PanelHeaderLine");
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
22public sealed override void Focus() => Debug.Fail("Should never try to focus a SeparatorLine");
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
35Debug.Fail("Should never try to focus a TextLine");
System\ComponentModel\Design\DesignerActionUI.cs (3)
60Debug.Fail("Either BehaviorService or ISelectionService is null, cannot continue."); 417Debug.Fail("related object is not an IComponent, something is wrong here..."); 431Debug.Fail("How can we add a DesignerAction glyphs when it's related object is not an IComponent?");
System\ComponentModel\Design\DesignerHost.cs (4)
96Debug.Fail("DesignerHost: Ctor needs a service provider that provides IServiceContainer"); 465Debug.Fail("DesignerHost: Ctor needs a service provider that provides IServiceContainer"); 779Debug.Fail("There are open transactions at unload"); 1106Debug.Fail($"Exception thrown on LoadComplete event handler. You should not throw here : {ex}");
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
300Debug.Fail($"Demand created service not supported: {serviceType.Name}");
System\ComponentModel\Design\InheritanceService.cs (1)
242Debug.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)
739Debug.Fail("Called to create unknown service.");
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
86Debug.Fail("CodeDomSerializer::Deserialize requires a CodeExpression, CodeStatement or CodeStatementCollection to parse");
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (14)
145Debug.Fail("GetReflectionTypeFromTypeHelper does not accept null arguments."); 195Debug.Fail("GetReflectionTypeHelper does not accept null arguments."); 214Debug.Fail("GetPropertiesHelper does not accept null arguments."); 246Debug.Fail("GetEventsHelper does not accept null arguments."); 278Debug.Fail("GetAttributesHelper does not accept null arguments."); 300Debug.Fail("GetAttributesFromTypeHelper does not accept null arguments."); 1165Debug.Fail($"Unrecognized expression type: {result.GetType().Name}"); 1202Debug.Fail("Encountered delegate object create with more or less than 1 parameter?"); 1278Debug.Fail($"Unsupported binary operator type: {op}"); 1325Debug.Fail("Could not convert left or right side to binary-compatible value."); 1460Debug.Fail("Should never get here!"); 1477Debug.Fail("Addition operator not supported for this type"); 1482Debug.Fail("Math operators are not supported"); 2025Debug.Fail($"Unrecognized reflection type in instance descriptor: {descriptor.MemberInfo.GetType().Name}");
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
43Debug.Fail($"Collection of type {modified.GetType().FullName} doesn't return an enumerator"); 219Debug.Fail($"Collection serializer invoked for non-collection: {(value is null ? "(null)" : value.GetType().Name)}");
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
112Debug.Fail("Serialize is being called twice for the same component");
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
29Debug.Fail("Enum serializer called for non-enum object.");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
110Debug.Fail("ResourceCodeDomSerializer::Deserialize requires a CodeExpression, CodeStatement or CodeStatementCollection to parse");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (6)
125Debug.Fail("We expected to get IResourceService -- no resource serialization will be available"); 491Debug.Fail("Metadata not supported, but it's dirty?"); 503Debug.Fail("Couldn't find IResourceService"); 518Debug.Fail($"Cannot save a non-serializable value into resources. Add serializable to {(value is null ? "(null)" : value.GetType().Name)}"); 603Debug.Fail($"Cannot save a non-serializable value into resources. Add serializable to {(value is null ? "(null)" : value.GetType().Name)}"); 697Debug.Fail($"Unknown CompareValue {comparison}");
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
252Debug.Fail("Unrecognized code object in nametable.");
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
236Debug.Fail("UndoEngine: GetName is failing on successive calls");
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
136Debug.Fail("Failed to remove mouse hook.");
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (2)
54Debug.Fail("Could not get the BehaviorService from ContainerSelectorBehavior!"); 211Debug.Fail("Can't drag this Container! Either SelectionService is null or DesignerHost is null");
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
75Debug.Fail("Why are we trying to 'showui' on a glyph that's not a DesignerActionGlyph?");
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
151Debug.Fail("Cannot get DesignerHost or BehaviorService"); 986Debug.Fail("Unknown snapline filter type");
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (11)
83Debug.Fail("DragBehavior could not be created because the source ServiceProvider was not found"); 90Debug.Fail("DragBehavior could not be created because the BehaviorService was not found"); 96Debug.Fail("There are no component to drag!"); 103Debug.Fail("DragBehavior could not be created because the srcHost could not be found"); 304Debug.Fail("EndDragDrop - how can serviceProviderTarget be null?"); 308Debug.Fail("EndDragDrop - how can serviceProviderTarget be null?"); 315Debug.Fail("EndDragDrop - how can destHost be null?"); 319Debug.Fail("EndDragDrop - how can destHost be null?"); 326Debug.Fail("EndDragDrop - how can behaviorServiceTarget be null?"); 330Debug.Fail("EndDragDrop - how can behaviorServiceTarget be null?"); 415Debug.Fail("Couldn't create copies of the controls we are dragging.");
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
224Debug.Fail($"Initiating resize. Could not get the designer for {_resizeComponents[i].resizeControl}");
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
39Debug.Fail("BehaviorService could not be found!"); 193Debug.Fail($"Can't find style {moveIndex}"); 352Debug.Fail("Can't resize - no propertyescriptor for column");
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
132Debug.Fail("Unknown FlatStyle"); 153Debug.Fail("Unknown FlatStyle"); 184Debug.Fail("Unknown FlatStyle"); 213Debug.Fail("Unknown FlatStyle");
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
153Debug.Fail("NOTIMPL"); 162Debug.Fail("NOTIMPL");
System\Windows\Forms\Design\CommandSet.cs (3)
300Debug.Fail("non-CLS compliant exception"); 774Debug.Fail($"Unknown command mapped to OnKeyMove: {cmd}"); 1082Debug.Fail($"Unrecognized command: {id}");
System\Windows\Forms\Design\ComponentTray.cs (5)
528Debug.Fail("Don't know how to add component!"); 543Debug.Fail("component is not IComponent"); 973Debug.Fail("Anything we're extending should have a component view."); 1553Debug.Fail("Anything we're extending should have a component view."); 2362Debug.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)
591Debug.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)
1704Debug.Fail("Failed to select new project-level data source in DesignBindingPicker tree.");
System\Windows\Forms\Design\DesignerUtils.cs (1)
735Debug.Fail("Invalid parameter passed to DesignerUtils.CopyObjects.");
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
137Debug.Fail($"Could not create type: {e}");
System\Windows\Forms\Design\DocumentDesigner.cs (4)
74Debug.Fail("AutoScaleDimensions should not be shadowed on non-ContainerControl objects."); 99Debug.Fail("AutoScaleMode should not be shadowed on non-ContainerControl objects."); 993Debug.Fail($"Called back to create a service we don't know how to create: {serviceType.Name}"); 1005Debug.Fail("Toolbox service didn't pass us a data object; that should never happen");
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
50Debug.Fail("Unknown member type passed to IgnoreInheritedMember");
System\Windows\Forms\Design\EditorServiceContext.cs (2)
113Debug.Fail("NOTIMPL"); 119Debug.Fail("NOTIMPL");
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (1)
52Debug.Fail("decimalPlacesUpDown should allow only up to 6 digits");
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
193Debug.Fail("why did base.AddPaddingSnapLines return null?");
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
29Debug.Fail("Unable to find a CodeDom serializer for 'Component'. Has someone tampered with the serialization providers?");
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
158Debug.Fail("A property specified in the path is null or not yet instantiated at this time."); 165Debug.Fail("The path specified to the property is wrong.");
System\Windows\Forms\Design\LabelDesigner.cs (3)
88Debug.Fail("Who removed GetLeadingTextPaddingFromTextFormatFlags from Label?"); 112Debug.Fail("Unknown BorderStyle"); 128Debug.Fail("Unknown BorderStyle");
System\Windows\Forms\Design\MaskDescriptorComparer.cs (3)
33Debug.Fail("One or more parameters invalid"); 43Debug.Fail("Invalid SortType, defaulting to SortType.ByName"); 74Debug.Fail("Null maskDescriptor passed.");
System\Windows\Forms\Design\MaskDesignerDialog.cs (4)
46Debug.Fail("Null masked text box, creating default."); 411Debug.Fail("Could not find mask descriptor."); 442Debug.Fail("Could not find custom mask descriptor."); 667Debug.Fail("Unable to get IHelpService.");
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
126Debug.Fail("Unknown RejectionHint, defaulting to InvalidInput...");
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
35Debug.Fail("could not get either ITypeDiscoveryService or IUIService");
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
329Debug.Fail("selectionHandler should not be null"); 599Debug.Fail("selectionHandler should not be null"); 709Debug.Fail("data object didn't return any data, so how did we allow the drop?"); 1009Debug.Fail("selectionHandler should not be null");
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
339Debug.Fail("why did base.SnapLines return null?"); 1243Debug.Fail("Couldn't get the parent instance from 'defaultValues'"); 1249Debug.Fail("Failed to IDesignerHost"); 1255Debug.Fail($"Could not get ParentControlDesigner for {parent}");
System\Windows\Forms\Design\SelectionUIService.cs (5)
917Debug.Fail("A component may have only one selection UI handler."); 949Debug.Fail("Caller is starting a drag, but there is already one in progress -- we cannot nest these!"); 955Debug.Fail("Caller is starting requesting a drag with no drag rules."); 1133Debug.Fail(e.ToString()); 1222Debug.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)
1605Debug.Fail("Unknown SizeType!"); 1953Debug.Fail("Our indices are outta whack, how did that happen?"); 1998Debug.Fail("Unknown SizeType!");
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
51Debug.Fail("Unknown borderstyle");
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (1)
14Debug.Fail("why were we passed a non winbar?");
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
664Debug.Fail("Unexpected list box item painted!"); 683Debug.Fail("Unexpected combo box item!"); 692Debug.Fail("Unexpected sender calling DrawItem");
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
697Debug.Fail("Couldn't get designer host!"); 1036Debug.Fail("Couldn't get designer host!");
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
754Debug.Fail("Couldn't get designer host!"); 826Debug.Fail("Couldn't get designer host!");
System.Windows.Forms.Primitives (6)
System\Drawing\ImageExtensions.cs (1)
54Debug.Fail($"Invalid image type {type}");
System\Windows\Forms\Automation\UiaTextRange.cs (2)
290Debug.Fail("Invalid text range argument. 'text' should not be null."); 297Debug.Fail("Invalid text range argument. 'text' length should be more than 0.");
System\Windows\Forms\Internals\ScaleHelper.cs (1)
420Debug.Fail("Unexpected DPI state.");
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
33Debug.Fail("Full support for DPI_AWARENESS_CONTEXT and mixed mode DPI_HOSTING_BEHAVIOR on the thread is only available after the RS4 OS release");
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
37Debug.Fail($"Module File Name is greater than {short.MaxValue}.");
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
348Debug.Fail("Unsupported parameters");
System.Xaml (11)
System\Xaml\InfosetObjects\XamlNodes.cs (2)
50Debug.Fail("XamlNode Ctor missing data argument"); 87Debug.Fail("XamlNode ctor, incorrect ctor called.");
System\Xaml\Parser\NodeStreamSorter.cs (1)
668Debug.Fail("Missing End Object in node sorter");
System\Xaml\Schema\Reflector.cs (5)
115Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 161Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 195Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 242Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}"); 330Debug.Fail($"Unexpected attribute type requested: {attributeType.Name}");
System\Xaml\XamlMember.cs (1)
983Debug.Fail("Enum out of range");
System\Xaml\XamlObjectReader.cs (1)
3304Debug.Fail("Invalid enum value");
System\Xaml\XamlType.cs (1)
1782Debug.Fail("Enum out of range");
UIAutomationClient (14)
MS\Internal\Automation\CacheHelper.cs (3)
99Debug.Fail("Internal error: got malformed tree description string (extra chars at end)"); 105Debug.Fail("Internal error: mismatch between count of property buckets and nodes claiming them"); 225Debug.Fail("Internal error: Got malformed tree description string, missing closing paren");
MS\Internal\Automation\ClientEventManager.cs (1)
461Debug.Fail("GetNewRootTracker internal error: Unexpected Tracker value!");
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
375Debug.Fail("unexpected switch() case:"); 1418Debug.Fail("too many children or inf loop?"); 1876Debug.Fail("too many children or inf loop?");
MS\Internal\Automation\Misc.cs (1)
149Debug.Fail("missing client-side pattern wrapper");
MS\Internal\Automation\ProxyManager.cs (1)
681Debug.Fail("unexpected switch() case:");
MS\Internal\Automation\Schema.cs (1)
68Debug.Fail("GetDefaultValue was passed an unknown property");
MS\Internal\Automation\UiaCoreApi.cs (4)
240Debug.Fail("unsupported property should not have made it this far"); 643Debug.Fail("Got unknown eventId from core: " + args._eventId); 661Debug.Fail("Got unknown propertyId from core: " + pcargs._propertyId); 702Debug.Fail("Unknown event type from core:" + args._type);
UIAutomationClientSideProviders (14)
MS\Internal\AutomationProxies\Accessible.cs (3)
916System.Diagnostics.Debug.Fail("Call to AccessibleChildren() returned E_INVALIDARG."); 1370Debug.Fail(string.Format(CultureInfo.CurrentCulture, "MsaaNativeProvider: IAccessible threw a COMException: {0}", e.Message)); 1387Debug.Fail(string.Format(CultureInfo.CurrentCulture, "Unexpected IAccessible exception: {0}", e));
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
127Debug.Fail("MsgWaitForMultipleObjects failed while WaitForWork");
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
556Debug.Fail("WindowsEditBox.GetObject unexpected return value");
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (2)
411System.Diagnostics.Debug.Fail("Cannot add item to the needed group"); 436System.Diagnostics.Debug.Fail("Cannot add item to the needed group");
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
47System.Diagnostics.Debug.Fail("The listview item on the Start Menu has an unexpected IAccessible role!");
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1350System.Diagnostics.Debug.Fail("Cannot find back the accelerator in the menu!");
MS\Internal\AutomationProxies\WindowsTab.cs (1)
1177System.Diagnostics.Debug.Fail("XSendMessage.GetItem() failed!");
MS\Internal\AutomationProxies\WindowsToolbarAsMenu.cs (1)
47System.Diagnostics.Debug.Fail("Unexpected role " + role);
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (1)
41System.Diagnostics.Debug.Fail("Unexpected role " + role);
MS\Internal\AutomationProxies\WinEventTracker.cs (2)
264Debug.Fail("Exception raising event " + eventId + " for prop " + ecp._idProp + " on hwnd " + hwnd + "\n" + e.Message); 309Debug.Fail("Exception raising event " + eventId + " for prop " + ecp._idProp + " on hwnd " + hwnd + "\n" + e.Message);
UIAutomationTypes (1)
System\Windows\Automation\AutomationIdentifier.cs (1)
168default: Debug.Fail("Invalid type specified for AutomationIdentifier");
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
1600Debug.Fail("Unknown FocusNavigationDirection");
System\Windows\Integration\WindowsFormsHost.cs (1)
862Debug.Fail("Unknown FocusNavigationDirection");