1474 references to InvalidOperationException
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Confluent.Kafka.Tests (10)
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Azure.Tests (6)
Aspire.NATS.Net.Tests (5)
BasicWebSite (1)
BuildValidator (2)
ConfigurationSchemaGenerator (6)
CSharpSyntaxGenerator (1)
dotnet-svcutil-lib (29)
FormatterWebSite (1)
GenerateDocumentationAndConfigFiles (30)
http2cat (3)
IdeBenchmarks (2)
IIS.FunctionalTests (3)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (3)
illink (13)
ILLink.RoslynAnalyzer (13)
InMemory.FunctionalTests (7)
Interop.FunctionalTests (3)
KeyManagementSimulator (1)
Metrics (28)
Metrics.Legacy (28)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\RoutePattern\RoutePatternNodes.cs (10)
92_ => throw new InvalidOperationException(),
158_ => throw new InvalidOperationException(),
182_ => throw new InvalidOperationException(),
206_ => throw new InvalidOperationException(),
230_ => throw new InvalidOperationException(),
254_ => throw new InvalidOperationException(),
282_ => throw new InvalidOperationException(),
306_ => throw new InvalidOperationException(),
365_ => throw new InvalidOperationException(),
389_ => throw new InvalidOperationException(),
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Tests (16)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Microsoft.AspNetCore.Diagnostics.Tests (12)
ExceptionHandlerMiddlewareTest.cs (12)
108var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, loggerFactory: new TestLoggerFactory(sink, true));
132var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, loggerFactory: new TestLoggerFactory(sink, true));
170var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor);
192var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, loggerFactory: new TestLoggerFactory(sink, true));
231var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, loggerFactory: new TestLoggerFactory(sink, true));
267var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
297var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers);
339var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
361var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory);
386var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
537var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
563var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Core.Test (5)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Session.Tests (4)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis (39)
Microsoft.CodeAnalysis.Analyzers (33)
Microsoft.CodeAnalysis.Analyzers.UnitTests (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (30)
Microsoft.CodeAnalysis.BannedApiAnalyzers (32)
Microsoft.CodeAnalysis.CodeStyle (23)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.Collections.Package (3)
Microsoft.CodeAnalysis.CSharp (12)
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (61)
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (39)
37_ => throw new InvalidOperationException(),
88_ => throw new InvalidOperationException(),
131_ => throw new InvalidOperationException(),
162_ => throw new InvalidOperationException(),
198_ => throw new InvalidOperationException(),
232_ => throw new InvalidOperationException(),
281_ => throw new InvalidOperationException(),
324_ => throw new InvalidOperationException(),
356_ => throw new InvalidOperationException(),
388_ => throw new InvalidOperationException(),
423_ => throw new InvalidOperationException(),
471_ => throw new InvalidOperationException(),
505_ => throw new InvalidOperationException(),
543_ => throw new InvalidOperationException(),
570_ => throw new InvalidOperationException(),
643_ => throw new InvalidOperationException(),
694_ => throw new InvalidOperationException(),
731_ => throw new InvalidOperationException(),
767_ => throw new InvalidOperationException(),
803_ => throw new InvalidOperationException(),
839_ => throw new InvalidOperationException(),
890_ => throw new InvalidOperationException(),
927_ => throw new InvalidOperationException(),
963_ => throw new InvalidOperationException(),
1005_ => throw new InvalidOperationException(),
1054_ => throw new InvalidOperationException(),
1109_ => throw new InvalidOperationException(),
1145_ => throw new InvalidOperationException(),
1198_ => throw new InvalidOperationException(),
1217_ => throw new InvalidOperationException(),
1236_ => throw new InvalidOperationException(),
1258_ => throw new InvalidOperationException(),
1280_ => throw new InvalidOperationException(),
1302_ => throw new InvalidOperationException(),
1328_ => throw new InvalidOperationException(),
1356_ => throw new InvalidOperationException(),
1380throw new InvalidOperationException();
1401_ => throw new InvalidOperationException(),
1440_ => throw new InvalidOperationException(),
Microsoft.CodeAnalysis.InteractiveHost (5)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (32)
Microsoft.CodeAnalysis.PublicApiAnalyzers (29)
Microsoft.CodeAnalysis.Rebuild (6)
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (34)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (14)
Microsoft.CodeAnalysis.Threading.Package (3)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (36)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.XUnitAssert.Tests (8)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.Evaluation.Console.Tests (5)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Polly.Tests (6)
Microsoft.Extensions.Http.Resilience.Tests (5)
Microsoft.Extensions.Resilience.Tests (2)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (8)
Microsoft.Maui.Controls (4)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.ML.Core (2)
Microsoft.ML.CpuMath (2)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (22)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
Microsoft.VisualStudio.LanguageServices.Implementation (7)
MyFrontend (1)
PresentationBuildTasks (3)
PresentationCore (22)
PresentationFramework (26)
PresentationUI (1)
ReachFramework (11)
Roslyn.Diagnostics.Analyzers (32)
Roslyn.Diagnostics.CSharp.Analyzers (10)
RoutingSandbox (1)
RoutingWebSite (1)
Shared (2)
System.Collections.Immutable (21)
System.ComponentModel.TypeConverter (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (3)
System.Drawing.Common (3)
System.Formats.Asn1 (14)
System.Formats.Cbor (2)
System.Formats.Nrbf (20)
System.IO.IsolatedStorage (1)
System.Linq.Expressions (7)
System.Linq.Parallel (2)
System.Memory (1)
System.Net.Http (2)
System.Net.Mail (1)
System.Net.NetworkInformation (3)
System.Net.Quic (3)
System.Net.Requests (1)
System.Net.Security (10)
System\Net\NegotiateAuthenticationPal.Unsupported.cs (6)
26public override IIdentity RemoteIdentity => throw new InvalidOperationException();
52public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) => throw new InvalidOperationException();
53public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) => throw new InvalidOperationException();
54public override NegotiateAuthenticationStatusCode UnwrapInPlace(Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted) => throw new InvalidOperationException();
55public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) => throw new InvalidOperationException();
56public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) => throw new InvalidOperationException();
System.Net.Sockets (1)
System.Private.CoreLib (35)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (10)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Windows.GdiPlus (2)
System.Private.Xml (18)
System.Reflection.Context (2)
System.Reflection.Emit (6)
System.Reflection.MetadataLoadContext (3)
System.Security.Cryptography (5)
System.Security.Cryptography.Pkcs (3)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (1)
System.ServiceModel.Primitives.Tests (1)
System.Text.Encoding.CodePages (1)
System.Text.Json (29)
System.Text.Json.SourceGeneration (2)
System.Transactions.Local (11)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (41)
System.Windows.Forms.Design (24)
System.Windows.Forms.Design.Tests (27)
System.Windows.Forms.Primitives (2)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (17)
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (1)
Test.Utilities (26)
Text.Analyzers (32)
UIAutomationClient (1)
UIAutomationClientSideProviders (6)
VBCSCompiler (3)
VBCSCompiler.UnitTests (2)
VisualBasicRuntimeTest (7)
WinFormsControlsTest (2)