1105 references to Fail
http2cat (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
illink (9)
ILLink.RoslynAnalyzer (3)
IOperationExtensions.cs (1)
100 Debug.Fail ("Unhandled declaration pattern context");
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
399 Debug.Fail ("Unreachable.");
TrimAnalysis\ParameterProxy.cs (1)
31 Debug.Fail ($"Unexpected RefKind {Method.Method.Parameters[MetadataIndex].RefKind} found on parameter {GetDisplayName ()}");
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (9)
250Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 256Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 407Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 427Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 436Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 447Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 479Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 488Debug.Fail("This should not be reachable as long as the compiler added no diagnostics."); 507Debug.Fail("This should not be reachable as long as the compiler added no diagnostics.");
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
30Debug.Fail("Expected a single top-level BlockOperation for all lambdas.");
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
231Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitRegistry.cs (1)
276Debug.Fail($"Unexpected {nameof(EvictionReason)} {reason}");
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
228Debug.Fail("Missing handler for code: " + code);
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
61Debug.Fail(message);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
171Debug.Fail("ResetDescriptor called with descriptor available");
Microsoft.AspNetCore.DataProtection.Abstractions (1)
CryptoUtil.cs (1)
21Debug.Fail(message);
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
519Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
519Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Mvc.Core (4)
Formatters\AcceptHeaderParser.cs (1)
43Debug.Fail("ParseAcceptHeader should advance charIndex, this is a bug.");
Infrastructure\ResourceInvoker.cs (1)
822Debug.Fail("unreachable");
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
227Debug.Fail($"Unable to find property '{propertyKey.Name}' on type '{propertyKey.ContainerType}.");
ModelBinding\SuppressChildValidationMetadataProvider.cs (1)
80Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
229Debug.Fail($"LanguageVersion {languageVersion} specified in the deps file could not be parsed.");
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
164Debug.Fail($"{nameof(content)} should be an {nameof(CharBufferHtmlContent)}.");
Microsoft.AspNetCore.OpenApi (2)
Schemas\JsonSchemaMapper\JsonSchemaMapper.cs (1)
551Debug.Fail("Unreachable code");
src\Shared\ParameterBindingMethodCache.cs (1)
519Debug.Fail("No suitable System.Enum.TryParse method found.");
Microsoft.AspNetCore.Rewrite (2)
UrlMatches\IntegerMatch.cs (1)
59Debug.Fail("This is never reached.");
UrlMatches\StringMatch.cs (1)
41Debug.Fail("This is never reached.");
Microsoft.AspNetCore.Routing (2)
Matching\EndpointComparer.cs (1)
88Debug.Fail("We don't expect this to be called.");
Tree\UrlMatchingTree.cs (1)
231Debug.Fail("We shouldn't get here.");
Microsoft.AspNetCore.Routing.Tests (1)
Patterns\RoutePatternParserTest.cs (1)
717Debug.Fail("This should not be reachable. Do you need to update the comparison logic?");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http2\Http2Connection.cs (1)
1551Debug.Fail($"Unexpected header type: {headerType}");
Internal\Http3\Http3Stream.cs (2)
344Debug.Fail($"Unexpected header type: {headerType}"); 811Debug.Fail("Unexpected header parsing state.");
Internal\Infrastructure\HttpUtilities.cs (1)
449Debug.Fail("Unexpected HttpVersion: " + httpVersion);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionContext.cs (1)
189Debug.Fail($"Unexpected exception in {nameof(QuicConnectionContext)}.{nameof(AcceptAsync)}: {ex}");
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
169Debug.Fail(exception.ToString());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
345Debug.Fail(exception.ToString());
Microsoft.Build (11)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
191Debug.Fail("Unexpected finalization. Dispose should already have been called.");
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
Instance\ProjectItemInstance.cs (2)
1132Debug.Fail($"metadatum from {_itemDefinitions[i]} is null, see https://github.com/dotnet/msbuild/issues/5267"); 1148Debug.Fail("metadatum in _directMetadata is null, see https://github.com/dotnet/msbuild/issues/5267");
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Utilities\Utilities.cs (4)
661Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected: property is null"); 665Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected property {item} of type {item?.GetType().ToString()}"); 715Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected: {nameof(item)} is null"); 719Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected {nameof(item)} {item} of type {item?.GetType().ToString()}");
Microsoft.Build.Engine (4)
Shared\ResourceUtilities.cs (4)
203Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 209Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 214Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 219Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.Engine.OM.UnitTests (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.Framework (3)
ITaskItemExtensions.cs (1)
59Debug.Fail(e.ToString());
ThrowHelper.cs (2)
273Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 309Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
Microsoft.Build.Framework.UnitTests (3)
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.Tasks.Core (35)
BootstrapperUtil\BootstrapperBuilder.cs (10)
552Debug.Fail(ex.Message); 577Debug.Fail("Already found resources for culture " + stringNode.InnerText); 817Debug.Fail("Could not locate schema '" + schemaPath + "', so no validation of '" + filePath + "' is possible."); 826Debug.Fail("Could not locate data file '" + filePath + "'."); 854Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 859Debug.Fail("Failed to load document '" + filePath + "' due to the following exception:\r\n" + ex.Message); 1052Debug.Fail(ex.Message); 1056Debug.Fail(ex.Message); 1060Debug.Fail(ex.Message); 1894Debug.Fail(ex.Message);
BootstrapperUtil\PackageCollection.cs (1)
39Debug.Fail("Package with culture " + package.Culture + " has already been added.");
BootstrapperUtil\Product.cs (1)
34Debug.Fail("Products are not to be created in this fashion. Please use IBootstrapperBuilder.Products instead.");
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
GenerateResource.cs (2)
3045Debug.Fail("Unknown format " + format.ToString()); 3340Debug.Fail("Unknown format " + format.ToString());
ManifestUtil\ConvertUtil.cs (2)
29Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}, returning {2}", value, typeof(bool).Name, defaultValue.ToString())); 33Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}, returning {2}", value, typeof(bool).Name, defaultValue.ToString()));
ManifestUtil\Manifest.cs (3)
774Debug.Fail("Comparing null objects"); 782Debug.Fail("Objects do not have a SortName"); 789Debug.Fail("Comparing objects that are not BaseReferences");
ManifestUtil\Util.cs (3)
612Debug.Fail("Comparing null objects"); 617Debug.Fail("Comparing objects that are not ITaskItem"); 624Debug.Fail("Objects do not have a ItemSpec");
ManifestUtil\XmlUtil.cs (1)
194Debug.Fail(String.Format(CultureInfo.CurrentCulture, "ResourceResolver could not find file '{0}'", filename));
ResolveManifestFiles.cs (8)
1000Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}", value, "PublishState")); 1004Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Invalid value '{0}' for {1}", value, "PublishState")); 1039Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.DataFile is invalid for an assembly")); 1046Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString())); 1076Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.Prerequisite is invalid for a file")); 1079Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString())); 1106Debug.Fail(String.Format(CultureInfo.CurrentCulture, "PublishState.DataFile is invalid for an assembly")); 1113Debug.Fail(String.Format(CultureInfo.CurrentCulture, "Unhandled value PublishFlags.{0}", state.ToString()));
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.Build.UnitTests.Shared (2)
DummyMappedDrive.cs (2)
57Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString()); 70Debug.Fail("Exception in DummyMappedDrive finalizer: " + e.ToString());
Microsoft.Build.Utilities.Core (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
Microsoft.CSharp (52)
Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs (1)
26Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs (1)
25Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs (1)
26Debug.Fail("Name should not be called for this binder");
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFacts.cs (1)
198Debug.Fail("Missing resources for the error " + code.ToString());
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (2)
91Debug.Fail("Shouldn't be here!"); 135Debug.Fail("Shouldn't be here!");
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (3)
60Debug.Fail("impossible sk"); 386Debug.Fail($"Bad symbol kind: {sym.getKind()}"); 532Debug.Fail("Bad type kind");
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (8)
206Debug.Fail("Invalid Predefined Method in VisitCALL"); 271Debug.Fail("How did we get a call that doesn't have a methodinfo?"); 408Debug.Fail("How did we get a prop that doesn't have a propinfo?"); 553Debug.Fail("Invalid Predefined Method in GenerateBinaryOperator"); 630Debug.Fail("Invalid Predefined Method in GenerateUserDefinedBinaryOperator"); 655Debug.Fail("Invalid Predefined Method in GenerateUnaryOperator"); 685Debug.Fail("Invalid Predefined Method in GenerateUserDefinedUnaryOperator"); 881Debug.Fail("Invalid Predefined Method in GetExpression");
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
562Debug.Fail("Unhandled kind"); 750Debug.Fail("Unexpected type returned from lookup"); 1014Debug.Fail("Unknown operator: " + p); 1176Debug.Fail("Unexpected type returned from lookup");
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
141Debug.Fail("Bad kind in CompareTypes");
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (2)
134Debug.Fail($"Bad type kind: {_typeDest.TypeKind}"); 207Debug.Fail("BindExplicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1190Debug.Fail("Unreachable");
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
149Debug.Fail($"Bad type symbol kind: {_typeSrc.TypeKind}"); 382Debug.Fail("bind(Im|Ex)plicitConversion failed unexpectedly");
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
216Debug.Fail("Shouldn't happen!"); 302Debug.Fail("Shouldn't happen!"); 1146Debug.Fail($"Bad op: {op}"); 1417Debug.Fail("Shouldn't happen!"); 1775Debug.Fail($"Bad kind: {ek}"); 2174Debug.Fail($"Bad ek: {ek}");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
166Debug.Fail("cannot find property for accessor");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs (2)
169Debug.Fail("GetAssemblyID called on bad sym kind"); 192Debug.Fail("InternalsVisibleTo called on bad sym kind");
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
96Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\EXPR.cs (1)
47Debug.Fail("Invalid Expr in GetObject");
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (1)
315Debug.Fail("Unexpected type.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (1)
63Debug.Fail("Constant nullable?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs (1)
37Debug.Fail("Constant of pointer in dynamic code?");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\Type.cs (1)
132Debug.Fail("Bad type for AsAggregateType");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
73Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (4)
257Debug.Fail("Unknown type kind"); 372Debug.Fail("Bad Symbol kind in SubstEqualTypesCore"); 468Debug.Fail("Bad Symbol kind in TypeContainsType"); 507Debug.Fail("Bad Symbol kind in TypeContainsTyVars");
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (1)
33Debug.Fail("Sub-optimal overload called. Check if this can be avoided.");
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (2)
82Debug.Fail("Sub-optimal equality called. Check if this is correct."); 91Debug.Fail("If using this as a key, implement IEquatable<SymWithType>");
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
41Debug.Fail("Sub-optimal overload called. Check if this can be avoided."); 639Debug.Fail("Should be unreachable");
Microsoft.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.Logging.Generators (1)
src\libraries\Common\src\Roslyn\CSharpSyntaxHelper.cs (1)
82Debug.Fail("This should not be reachable. Caller already checked we had a compilation unit or namespace.");
Microsoft.Extensions.ObjectPool (1)
LeakTrackingObjectPool.cs (1)
78Debug.Fail($"{typeof(T).Name} was leaked. Created at: {Environment.NewLine}{_stack}");
Microsoft.Extensions.Primitives (1)
ThrowHelper.cs (1)
72Debug.Fail($"Unexpected resource {resource}");
Microsoft.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")
MSBuild (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
MSBuildTaskHost (4)
FileUtilities.cs (1)
85Debug.Fail("Casing test failed: " + exc);
ResourceUtilities.cs (3)
281Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 288Debug.Fail("The resource string \"" + resourceName + "\" was not found."); 295Debug.Fail("The resource string \"" + resourceName + "\" was not found.");
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
6357Debug.Fail($"State machine checking for TypeConverter syntax has encountered an unexpected XamlNode type {tokenType}");
PresentationCore (26)
MS\Internal\Media\VisualTreeUtils.cs (3)
179Debug.Fail("How did a ray hit a Visual3D not parented to a Viewport3DVisual?"); 184Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 288Debug.Fail(String.Format(
System\Windows\Media\Animation\Generated\ByteAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\ColorAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int16Animation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int32Animation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Int64Animation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\PointAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\RectAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SingleAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\SizeAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
316Debug.Fail("Unknown animation type.");
System\Windows\Media\Animation\RepeatBehavior.cs (3)
207Debug.Fail("Unhandled RepeatBehaviorType"); 252Debug.Fail("Unhandled RepeatBehaviorType"); 318Debug.Fail("Unhandled RepeatBehaviorType.");
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
146Debug.Fail("Unknown type of RepeatBehavior passed to RepeatBehaviorConverter.");
System\Windows\Media3D\MeshGeometry3D.cs (2)
581Debug.Fail("Cached bounds are invalid. Caller needs to check for IsEmpty and call UpdateCachedBounds."); 585Debug.Fail("Cached bounds are invalid. We missed a call to SetCachedBoundsDirty.");
System\Windows\Media3D\Viewport3DVisual.cs (1)
645Debug.Fail("Cached bbox subgraph is incorrect!");
PresentationFramework (16)
MS\Internal\AppModel\JournalNavigationScope.cs (2)
306Debug.Fail("Tried to navigate to a null JournalEntry."); 311Debug.Fail("Tried to navigate to a non-navigable journal entry.");
MS\Internal\Controls\ActiveXSite.cs (2)
222Debug.Fail(t.ToString()); 365Debug.Fail(t.ToString());
System\Windows\Controls\DataGrid.cs (1)
5370Debug.Fail("Unknown SelectionUnit encountered.");
System\Windows\Controls\Frame.cs (1)
455Debug.Fail("UsesOwnJournal->Automatic transition should be blocked by CoerceJournalOwnership().");
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6593Debug.Fail($"Unexpected container type: {((container == null) ? "null" : container.GetType().Name)}");
System\Windows\Interop\ActiveXHost.cs (4)
443Debug.Fail("bad state"); 475Debug.Fail("how did we ever get into the open state?"); 499Debug.Fail("bad state"); 1001Debug.Fail(e.ToString());
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
309Debug.Fail("No items where found and IsComposite return true");
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
201Debug.Fail("Unexpected property value type");
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
315Debug.Fail("Unknown animation type.");
System\Windows\Navigation\NavigationService.cs (2)
3914Debug.Fail("Could not find the finishing PageFunction in the journal."); 3971Debug.Fail($"Unhandled scenario: PageFunction returning to {parentEntry.GetType().Name}");
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1724Debug.Fail($"{nameof(rotation)}: {rotation} is not a defined {nameof(TreeRotation)} value.");
System.ComponentModel.TypeConverter (30)
System\ComponentModel\MaskedTextProvider.cs (1)
2324Debug.Fail("Invalid mask language character.");
System\ComponentModel\ReflectEventDescriptor.cs (1)
368Debug.Fail($"Missing event accessors for {_componentClass.FullName}. {Name}");
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
107Debug.Fail($"Property '{name}' on component {componentClass?.FullName} failed to init."); 108Debug.Fail(t.ToString());
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
826Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 832Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1055Debug.Fail("This should never be invoked. TypeDescriptionNode should wrap for us."); 1208Debug.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)
676Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 702Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 893Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 915Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 931Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 953Debug.Fail("COMPAT: Returning null, but you should not pass null here"); 1091Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1118Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1177Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1328Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1355Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1434Debug.Fail("COMPAT: Returning an empty collection, but you should not pass null here"); 1924Debug.Fail("unknown pipeline type"); 2051Debug.Fail("unknown pipeline type"); 2122Debug.Fail("unknown pipeline type"); 2263Debug.Fail("unknown pipeline type"); 2303Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2390Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2456Debug.Fail("COMPAT: Returning, but you should not pass null here"); 2518Debug.Fail("COMPAT: Returning, but you should not pass null here");
System\Timers\TimersDescriptionAttribute.cs (1)
36Debug.Fail($"Unexpected resource {id}");
System.Data.Common (62)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
534Debug.Fail($"ParseInternal code vs regex throw mismatch {f.Message}"); 540Debug.Fail("ParseInternal code threw exception vs regex mismatch");
System\Data\Common\AdapterUtil.Common.cs (17)
73Debug.Fail("valid AcceptRejectRule " + value.ToString()); 88Debug.Fail("valid CatalogLocation " + value.ToString()); 103Debug.Fail("valid ConflictOption " + value.ToString()); 121Debug.Fail("valid DataRowState " + value.ToString()); 136Debug.Fail("valid KeyRestrictionBehavior " + value.ToString()); 152Debug.Fail("valid LoadOption " + value.ToString()); 168Debug.Fail("valid MissingMappingAction " + value.ToString()); 185Debug.Fail("valid MissingSchemaAction " + value.ToString()); 201Debug.Fail("valid Rule " + value.ToString()); 216Debug.Fail("valid SchemaType " + value.ToString()); 234Debug.Fail("valid StatementType " + value.ToString()); 251Debug.Fail("valid UpdateStatus " + value.ToString()); 460Debug.Fail("shouldn't be here"); 495Debug.Fail("shouldn't be here"); 498Debug.Fail("isRowUpdatingCommand should have been true"); 592Debug.Fail("should be here"); 628Debug.Fail("isRowUpdatingCommand should have been true");
System\Data\Common\DataStorage.cs (2)
239Debug.Fail("not a String or SqlString column"); 353Debug.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)
5160Debug.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)
85Debug.Fail("Pointer not present"); 1116Debug.Fail("Found entity reference"); 1278Debug.Fail("We should not get rows in this state"); 1281Debug.Fail("Unknown row state"); 2117Debug.Fail("This should have been handled above, irrespective of ignoreDataSetEvents value (true or false)"); 2470Debug.Fail("We should not get any exceptions because we always handle data-type conversion"); 2483Debug.Fail("We should not get any exceptions because DataSet.EnforceConstraints should be always off"); 2809Debug.Fail("We should not get any exceptions here"); 2837Debug.Fail("We should not get any exceptions here"); 2843Debug.Fail("Handle your case above"); 2871Debug.Fail("We should not get any exceptions here"); 2894Debug.Fail("Handle your case above");
System\Xml\XPathNodePointer.cs (1)
1218Debug.Fail("Logically, we shouldn't reach here.");
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\AggregatorStore.cs (1)
293Debug.Fail("Unexpected sequence type");
System.Diagnostics.Process (9)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (6)
85Debug.Fail($"Failed to read \"{path}/memory.stat\": {e}"); 199Debug.Fail($"Failed to read \"{path}\": {e}"); 372Debug.Fail($"Unexpected cgroup version \"{cgroupVersion}\""); 386Debug.Fail($"Failed to read or parse \"{ProcMountInfoFilePath}\": {e}"); 458Debug.Fail($"Unexpected cgroup version: \"{cgroupVersion}\""); 465Debug.Fail($"Failed to read or parse \"{procCGroupFilePath}\": {e}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
System\Diagnostics\ProcessManager.Linux.cs (1)
196Debug.Fail($"Unexpected status character: {c}");
System\Diagnostics\ProcessWaitState.Unix.cs (1)
377Debug.Fail("Unexpected errno value from kill");
System.Formats.Asn1 (23)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
269Debug.Fail("Fallback should have thrown"); 299Debug.Fail("Fallback should have thrown"); 338Debug.Fail("Fallback should have thrown"); 369Debug.Fail("Fallback should have thrown"); 385Debug.Fail("Fallback should have thrown");
System\Formats\Asn1\AsnDecoder.BitString.cs (2)
328Debug.Fail("TryCopyConstructedBitStringValue failed with a pre-allocated buffer"); 548Debug.Fail("Non-overlapping data encountered...");
System\Formats\Asn1\AsnDecoder.cs (3)
315Debug.Fail($"No handler is present for status {status}."); 544Debug.Fail($"No handler for validity {validity}."); 688Debug.Fail("AsnReader asked for a matching slice from a non-overlapping input");
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (2)
211Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(FracState)}"); 291Debug.Fail($"Unhandled value '{octet:X2}' in {nameof(SuffixState)}");
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
347Debug.Fail("TryReadBitString failed with an over-allocated buffer");
System\Formats\Asn1\AsnDecoder.OctetString.cs (2)
413Debug.Fail("Non-overlapping data encountered..."); 530Debug.Fail("TryCopyConstructedOctetStringContents failed with a pre-allocated buffer");
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
99Debug.Fail($"UtcTime did not fit in tmpSpace ({contents.Length} total)");
System\Formats\Asn1\AsnWriter.cs (2)
309Debug.Fail($"TryWrite failed or written was wrong value ({written} vs {spaceRequired})"); 771Debug.Fail($"No handler for {_frame.ItemType}");
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (2)
88Debug.Fail($"Utf8Formatter.TryFormat could not format {floatingTicks} / TicksPerSecond"); 132Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System\Formats\Asn1\AsnWriter.Text.cs (2)
108Debug.Fail( 125Debug.Fail(
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
108Debug.Fail($"Utf8Formatter.TryFormat failed to build components of {normalized:O}");
System.Formats.Cbor (6)
System\Formats\Cbor\CborConformanceLevel.cs (1)
269Debug.Fail("Invalid conformance mode used in encoding sort.");
System\Formats\Cbor\Reader\CborReader.PeekState.cs (3)
38Debug.Fail("CborReader internal error. Invalid CBOR major type pushed to stack."); 84Debug.Fail("CborReader internal error. Invalid CBOR major type pushed to stack."); 129Debug.Fail("CborReader internal error. Invalid CBOR major type.");
System\Formats\Cbor\Writer\CborWriter.cs (1)
409Debug.Fail("Invalid CBOR major type pushed to stack.");
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
197Debug.Fail("Unreachable code in decimal exponentiation logic");
System.IO.Compression (3)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (3)
329Debug.Fail("check why we are here!"); 472Debug.Fail("check why we are here!"); 670Debug.Fail("check why we are here!");
System.IO.FileSystem.Watcher (3)
src\libraries\Common\src\Interop\Linux\System.Native\Interop.INotify.cs (1)
37Debug.Fail("inotify_rm_watch failed with " + hr);
System\IO\FileSystemWatcher.cs (1)
444Debug.Fail("Unknown FileSystemEvent change type! Value: " + changeType);
System\IO\FileSystemWatcher.Linux.cs (1)
811Debug.Fail("Buffer provided to read was too small");
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
209Debug.Fail($"shm_open failed with ENAMETOOLONG for {Encoding.UTF8.GetByteCount(mapName)} byte long name.");
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
64Debug.Fail("The ExceptionArgument value is not defined.");
System.Linq.Expressions (1)
System\Dynamic\Utils\ContractUtils.cs (1)
22Debug.Fail("Unreachable");
System.Linq.Parallel (18)
System\Linq\Parallel\Enumerables\ParallelQuery.cs (4)
52Debug.Fail("The derived class must override this method."); 65Debug.Fail("The derived class must override this method."); 78Debug.Fail("The derived class must override this method."); 127Debug.Fail("The derived class must override this method.");
System\Linq\Parallel\Merging\ArrayMergeHelper.cs (1)
76Debug.Fail("ArrayMergeHelper<>.GetEnumerator() is not intended to be used. Call GetResultsAsArray() instead.");
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
175Debug.Fail("An ordered pipelining merge is not intended to be used this way."); 375Debug.Fail("QueryEnd() should have thrown an exception.");
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
204Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
140Debug.Fail("This method should never be called. Associative aggregation can always be parallelized.");
System\Linq\Parallel\QueryOperators\QueryResults.cs (2)
63Debug.Fail("GetElement property is not supported by non-indexable query results"); 78Debug.Fail("ElementsCount property is not supported by non-indexable query results");
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
129Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
107Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in Aggregate().");
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
103Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
105Debug.Fail("AsSequentialQuery is not supported on ForAllOperator");
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
99Debug.Fail("This method should never be called as fallback to sequential is handled in ParallelEnumerable.First().");
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
78Debug.Fail("This method should never be called as it is an ending operator with LimitsParallelism=false.");
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
273Debug.Fail("Search should have found a maximal element");
System.Net.Http (17)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
177Debug.Fail("HPACK decoder reach an invalid state");
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
233Debug.Fail("QPACK decoder reach an invalid state");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System\Net\Http\Headers\WarningHeaderValue.cs (1)
211Debug.Fail("Unable to parse value even though it was parsed as <=3 digits string. Input: '" +
System\Net\Http\HttpRuleParser.cs (2)
274Debug.Fail("'NotParsed' is unexpected: We started nested expression " + 284Debug.Fail("Unknown enum result: " + nestedResult);
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
421Debug.Fail($"Unexpected state: {_state}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
166Debug.Fail("Unknown HttpConnectionKind in HttpConnectionPool.ctor");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
1266Debug.Fail($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 2077Debug.Fail($"Stream {http2Stream.StreamId} not found in dictionary during RemoveStream???"); 2142Debug.Fail($"Unexpected keep alive state ({_keepAliveState})");
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (4)
537Debug.Fail($"Received unexpected frame type {frameType}."); 980Debug.Fail(message); 1053Debug.Fail($"Unexpected {nameof(Http3RequestStream)}.{nameof(_headerState)} '{_headerState}'."); 1061Debug.Fail($"This has no use in HTTP/3 and should never be called by {nameof(QPackDecoder)}.");
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
44Debug.Fail($"DrainAsync should not be called for this response stream: {GetType()}");
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
54Debug.Fail("Bad socks version.");
System.Net.Mail (4)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System\Net\Mime\Base64Encoder.cs (3)
74Debug.Fail("paddind was not in range [0,2]"); 115Debug.Fail("paddind was not in range [0,2]"); 141Debug.Fail("paddind was not in range [0,2]");
System.Net.NameResolution (8)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System\Net\Dns.cs (4)
28Debug.Fail("LogFailure should return false"); 399Debug.Fail("LogFailure should return false"); 439Debug.Fail("LogFailure should return false"); 469Debug.Fail("LogFailure should return false");
System\Net\NameResolutionPal.Unix.cs (1)
43Debug.Fail($"Unexpected error: {error}");
System.Net.NetworkInformation (3)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
30Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
213Debug.Fail($"Unexpected error: {ex}");
System.Net.Ping (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Primitives (3)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
30Debug.Fail($"{nameof(GetDomainName)} failed with error {err}");
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Quic (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System.Net.Requests (1)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
System.Net.Security (9)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
415Debug.Fail("Failed to add issuer to trusted CA list.");
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
104Debug.Fail("Unable to load required type."); 133Debug.Fail("Unable to load required members.");
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
22Debug.Fail($"Convert.TryToBase64 failed with {input.Length} bytes to a {base64.Length} buffer");
System\Net\CertificateValidationPal.cs (1)
76Debug.Fail($"Failed to open cert store, location: {storeLocation} exception: {exception}");
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
184Debug.Fail($"Unknown EncryptionPolicy value ({policy})");
System\Net\Security\NegotiateStream.cs (2)
782Debug.Fail("Unreachable"); 843Debug.Fail("Unreachable");
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\InternalException.cs (1)
16Debug.Fail($"InternalException thrown for unexpected value: {unexpectedValue}");
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
55Debug.Fail("Unexpected failure in GetAddressFamily");
System\Net\Sockets\SafeSocketHandle.cs (1)
128Debug.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)
231Debug.Fail($"Callers should guard against calling this method for '{LastOperation}'");
System.Net.WebClient (1)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
18private static readonly Action s_completionSentinel = static () => Debug.Fail("Completion sentinel should never be invoked");
System.Private.CoreLib (116)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
29Debug.Fail($"GetHostName failed with error {err}");
src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
951Debug.Fail("All primitive types should be handled above"); 1450Debug.Fail("All primitive types should be handled above"); 1680Debug.Fail("All primitive types should be handled above");
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64.cs (2)
21Debug.Fail($"Read for {typeof(TVector)} is not within safe bounds. srcIndex: {srcIndex}, srcLength: {srcLength}"); 35Debug.Fail($"Write for {typeof(TVector)} is not within safe bounds. destIndex: {destIndex}, destLength: {destLength}");
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\ParserHelpers.cs (1)
69Debug.Fail("Control should never reach this point.");
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
934Debug.Fail("hash table insert failed! Load factor too high, or our double hashing function is incorrect.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
116Debug.Fail("GetSessionInfo returned false.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
133Debug.Fail($"Unsupported type \"{parameterType}\" encountered.");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4329Debug.Fail("EventSource did not have a registered EventListener!");
src\libraries\System.Private.CoreLib\src\System\Enum.cs (3)
464Debug.Fail("Unknown enum underlying type"); 1247Debug.Fail("Unknown enum underlying type"); 1349Debug.Fail("Unknown enum underlying type");
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
72Debug.Fail($"Unable to get home directory: {exc}"); 242Debug.Fail($"Failed reading {userDirsPath}: {exc}");
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
467Debug.Fail(e.ToString());
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
210Debug.Fail("Not expected to come here");
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (4)
235Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleStringData)] Failed"); 260Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleNumberData)] failed"); 276Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleGroupingData type)] failed"); 300Debug.Fail("[CultureData.GetTimeFormatString(bool shortFormat)] Failed");
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
2463Debug.Fail("The hashtable is full. This should not happen."); 2547Debug.Fail("The hashtable is full. This should not happen.");
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
1054Debug.Fail("Should never be reached"); 1076Debug.Fail("Should never be reached"); 5211Debug.Fail("Unknown DateTimeParseFailure: " + result.failure.ToString());
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
130Debug.Fail("Should never be called non-Windows platforms.");
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
539Debug.Fail("Unexpected special token '%', Bug in DateTimeFormatInfo.FullTimeSpan[Positive|Negative]Pattern");
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (2)
83Debug.Fail("internal constructor, this should never occur"); 119Debug.Fail("Invalid logic; State should always have a valid value");
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
104Debug.Fail($"Unknown platform {_platform}");
src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
199Debug.Fail("Not used or called for this implementation.");
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (2)
25Debug.Fail($"Unexpected CorElementType: {dstElementType}. Not a valid widening target."); 103Debug.Fail($"Unexpected CorElementType: {dstElementType}. Not a valid widening target.");
src\libraries\System.Private.CoreLib\src\System\Reflection\LocalVariableInfo.cs (1)
10public virtual Type LocalType { get { Debug.Fail("type must be set!"); return null!; } }
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeNameResolver.cs (2)
21Debug.Fail("Expected to be unreachable"); 65Debug.Fail("Expected to be unreachable");
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
154Debug.Fail(CoreLib.Name + "'s NeutralResourcesLanguageAttribute is a malformed culture name! name: \"" + attr.CultureName + "\" Exception: " + e); 472Debug.Fail("Couldn't get " + CoreLib.Name + ResourceManager.ResFileExtension + " from " + CoreLib.Name + "'s assembly" + Environment.NewLineConst + Environment.NewLineConst + "Are you building the runtime on your machine? Chances are the BCL directory didn't build correctly. Type 'build -c' in the BCL directory. If you get build errors, look at buildd.log. If you then can't figure out what's wrong (and you aren't changing the assembly-related metadata code), ask a BCL dev.\n\nIf you did NOT build the runtime, you shouldn't be seeing this and you've found a bug.");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
72Debug.Fail("SetStateMachine should not be used.");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (3)
144Debug.Fail("Throw() should have thrown"); 155Debug.Fail("Throw() should have thrown"); 160Debug.Fail("There should be exceptions if we're Faulted.");
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
270Debug.Fail("Fell through switch statement!");
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
809Debug.Fail("Error result not expected"); 880Debug.Fail("Error result not expected");
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
317Debug.Fail("Unable to find escape sequence for this character");
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (3)
72Debug.Fail("Vector<T> isn't 128 or 256 bits in size?"); 84Debug.Fail("Vector<T> isn't 256 bits in size?"); 90Debug.Fail("Vector<T> is greater than 256 bits in size?");
src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
26Debug.Fail("SR::GetResourceString with empty resourceKey. Bug in caller, or weird recursive loading problem?");
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
802Debug.Fail("Should not reach this point.");
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
498Debug.Fail("Unknown types.");
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (2)
258Debug.Fail("Unexpected OperationStatus return value."); 323Debug.Fail("Unexpected OperationStatus return value.");
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
234Debug.Fail("Unexpected return value.");
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
374Debug.Fail("Unknown return value.");
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (7)
75Debug.Fail("This should be overridden by a subclassed type."); 81Debug.Fail("This should be overridden by a subclassed type."); 113Debug.Fail("This should be overridden by a subclassed type."); 206Debug.Fail("This should be overridden by a subclassed type."); 469Debug.Fail("This should be overridden by a subclassed type."); 800Debug.Fail("This should be overridden by a subclassed type."); 1065Debug.Fail("This should be overridden by a subclassed type.");
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
252Debug.Fail("Unexpected code page");
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeDebug.cs (6)
15Debug.Fail($"The value {ToHexString(codePoint)} is not a valid BMP code point."); 24Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 high surrogate code point."); 33Debug.Fail($"The value {ToHexString(codePoint)} is not a valid UTF-16 low surrogate code point."); 42Debug.Fail($"The value {ToHexString(codePoint)} is not a valid Unicode code point."); 51Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid Unicode scalar value."); 60Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid supplementary plane Unicode scalar value.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (1)
499Debug.Fail("Invalid m_action in Task<TResult>");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
273Debug.Fail("The sentinel delegate should never be invoked.");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2405Debug.Fail("Invalid m_action in Task"); 7381Debug.Fail("UnwrapPromise in illegal state");
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (4)
51Debug.Fail("Invalid m_action in ContinuationTaskFromTask"); 97Debug.Fail("Invalid m_action in ContinuationResultTaskFromTask"); 143Debug.Fail("Invalid m_action in ContinuationTaskFromResultTask"); 189Debug.Fail("Invalid m_action in ContinuationResultTaskFromResultTask");
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
61Debug.Fail("Should have found the queue");
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
1068Debug.Fail("The enum value is not defined, please check the ExceptionArgument Enum."); 1248Debug.Fail("The enum value is not defined, please check the ExceptionResource Enum.");
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
1248Debug.Fail("Missed all cases for computing Tuple hash code");
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (2)
2079Debug.Fail("Missed all cases for computing ValueTuple hash code"); 2154Debug.Fail("Missed all cases for computing ValueTuple hash code");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
145Debug.Fail("Pre-allocated full name should have been provided in the ctor");
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (5)
343Debug.Fail("Expected to be unreachable"); 354Debug.Fail("Expected to be unreachable"); 365Debug.Fail("Expected to be unreachable"); 376Debug.Fail("Expected to be unreachable"); 387Debug.Fail("Expected to be unreachable");
src\System\Array.CoreCLR.cs (11)
131Debug.Fail("Fell through switch in Array.Copy!"); 272Debug.Fail("Array.Copy from U1 to another type hit unsupported widening conversion"); break; 290Debug.Fail("Array.Copy from I1 to another type hit unsupported widening conversion"); break; 313Debug.Fail("Array.Copy from U2 to another type hit unsupported widening conversion"); break; 329Debug.Fail("Array.Copy from I2 to another type hit unsupported widening conversion"); break; 344Debug.Fail("Array.Copy from U4 to another type hit unsupported widening conversion"); break; 358Debug.Fail("Array.Copy from I4 to another type hit unsupported widening conversion"); break; 370Debug.Fail("Array.Copy from U8 to another type hit unsupported widening conversion"); break; 382Debug.Fail("Array.Copy from I8 to another type hit unsupported widening conversion"); break; 391Debug.Fail("Fell through outer switch in PrimitiveWiden! Unknown primitive type for source array!"); break; 705Debug.Fail("Hey! How'd I get here?");
src\System\Attribute.CoreCLR.cs (1)
598Debug.Fail("Invalid type for ParameterInfo member in Attribute class");
src\System\Collections\Generic\EqualityComparer.CoreCLR.cs (2)
150Debug.Fail("Should not get here."); 156Debug.Fail("Should not get here.");
src\System\Reflection\Emit\CustomAttributeBuilder.cs (3)
335Debug.Fail("Invalid primitive type"); 415Debug.Fail("Invalid enum base type"); 492Debug.Fail("Invalid primitive type");
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
254Debug.Fail("We should never get here!");
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
2292default: Debug.Fail("Unreachable code"); break; 2301default: Debug.Fail("Unreachable code"); break;
src\System\RuntimeType.ActivatorCache.cs (1)
139Debug.Fail("Caller passed the wrong RuntimeType to this routine."
src\System\RuntimeType.CoreCLR.cs (2)
402Debug.Fail("Invalid CacheType"); 1988Debug.Fail("Unreachable code");
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (1)
41Debug.Fail("Caller passed the wrong RuntimeType to this routine."
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CodeGenerator.cs (2)
695Debug.Fail("Data can only be stored into ArgBuilder or LocalBuilder."); 818Debug.Fail("Char is not a valid schema primitive and should be treated as int in DataContract");
System\Runtime\Serialization\DataContract.cs (1)
410Debug.Fail("DataContract cache overflow");
System\Runtime\Serialization\ExtensionDataReader.cs (11)
340Debug.Fail("ExtensionDataReader in invalid state"); 355Debug.Fail("ExtensionDataReader Name property should only be called for IXmlSerializable"); 368Debug.Fail("ExtensionDataReader HasValue property should only be called for IXmlSerializable"); 381Debug.Fail("ExtensionDataReader BaseURI property should only be called for IXmlSerializable"); 394Debug.Fail("ExtensionDataReader NameTable property should only be called for IXmlSerializable"); 405Debug.Fail("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 415Debug.Fail("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 425Debug.Fail("ExtensionDataReader MoveToAttribute method should only be called for IXmlSerializable"); 437Debug.Fail("ExtensionDataReader ResolveEntity method should only be called for IXmlSerializable"); 447Debug.Fail("ExtensionDataReader ReadAttributeValue method should only be called for IXmlSerializable"); 474Debug.Fail("Encountered invalid data node when deserializing unknown data");
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
204Debug.Fail("DataContract cache overflow");
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
993Debug.Fail("Failed to create contract for KeyValuePair type");
System\Runtime\Serialization\ObjectReferenceStack.cs (2)
51Debug.Fail("Object reference stack in invalid state"); 78Debug.Fail("Object reference stack in invalid state");
System\Runtime\Serialization\ObjectToIdCache.cs (2)
92Debug.Fail("Object table overflow"); 131Debug.Fail("Object table overflow");
System\Runtime\Serialization\SchemaExporter.cs (1)
519Debug.Fail("XML data contract type name does not match schema name");
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
922Debug.Fail("Failed to create contract for KeyValuePair type");
System\Runtime\Serialization\XmlObjectSerializer.cs (4)
142Debug.Fail("XmlObjectSerializer.InternalWriteStartObject should never get called"); 149Debug.Fail("XmlObjectSerializer.InternalWriteObjectContent should never get called"); 156Debug.Fail("XmlObjectSerializer.InternalWriteEndObject should never get called"); 337Debug.Fail("XmlObjectSerializer.InternalIsStartObject should never get called");
System.Private.Uri (1)
System\UriExt.cs (1)
1057Debug.Fail("Uri failed to locate custom port at index: " + portIndex);
System.Private.Xml (259)
System\Xml\BinaryXml\XmlBinaryReader.cs (8)
809Debug.Fail("Unexpected parent NodeType"); 1124Debug.Fail("should never happen"); 1214Debug.Fail("should never happen"); 1309Debug.Fail("should never happen"); 1404Debug.Fail("should never happen"); 1499Debug.Fail("should never happen"); 1594Debug.Fail("should never happen"); 1689Debug.Fail("should never happen");
System\Xml\Cache\XPathDocumentNavigator.cs (1)
84Debug.Fail("ReadStringValue() should have taken care of these node types.");
System\Xml\Core\ReadContentAsBinaryHelper.cs (4)
93Debug.Fail($"Unexpected state {_state}"); 136Debug.Fail($"Unexpected state {_state}"); 179Debug.Fail($"Unexpected state {_state}"); 222Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
44Debug.Fail($"Unexpected state {_state}"); 88Debug.Fail($"Unexpected state {_state}"); 132Debug.Fail($"Unexpected state {_state}"); 176Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReader.cs (1)
188Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
50Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlEventCache.cs (3)
241Debug.Fail($"Unknown event: {page[idxEvent].EventType}"); 247Debug.Fail("Unknown event should be added to end of event sequence."); 304Debug.Fail("Unknown event should be added to end of event sequence.");
System\Xml\Core\XmlSubtreeReader.cs (10)
533Debug.Fail($"Unexpected state {_state}"); 652Debug.Fail($"Unexpected state {_state}"); 878Debug.Fail($"Unexpected state {_state}"); 901Debug.Fail($"Unexpected state {_state}"); 958Debug.Fail($"Unexpected state {_state}"); 1016Debug.Fail($"Unexpected state {_state}"); 1039Debug.Fail($"Unexpected state {_state}"); 1095Debug.Fail($"Unexpected state {_state}"); 1154Debug.Fail($"Unexpected state {_state}"); 1552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlSubtreeReaderAsync.cs (9)
96Debug.Fail($"Unexpected state {_state}"); 178Debug.Fail($"Unexpected state {_state}"); 284Debug.Fail($"Unexpected state {_state}"); 307Debug.Fail($"Unexpected state {_state}"); 364Debug.Fail($"Unexpected state {_state}"); 422Debug.Fail($"Unexpected state {_state}"); 445Debug.Fail($"Unexpected state {_state}"); 501Debug.Fail($"Unexpected state {_state}"); 552Debug.Fail($"Unexpected state {_state}");
System\Xml\Core\XmlTextReaderImpl.cs (19)
442Debug.Fail($"Unexpected conformance level {settings.ConformanceLevel}"); 838default: Debug.Fail($"Unexpected fragment type {_fragmentType}"); goto case XmlNodeType.None; 1210Debug.Fail("Invalid InitInputType"); 1334Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1362Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 1517Debug.Fail("Unexpected entity type"); 1543Debug.Fail("Unexpected entity type"); 3048Debug.Fail("Unhandled DtdProcessing enumeration value."); 3537Debug.Fail("We should get an exception again."); 3831Debug.Fail($"Unexpected xmlDeclState {xmlDeclState}"); 4625Debug.Fail("We should never get to this point."); 5312Debug.Fail("We should never get to this point."); 5333Debug.Fail("no EndEntity reporting while parsing attributes"); 6122Debug.Fail($"Unexpected parsing states stack top {_parsingStatesStackTop}"); 7045Debug.Fail("We should never get to this point."); 7146Debug.Fail("We should never get to this point."); 8261Debug.Fail($"Unexpected read state {_incReadState}"); 8645Debug.Fail("We should never get to this point."); 8703Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
69Debug.Fail("Invalid InitInputType"); 175Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 264Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 323Debug.Fail($"Unexpected parsing function {_parsingFunction}"); 991Debug.Fail("Unhandled DtdProcessing enumeration value."); 1410Debug.Fail($"Unexpected xmlDeclState {xmlDeclState}"); 2249Debug.Fail("We should never get to this point."); 2827Debug.Fail("We should never get to this point."); 2849Debug.Fail("no EndEntity reporting while parsing attributes"); 4788Debug.Fail("We should never get to this point."); 4888Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
703Debug.Fail("We should never get to this point.");
System\Xml\Core\XmlTextWriter.cs (2)
1008Debug.Fail($"Unexpected state {_currentState}"); 1481Debug.Fail("Should have never come here");
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
580Debug.Fail($"Unexpected parsing function {_parsingFunction}");
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
68Debug.Fail($"Unexpected parsing function {_parsingFunction}");
System\Xml\Core\XmlWellFormedWriter.cs (4)
298Debug.Fail("Expected currentState <= State.Error "); 1537Debug.Fail("State.Attribute == currentState || State.RootLevelAttr == currentState"); 1951Debug.Fail("We should not get to this point."); 1978Debug.Fail($"We should never get to this point. State = {state}");
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
1368Debug.Fail("We should not get to this point.");
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
388Debug.Fail("Unexpected ItemType value.");
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
99Debug.Fail("Unexpected ItemType value.");
System\Xml\Core\XmlWriter.cs (1)
488Debug.Fail($"Unexpected node type {nodeType}");
System\Xml\Core\XmlWriterAsync.cs (1)
488Debug.Fail($"Unexpected node type {nodeType}");
System\Xml\Core\XmlWriterSettings.cs (3)
386Debug.Fail("Invalid XmlOutputMethod setting."); 408Debug.Fail("Invalid XmlOutputMethod setting."); 457Debug.Fail("Invalid XmlOutputMethod setting.");
System\Xml\Core\XsdValidatingReader.cs (2)
2598Debug.Fail("Should not happen as the caching reader does not cache elements in simple content"); 2659Debug.Fail("Should not happen as the caching reader does not cache elements in simple content");
System\Xml\Dom\DocumentXPathNavigator.cs (2)
519Debug.Fail($"Unexpected scope {scope}"); 632Debug.Fail($"Unexpected scope {scope}");
System\Xml\Dom\XmlLoader.cs (1)
404Debug.Fail("Unknown reader name");
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
60Debug.Fail("Null was added to the collection which didn't expect it");
System\Xml\Ref.cs (1)
17Debug.Fail("Ref.Equal: Object comparison used for non-atomized string '" + strA + "'");
System\Xml\Schema\ConstraintStruct.cs (1)
506Debug.Fail($"{nameof(other)} is not of type {nameof(KeySequence)}");
System\Xml\Schema\DtdParser.cs (3)
621Debug.Fail($"Unexpected token {token}"); 1656Debug.Fail($"Unexpected scanning function {_scanningFunction}"); 3447Debug.Fail("This is an unexpected error that should have been handled in the ScanXXX methods.");
System\Xml\Schema\DtdParserAsync.cs (2)
265Debug.Fail($"Unexpected token {token}"); 1283Debug.Fail($"Unexpected scanning function {_scanningFunction}");
System\Xml\Schema\FacetChecker.cs (1)
464Debug.Fail($"Unexpected facet type {facet.FacetType}");
System\Xml\Schema\Inference\Infer.cs (2)
1733Debug.Fail("Expected type not matched"); 2379Debug.Fail("Expected date, time or dateTime");
System\Xml\Schema\NamespaceList.cs (2)
112Debug.Fail($"Unexpected type {_type}"); 157Debug.Fail($"Unexpected type {_type}");
System\Xml\Schema\Parser.cs (1)
137Debug.Fail($"Unexpected root type {rootType}");
System\Xml\Schema\Preprocessor.cs (1)
704Debug.Fail($"Unexpected compositor {external.Compositor}");
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
1403Debug.Fail("Unexpected particle"); 2550Debug.Fail("Unexpected particle");
System\Xml\Schema\SchemaInfo.cs (1)
282Debug.Fail($"Unexpected match state {attributeMatchState}");
System\Xml\Schema\SchemaSetCompiler.cs (2)
1646Debug.Fail("Unexpected particle"); 2931Debug.Fail("Unexpected particle");
System\Xml\Schema\XmlAtomicValue.cs (8)
231default: Debug.Fail("Should never get here"); break; 253default: Debug.Fail("Should never get here"); break; 276default: Debug.Fail("Should never get here"); break; 300default: Debug.Fail("Should never get here"); break; 323default: Debug.Fail("Should never get here"); break; 346default: Debug.Fail("Should never get here"); break; 370default: Debug.Fail("Should never get here"); break; 392default: Debug.Fail("Should never get here"); break;
System\Xml\Schema\XmlSchemaComplexType.cs (1)
318System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaComplexType. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaElement.cs (1)
273System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaElement. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaGroup.cs (1)
74System.Diagnostics.Debug.Fail("Should never call Clone() on XmlSchemaGroup. Call Clone(XmlSchema) instead.");
System\Xml\Schema\XmlSchemaObject.cs (4)
62get { Debug.Fail("Should not use base property"); return null; } 63set { Debug.Fail("Should not use base property"); } 72get { Debug.Fail("Should not use base property"); return null; } 73set { Debug.Fail("Should not use base property"); }
System\Xml\Schema\XmlValueConverter.cs (1)
270Debug.Fail($"Type code {typeCode} is not supported.");
System\Xml\Schema\XsdBuilder.cs (5)
967Debug.Fail($"State is {state}"); 1092Debug.Fail($"State is {state}"); 1333Debug.Fail($"Unexpected parent element {builder.ParentElement}"); 2376Debug.Fail($"Unexpected parent element {this.ParentElement}"); 2425Debug.Fail($"Unexpected parent element {this.ParentElement}");
System\Xml\Serialization\CodeGenerator.cs (3)
66Debug.Fail("Interface not found"); 176System.Diagnostics.Debug.Fail("Variable not found"); 787Debug.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)
1034Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1053Debug.Fail("https://github.com/dotnet/runtime/issues/18037: Add More Tests for Serialization Code"); 1058Debug.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)
545Debug.Fail($"Invalid location: {_storage.Location}"); 574Debug.Fail($"Invalid location: {_storage.Location}");
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
217Debug.Fail("Cannot handle more than 2 arguments.");
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
501default: Debug.Fail($"{ndConstr.NodeType} is not handled by XmlILStateAnalyzer."); break;
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
5469Debug.Fail($"Cannot fold this comparison operation: {opType}"); 5581Debug.Fail($"Cannot fold this arithmetic operation: {opType}");
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (13)
336Debug.Fail($"Visit{parent.NodeType} should never be called"); 1772Debug.Fail($"Comparisons for datatype {code} are invalid."); 2030Debug.Fail($"Pattern {step.NodeType} should have been handled."); 2474Debug.Fail($"Pattern {step.NodeType} should have been handled."); 2500Debug.Fail($"Pattern {step.NodeType} should have been handled."); 3137Debug.Fail($"Unexpected node type {ndProp.NodeType}"); 3681Debug.Fail($"Internal Xslt library may not use parameters of type {clrTypeFormalArg}"); 3811Debug.Fail($"Conversion from {ndConv.Source.XmlType} to {ndConv.TargetType} is not supported."); 4309default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4322default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4338default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4357default: Debug.Fail($"Unexpected rel op {relOp}"); opcode = OpCodes.Nop; break; 4604Debug.Fail($"Cannot map QilNodeType {typ} to an XPathNodeType");
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
185Debug.Fail(message);
System\Xml\Xsl\Runtime\ContentIterators.cs (1)
418Debug.Fail($"Invalid IteratorState {_state}");
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (6)
176Debug.Fail("Should never be called on XmlAttributeCache."); 180Debug.Fail("Should never be called on XmlAttributeCache."); 184Debug.Fail("Should never be called on XmlAttributeCache."); 188Debug.Fail("Should never be called on XmlAttributeCache."); 192Debug.Fail("Should never be called on XmlAttributeCache."); 197Debug.Fail("Should never be called on XmlAttributeCache.");
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
301Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}");
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (3)
1021Debug.Fail($"Text cannot be output in the {_xstate} state."); 1192Debug.Fail($"Unexpected node type {navigator.NodeType}"); 1340Debug.Fail($"{xstate} is not a valid XmlState.");
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
778Debug.Fail($"XmlTypeCode {code} was not fully handled.");
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (1)
319Debug.Fail($"Unexpected node type {nav.NodeType}");
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
314Debug.Fail($"Conversion from {value.XmlType.QualifiedName.Name} to {destinationType} is not supported.");
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
302Debug.Fail($"Unexpected type: {o.GetType()}");
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
573Debug.Fail("Invalid XSLT value");
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
1182Debug.Fail($"Don't know how to serialize {type.GetType()}"); 1201Debug.Fail("Unexpected XmlQueryType's subtype id");
System\Xml\Xsl\XPath\XPathBuilder.cs (6)
46Debug.Fail("Must not be called"); 129Debug.Fail($"{op} is not a valid XPathOperator"); 161Debug.Fail("Wrong operator type"); 294Debug.Fail("Wrong operator type"); 414Debug.Fail("Invalid EnumValue 'XPathAxis'"); 602Debug.Fail($"{func.id} is present in the function table, but absent from the switch");
System\Xml\Xsl\XPath\XPathQilFactory.cs (1)
182default: Debug.Fail($"Unexpected XmlTypeCode: {requiredType}"); return null;
System\Xml\Xsl\XPath\XPathScanner.cs (1)
585Debug.Fail($"Unexpected LexKind: {t}");
System\Xml\Xsl\XPathConvert.cs (1)
2165Debug.Fail("Who's subtracting to negative?");
System\Xml\Xsl\XslException.cs (1)
62Debug.Fail($"Resource string '{res}' was not found");
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
743default: Debug.Fail($"Unexpected type of AST node: {nodeType}"); result = null; break; 1873Debug.Fail($"Unexpected NodeKind: {nodeKinds}");
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
32Debug.Fail("Should never get here"); 134Debug.Fail($"{func.id} is present in the function table, but absent from the switch"); 251default: Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}"); break;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (3)
226Debug.Fail("Should not call to this function."); 444Debug.Fail("GetPosition() must not be called"); 450Debug.Fail("GetLast() must not be called");
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1173Debug.Fail($"Unexpected XmlQueryType for script function: {xt}");
System\Xml\Xsl\Xslt\XsltLoader.cs (2)
98Debug.Fail("Should never get here"); 341Debug.Fail("AddTemplate() returned false for simplified stylesheet");
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (1)
196Debug.Fail("Invalid ApplyTemplatesAction execution state");
System\Xml\Xsl\XsltOld\AttributeAction.cs (1)
165Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (1)
112Debug.Fail("Invalid CallTemplateAction execution state");
System\Xml\Xsl\XsltOld\CommentAction.cs (1)
51Debug.Fail("Invalid IfAction execution state");
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
792Debug.Fail("Unexpected node type."); 974Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\CopyAction.cs (1)
116Debug.Fail("Invalid CopyAction execution state");
System\Xml\Xsl\XsltOld\CopyCodeAction.cs (1)
78Debug.Fail("Invalid CopyCodeAction execution state");
System\Xml\Xsl\XsltOld\ElementAction.cs (1)
152Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\IfAction.cs (1)
96Debug.Fail("Invalid IfAction execution state");
System\Xml\Xsl\XsltOld\MessageAction.cs (1)
68Debug.Fail("Invalid MessageAction execution state");
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
86Debug.Fail($"Invalid NodeType on output: {mainNode.NodeType}");
System\Xml\Xsl\XsltOld\newinstructionaction.cs (1)
72Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\NumberAction.cs (2)
357Debug.Fail("We implementing preceding-sibling::node() and some how miss context node 'nav'"); 454Debug.Fail("Invalid Number Action execution state");
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (1)
108Debug.Fail("Invalid ElementAction execution state");
System\Xml\Xsl\XsltOld\Processor.cs (6)
763Debug.Fail("Unexpected result of RecordBuilder.BeginEvent()"); 803Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 838Debug.Fail("Unexpected result of RecordBuilder.TextEvent()"); 866Debug.Fail("Invalid XPathNodeType in CopyBeginEvent"); 895Debug.Fail("Invalid XPathNodeType in CopyTextEvent"); 925Debug.Fail("Invalid XPathNodeType in CopyEndEvent");
System\Xml\Xsl\XsltOld\RootAction.cs (1)
288Debug.Fail("Invalid RootAction execution state");
System\Xml\Xsl\XsltOld\SequentialOutput.cs (4)
436Debug.Fail("Should never get here"); 477Debug.Fail("Should never get here"); 485Debug.Fail("Should never get here"); 506Debug.Fail("Should never get here");
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
248Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\TextAction.cs (1)
81Debug.Fail("Invalid execution state in TextAction");
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (1)
85Debug.Fail("Invalid Container action execution state");
System\Xml\Xsl\XsltOld\ValueOfAction.cs (2)
84Debug.Fail("Invalid ValueOfAction execution state"); 123Debug.Fail("Invalid BuiltInRuleTextAction execution state");
System\Xml\Xsl\XsltOld\VariableAction.cs (1)
180Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WithParamAction.cs (1)
66Debug.Fail("Invalid execution state inside VariableAction.Execute");
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
46Debug.Fail("XSLT never gives us CDATA"); 75Debug.Fail($"Invalid NodeType on output: {mainNode.NodeType}");
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
736Debug.Fail("unexpected XPath type");
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
219Debug.Fail("Override invoked");
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
1032System.Diagnostics.Debug.Fail("Parent node doesn't contain itself.");
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeName.cs (1)
145Debug.Fail("Pre-allocated full name should have been provided in the ctor");
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.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
137Debug.Fail("Reason should never be CacheEntryRemovedReason.Evicted since the entry was inserted as NotRemovable.");
System.Security.Cryptography (99)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs (1)
32Debug.Fail($"NID Lookup for {oid} failed, only well-known types should be queried.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs (1)
61Debug.Fail("Key is invalid or doesn't have a curve");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs (2)
35Debug.Fail( 66Debug.Fail(
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (1)
125Debug.Fail($"Unexpected return '{ret}' value from {nameof(CryptoNative_GetPkcs8PrivateKeySize)}.");
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.Chain.cs (2)
27Debug.Fail($"Unexpected response from X509ChainGetCachedOcspSuccess: {response}"); 69Debug.Fail($"Unexpected response from X509ChainGetCachedOcspSuccess: {response}");
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
104Debug.Fail("Unable to load required type."); 133Debug.Fail("Unable to load required members.");
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
90Debug.Fail($"TryGetHashAndReset wrote {bytesWritten} bytes when {expectedOutputSize} was expected");
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (1)
227Debug.Fail("TryEncode failed with a pre-allocated buffer");
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (4)
257Debug.Fail($"Stack-based signDestination is insufficient ({maxSignatureSize} needed)"); 274Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}"); 289Debug.Fail($"Stack-based signDestination is insufficient ({signatureLength} needed)"); 339Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (3)
143Debug.Fail($"Stack-based signDestination is insufficient ({signatureLength} needed)"); 172Debug.Fail($"Stack-based signDestination is insufficient ({signatureLength} needed)"); 239Debug.Fail($"Missing internal implementation handler for signature format {signatureFormat}");
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
387Debug.Fail($"UTF-8 encoding size changed between GetByteCount and GetBytes"); 421Debug.Fail("TryEncode failed with a pre-allocated buffer"); 601Debug.Fail("Key-sized OID included in the if, but not the switch"); 749Debug.Fail($"No Specified Salt value is present, indicating a new choice was unhandled"); 879Debug.Fail( 1000Debug.Fail("TryGetHashAndReset failed with pre-allocated input"); 1013Debug.Fail("TryGetHashAndReset failed with pre-allocated input");
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (3)
186Debug.Fail($"Hash output wrote {bytesWritten} bytes when {hashBuf.Length} was expected"); 284Debug.Fail($"Unexpected written byte count ({count} vs {fullCopyLen})"); 301Debug.Fail($"Partial copy wrote {count} bytes of {destination.Length} expected");
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
195Debug.Fail("TryEncode failed with a presized buffer");
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (3)
186Debug.Fail("Caller is responsible for temporary decryption buffer creation"); 225Debug.Fail($"TryEncrypt behaved unexpectedly: {nameof(encrypted)}=={encrypted}, {nameof(bytesWritten)}=={bytesWritten}, {nameof(buf.Length)}=={buf.Length}"); 743Debug.Fail("TrySignHash should not return false in allocation mode");
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (7)
102Debug.Fail("Unknown digest algorithm"); 332Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 369Debug.Fail("Bad exception produced from OAEP padding: " + e); 439Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 566Debug.Fail("TryGetHashAndReset failed with exact-size destination"); 602Debug.Fail($"TryGetHashAndReset failed with sufficient space"); 615Debug.Fail($"TryGetHashAndReset failed with sufficient space");
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
22Debug.Fail($"Convert.TryToBase64 failed with {input.Length} bytes to a {base64.Length} buffer");
System\Security\Cryptography\AesCcm.OpenSsl.cs (3)
79Debug.Fail($"CCM encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 136Debug.Fail($"CCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 161Debug.Fail("Key size should already be validated");
System\Security\Cryptography\AesGcm.OpenSsl.cs (3)
69Debug.Fail($"GCM encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 117Debug.Fail($"GCM decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 130Debug.Fail("Key size should already be validated");
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
199Debug.Fail($"A signature field was longer ({signatureField.Length}) than expected ({response.Length})");
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (3)
68Debug.Fail($"ChaCha20Poly1305 encrypt wrote {ciphertextBytesWritten} of {ciphertext.Length} bytes."); 116Debug.Fail($"ChaCha20Poly1305 decrypt wrote {plaintextBytesWritten} of {plaintext.Length} bytes."); 127Debug.Fail("Key size should already be validated");
System\Security\Cryptography\CryptoConfig.cs (1)
405Debug.Fail("Unsupported Dictionary value:" + retvalObj.ToString());
System\Security\Cryptography\ECDsa.cs (2)
158Debug.Fail($"GetMaxSignatureSize returned insufficient size for format {signatureFormat}"); 440Debug.Fail($"GetMaxSignatureSize returned insufficient size for format {signatureFormat}");
System\Security\Cryptography\HashProviderDispenser.Unix.cs (1)
47Debug.Fail("Destination length or hash size not valid.");
System\Security\Cryptography\Helpers.cs (2)
175Debug.Fail("input.Overlaps(primitive) failed after TryReadPrimitiveOctetString succeeded"); 241Debug.Fail($"Missing match criteria for curve type {aCurve.CurveType}");
System\Security\Cryptography\LiteHash.OpenSsl.cs (1)
24Debug.Fail("Platform should have previously checked support for algorithm.");
System\Security\Cryptography\LiteHash.Unix.cs (2)
125Debug.Fail($"Unexpected hash '{_hashSizeInBytes}' size from {nameof(Interop.Crypto.EvpMdSize)}."); 198Debug.Fail($"Unexpected hash '{_hashSizeInBytes}' size from {nameof(Interop.Crypto.EvpMdSize)}.");
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
30Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\OpenSslCipherLite.cs (2)
55Debug.Fail("Cipher was reused without being reset."); 98Debug.Fail("Cipher was reused without being reset.");
System\Security\Cryptography\PemEncoding.cs (2)
409Debug.Fail("Convert.TryToBase64Chars failed with a pre-sized buffer"); 541Debug.Fail("WriteCore wrote the wrong amount of data");
System\Security\Cryptography\PemKeyHelpers.cs (2)
146Debug.Fail("Base64 decoding failed on already validated contents."); 232Debug.Fail("Base64 decoding failed on already validated contents.");
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (1)
64Debug.Fail("Called UpRefEvpPkey on a key which was already marked for destruction");
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (1)
33Debug.Fail("Reset expected a properly sized buffer.");
System\Security\Cryptography\SymmetricPadding.cs (2)
31Debug.Fail($"Unknown padding mode {paddingMode}."); 145Debug.Fail($"Unknown padding mode {padding}.");
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (2)
42Debug.Fail("Expected GetExpectedOidValue() to have thrown before we got here."); 72Debug.Fail("Expected GetExpectedOidValue() to have thrown before we got here.");
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
530Debug.Fail($"Key was of no known type: {_key?.GetType().FullName ?? "null"}");
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
55Debug.Fail("Base64Decode failed, but PemEncoding said it was legal"); 375Debug.Fail(
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
276Debug.Fail("Base64Decode failed, but PemEncoding said it was legal");
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
55Debug.Fail("Presized hash buffer was not the correct size.");
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (2)
153Debug.Fail("Failed to get the last write time of the CRL file"); 286Debug.Fail("HashData failed or produced an incorrect length output");
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (4)
1171Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code30); 1183Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code102); 1195Debug.Fail("Unrecognized X509VerifyStatusCode:" + code.Code111); 1561Debug.Fail($"Out of range X509VerifyStatusCode returned {val} >= {OverflowValue}");
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (3)
306Debug.Fail("TryEncode failed with a pre-allocated buffer"); 470Debug.Fail("TryEncode failed with a pre-allocated buffer"); 501Debug.Fail($"HMACSHA1.HashData wrote {bytesWritten} of {HMACSHA1.HashSizeInBytes} bytes");
System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs (1)
184Debug.Fail("Couldn't unpack decrypted buffer.");
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
144Debug.Fail("AsnValueReader produced a span outside of the original bounds");
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
399Debug.Fail($"Invalid parser state. Position {pos}, State {state}, Character {c}, String \"{stringForm}\"");
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
178Debug.Fail("TryReadPrimitiveOctetString should either succeed or throw with DER.");
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1091Debug.Fail("The contents should have already been validated by the PEM reader.");
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (3)
384Debug.Fail("The contents should have already been validated by the PEM reader."); 498Debug.Fail("Pre-allocated buffer was not the correct size."); 553Debug.Fail("Presized buffer is too small or did not write the correct amount.");
System\Security\Cryptography\XmlKeyHelper.cs (2)
148Debug.Fail($"Convert.TryToBase64Chars failed with {localLength} bytes to {StackChars} chars"); 247Debug.Fail("Original enumerator had elements, new one does not");
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
137Debug.Fail("TrySignData failed with a pre-calculated destination"); 158Debug.Fail("TrySignData failed with a pre-calculated destination");
System.Text.Encoding.CodePages (1)
System\Text\ISO2022Encoding.cs (1)
314Debug.Fail("[ISO2022Encoding.GetChars] had unexpected code page");
System.Text.Encodings.Web (8)
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.Text.Json (44)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
85Debug.Fail($"Unexpected state {state}");
System\Text\Json\Document\JsonDocument.cs (3)
175Debug.Fail( 799Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}"); 845Debug.Fail($"Unexpected encounter with JsonTokenType {row.TokenType}");
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
328Debug.Fail($"Unable to find expected {lookupType} token");
System\Text\Json\Document\JsonElement.cs (1)
1438Debug.Fail($"No handler for {nameof(JsonTokenType)}.{TokenType}");
System\Text\Json\Nodes\JsonArray.cs (1)
124Debug.Fail("Impossible case");
System\Text\Json\Nodes\JsonObject.cs (1)
192Debug.Fail("Impossible case");
System\Text\Json\Nodes\JsonValueOfT.cs (1)
114Debug.Fail("Object and Array JsonElements cannot be contained in JsonValue.");
System\Text\Json\Reader\JsonReaderHelper.cs (1)
68Debug.Fail($"No mapping for token type {tokenType}");
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
268Debug.Fail("Throw helper should have thrown an exception.");
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (1)
71Debug.Fail("Unrecognized F# type.");
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (2)
50Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter."); 108Debug.Fail("More than 4 params: we should be in override for LargeObjectWithParameterizedConstructorConverter.");
System\Text\Json\Serialization\JsonConverter.cs (2)
102Debug.Fail("Should not be reachable."); 109Debug.Fail("Should not be reachable.");
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (3)
59Debug.Fail("Unexpected PolymorphicSerializationState."); 131Debug.Fail("Unexpected PolymorphicSerializationState."); 171Debug.Fail("Unexpected ReferenceHandlingStrategy.");
System\Text\Json\Serialization\JsonConverterFactory.cs (12)
59Debug.Fail("We should never get here."); 71Debug.Fail("We should never get here."); 83Debug.Fail("We should never get here."); 90Debug.Fail("We should never get here."); 97Debug.Fail("We should never get here."); 104Debug.Fail("We should never get here."); 111Debug.Fail("We should never get here."); 122Debug.Fail("We should never get here."); 133Debug.Fail("We should never get here."); 140Debug.Fail("We should never get here."); 154Debug.Fail("We should never get here."); 161Debug.Fail("We should never get here.");
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
32Debug.Fail($"obj.GetType() => {objTypeName}; {jsonTypeInfo.GetPropertyDebugInfo(unescapedPropertyName)}");
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
349Debug.Fail("Only FieldInfo and PropertyInfo members are supported."); 447Debug.Fail($"Invalid MemberInfo type: {memberInfo.MemberType}");
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
399Debug.Fail($"Unknown value of JsonIgnoreCondition '{ignoreCondition}'");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (3)
163Debug.Fail($"Property cache is null. {GetPropertyDebugInfo(propertyName)}"); 180Debug.Fail($"key {key} [propertyName={propertyNameStr}] does not match re-computed value {recomputedKey} for the same sequence (case-insensitive). {info.GetDebugInfo()}"); 200Debug.Fail($"key {key} [propertyName={propertyNameStr}] does not match re-computed value {recomputedKey} for the same sequence (case-sensitive). {info.GetDebugInfo()}");
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1321Debug.Fail($"Unexpected class type: {converter.ConverterStrategy}");
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
108Debug.Fail("We shouldn't be here if there are more than 4 parameters.");
System\Text\Json\ThrowHelper.cs (4)
471Debug.Fail($"The ExceptionResource enum value: {resource} is not part of the switch. Add the appropriate case and exception message."); 602Debug.Fail($"The ExceptionResource enum value: {resource} is not part of the switch. Add the appropriate case and exception message."); 664Debug.Fail($"The NumericType enum value: {numericType} is not part of the switch. Add the appropriate case and exception message."); 692Debug.Fail($"The DataType enum value: {dataType} is not part of the switch. Add the appropriate case and exception message.");
System.Text.Json.SourceGeneration (4)
Helpers\RoslynExtensions.cs (1)
268Debug.Fail("unexpected syntax kind");
JsonSourceGenerator.Emitter.cs (1)
218Debug.Fail($"Unexpected class type {typeGenerationSpec.ClassType}");
JsonSourceGenerator.Parser.cs (1)
1385Debug.Fail("Method given an invalid symbol type.");
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
85Debug.Fail($"Unexpected state {state}");
System.Text.RegularExpressions (27)
System\Text\RegularExpressions\RegexCompiler.cs (3)
487Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 2824Debug.Fail($"Unexpected node type: {node.Kind}"); 5272Debug.Fail("We should never get here. This method should only be called if CanEmitIndexOf returned true, and all of the same cases should be covered.");
System\Text\RegularExpressions\RegexInterpreter.cs (1)
1142Debug.Fail($"Unimplemented state: {_operator:X8}");
System\Text\RegularExpressions\RegexInterpreterCode.cs (1)
117Debug.Fail($"Unknown opcode: {opcode}");
System\Text\RegularExpressions\RegexNode.cs (5)
193Debug.Fail($"Unexpected type: {Kind}"); 228Debug.Fail("All Group nodes should have been removed."); 284Debug.Fail($"Unexpected node type: {node.Kind}"); 2352Debug.Fail($"Unknown node: {Kind}"); 2489Debug.Fail($"Unknown node: {Kind}");
System\Text\RegularExpressions\RegexParser.cs (2)
421Debug.Fail($"Unexpected char {ch}"); 479Debug.Fail($"Unexpected char {ch}");
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1094Debug.Fail($"Unexpected node {node.Kind}");
System\Text\RegularExpressions\RegexReplacement.cs (1)
80Debug.Fail($"Unexpected child kind {child.Kind}");
System\Text\RegularExpressions\RegexWriter.cs (1)
447Debug.Fail($"Unexpected node: {nodeType}");
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
196Debug.Fail(description);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
360Debug.Fail($"{nameof(Transform)}:{node._kind}");
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (3)
783Debug.Fail("No nullable state found in the set of end states"); 1049Debug.Fail("ExtractNullableCoreStateId should only be called in nullable state/context."); 1065Debug.Fail("FixedLength should only be called in nullable state/context.");
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (7)
1345Debug.Fail($"{nameof(CreateDerivative)}:{_kind}"); 1406Debug.Fail($"{nameof(StripEffects)}:{_kind}"); 1516Debug.Fail($"{nameof(StripAndMapEffects)}:{_kind}"); 1764Debug.Fail($"{nameof(ToStringHelper)}:{_kind}"); 1892Debug.Fail($"{nameof(CollectSets)}:{_kind}"); 1965Debug.Fail("Should only happen if a reversed regex is reversed again, which isn't expected"); 2053Debug.Fail($"{nameof(ComputeStartSet)}:{kind}");
System.Text.RegularExpressions.Generator (12)
RegexGenerator.Emitter.cs (4)
757Debug.Fail($"Unexpected mode: {regexTree.FindOptimizations.FindMode}"); 997Debug.Fail($"Unexpected mode: {opts.FindMode}"); 2913Debug.Fail($"Unexpected node type: {node.Kind}"); 5398Debug.Fail("This shouldn't happen, as we should only get to the point of emitting code if RegexOptions was valid.");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (5)
193Debug.Fail($"Unexpected type: {Kind}"); 228Debug.Fail("All Group nodes should have been removed."); 284Debug.Fail($"Unexpected node type: {node.Kind}"); 2352Debug.Fail($"Unknown node: {Kind}"); 2489Debug.Fail($"Unknown node: {Kind}");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
421Debug.Fail($"Unexpected char {ch}"); 479Debug.Fail($"Unexpected char {ch}");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1094Debug.Fail($"Unexpected node {node.Kind}");
System.Threading.Channels (2)
System\Threading\Channels\AsyncOperation.cs (2)
17private static void AvailableSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation)}.{nameof(AvailableSentinel)} invoked with {s}"); 21private static void CompletedSentinel(object? s) => Debug.Fail($"{nameof(AsyncOperation)}.{nameof(CompletedSentinel)} invoked with {s}");
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\Parallel.cs (1)
2706Debug.Fail("PartitionerForEach: illegal body type in Partitioner handler");
System\Threading\Tasks\ParallelLoopState.cs (3)
43Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod); 100Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod); 148Debug.Fail(SR.ParallelState_NotSupportedException_UnsupportedMethod);
System.Transactions.Local (24)
System\Transactions\Enlistment.cs (2)
177Debug.Fail("PromotableSinglePhaseNotification called for a non promotable enlistment."); 249Debug.Fail("ResourceManagerIdentifier called for non durable enlistment");
System\Transactions\EnlistmentState.cs (8)
59Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 65Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 71Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 77Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 83Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 89Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 95Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}"); 101Debug.Fail($"Invalid Event for InternalEnlistment State; Current State: {GetType()}");
System\Transactions\InternalTransaction.cs (1)
327Debug.Fail("InternalTransaction.DistributedTransactionOutcome - Unexpected TransactionStatus");
System\Transactions\TransactionState.cs (13)
185Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 299Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 311Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 323Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 335Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 347Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 359Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 371Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 383Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 395Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 411Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 417Debug.Fail($"Invalid Event for State; Current State: {GetType()}"); 423Debug.Fail($"Invalid Event for State; Current State: {GetType()}");
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
352Debug.Fail("Unsupported parameters");
System.Xaml (8)
System\Xaml\Schema\Reflector.cs (5)
108Debug.Fail("Unexpected attribute type requested: " + attributeType.Name); 152Debug.Fail("Unexpected attribute type requested: " + attributeType.Name); 183Debug.Fail("Unexpected attribute type requested: " + attributeType.Name); 224Debug.Fail("Unexpected attribute type requested: " + attributeType.Name); 304Debug.Fail("Unexpected attribute type requested: " + attributeType.Name);
System\Xaml\XamlMember.cs (1)
937Debug.Fail("Enum out of range");
System\Xaml\XamlObjectReader.cs (1)
3278Debug.Fail("Invalid enum value");
System\Xaml\XamlType.cs (1)
1664Debug.Fail("Enum out of range");