Implemented interface members:
property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]
property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
4081 writes to Item
AnalyzerRunner (2)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Dashboard (4)
Aspire.Dashboard.Tests (99)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (6)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Tests (42)
Aspire.Hosting.Elasticsearch (1)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (7)
Aspire.Hosting.PostgreSQL (4)
Aspire.Hosting.Qdrant (4)
Aspire.Hosting.RabbitMQ (3)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (5)
Aspire.Playground.Tests (1)
Aspire.Workload.Tests (2)
BuildValidator (4)
ConfigurationSchemaGenerator (2)
dotnet-openapi (4)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (76)
HtmlGenerationWebSite (1)
http2cat (1)
Identity.DefaultUI.WebSite (4)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.Microbenchmarks (2)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (1)
illink (43)
ILLink.RoslynAnalyzer (9)
ILLink.Tasks (5)
Infrastructure.Common (35)
InMemory.FunctionalTests (6)
installer.tasks (4)
KeyManagementSimulator (1)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components (16)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView.Test (4)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.Grpc.Microbenchmarks (2)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (38)
Microsoft.AspNetCore.Http.Microbenchmarks (12)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.InMemory.Test (6)
Microsoft.AspNetCore.Identity.Specification.Tests (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.JsonPatch.Tests (8)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Core.Test (17)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
Microsoft.AspNetCore.OpenApi (10)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Razor.Runtime (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (2)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (2)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Rewrite.Tests (1)
Microsoft.AspNetCore.Routing (6)
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Microsoft.AspNetCore.Security.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (11)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (2)
Microsoft.AspNetCore.WebUtilities (5)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
Microsoft.Build (178)
BackEnd\Components\BuildComponentFactoryCollection.cs (21)
60_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton);
61_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton);
62_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton);
63_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton);
64_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton);
66_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton);
67_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton);
68_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton);
69_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton);
74_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton);
78_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null);
79_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways);
81_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton);
82_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways);
83_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways);
84_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton);
87_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton);
90_componentEntriesByType[BuildComponentType.FileAccessManager] = new BuildComponentEntry(BuildComponentType.FileAccessManager, FileAccessManager.CreateComponent, CreationPattern.Singleton);
125_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern);
136_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, instance);
147_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
Microsoft.Build.Engine.OM.UnitTests (5)
Microsoft.Build.Engine.UnitTests (69)
Microsoft.Build.Framework (56)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.Build.Tasks.Core (50)
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (21)
Microsoft.Cci.Extensions (4)
Microsoft.CodeAnalysis (40)
Microsoft.CodeAnalysis.CodeStyle (22)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (34)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (12)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.EditorFeatures (29)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (27)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Features (119)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.LanguageServer (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol (44)
Microsoft.CodeAnalysis.Remote.ServiceHub (14)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Test.Utilities (7)
Microsoft.CodeAnalysis.Workspaces (92)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (5)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.ArcadeLogging (3)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Packaging (23)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.Build.Tasks.Workloads (30)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (8)
Microsoft.DotNet.SignCheckLibrary (6)
Microsoft.DotNet.SignTool (7)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Microsoft.DotNet.VersionTools (5)
Microsoft.DotNet.VersionTools.Tasks (1)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.ObjectPool.Microbenchmark (2)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (2)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Maui (22)
Microsoft.Maui.Controls (61)
Microsoft.Maui.Controls.Build.Tasks (21)
Microsoft.Maui.Controls.Compatibility (10)
Microsoft.Maui.Controls.Xaml (21)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (4)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (21)
Microsoft.ML.Core (6)
Microsoft.ML.Core.Tests (10)
Microsoft.ML.Data (56)
Microsoft.ML.DataView (2)
Microsoft.ML.Fairlearn (1)
Microsoft.ML.FastTree (11)
Microsoft.ML.GenAI.Core (6)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.ImageAnalytics (6)
Microsoft.ML.IntegrationTests (4)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (43)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Recommender (1)
Microsoft.ML.ResultProcessor (8)
Microsoft.ML.Samples (15)
Dynamic\Transforms\Conversion\MapValueToArray.cs (5)
36timeframeMap["0-4yrs"] = new int[] { 0, 5, 300 };
37timeframeMap["0-5yrs"] = new int[] { 0, 5, 300 };
38timeframeMap["6-11yrs"] = new int[] { 6, 11, 300 };
39timeframeMap["12-25yrs"] = new int[] { 12, 50, 300 };
40timeframeMap["25+yrs"] = new int[] { 12, 50, 300 };
Microsoft.ML.StandardTrainers (4)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.Tests (8)
Microsoft.ML.TimeSeries (10)
Microsoft.ML.Tokenizers (15)
Microsoft.ML.TorchSharp (26)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
464outColumns[Option.PredictedLabelColumnName] = new SchemaShape.Column(Option.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector,
467outColumns[Option.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Option.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector,
470outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
562outColumns[Options.PredictedLabelColumnName] = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector,
565outColumns[Options.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector,
568outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
NasBert\NasBertTrainer.cs (7)
335outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar,
338outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Vector,
350outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.VariableVector,
355outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.VectorKind.Scalar,
440outColumns[Options.PredictionColumnName] = new SchemaShape.Column(Options.PredictionColumnName, SchemaShape.Column.VectorKind.Scalar,
443outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Vector,
448outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.Scalar,
Microsoft.ML.Transforms (29)
Microsoft.ML.Vision (4)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.VisualStudio.LanguageServices (26)
Microsoft.VisualStudio.LanguageServices.CSharp (11)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
MSBuild (12)
MSBuildTaskHost (13)
PresentationBuildTasks (12)
PresentationCore (77)
PresentationFramework (58)
PresentationUI (2)
RazorBuildWebSite (1)
ReachFramework (44)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (1)
SocialWeather (2)
Swaggatherer (1)
System.CodeDom (4)
System.Collections.Immutable (1)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (22)
System.ComponentModel.TypeConverter (9)
System.Console (2)
System.Data.Common (5)
System.Data.Odbc (5)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.Drawing.Common.Tests (6)
System.Drawing.Primitives (1)
System.Formats.Nrbf (1)
System.Formats.Tar (13)
System.IO.Packaging (10)
System.Linq.Expressions (19)
System.Linq.Parallel (5)
System.Net.Http (2)
System.Net.HttpListener (5)
System.Net.Mail (5)
System.Net.NameResolution (1)
System.ObjectModel (1)
System.Private.CoreLib (42)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1341args[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
System.Private.Windows.Core (5)
System.Private.Xml (61)
System.Reflection.DispatchProxy (7)
System.Reflection.Metadata (1)
System.Resources.Extensions (6)
System.Runtime.Caching (2)
System.Security.Claims (1)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Primitives.Tests (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (7)
System.Text.RegularExpressions.Generator (1)
System.Windows.Controls.Ribbon (12)
System.Windows.Forms (1229)
System.Windows.Forms.Design (59)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (4)
System.Windows.Input.Manipulations (1)
System.Xaml (17)
TaskUsageLogger (4)
WindowsFormsIntegration (1)
XmlFileLogger (2)
xunit.assert (2)
xunit.console (1)
Xunit.NetCore.Extensions (4)
2878 references to Item
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (3)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.Dapr.Tests (8)
DaprTests.cs (8)
56e.AllocatedEndpoint = new(e, "localhost", ports[e.Name], targetPortExpression: $$$"""{{- portForServing "{{{e.Name}}}" -}}""");
62Assert.Equal("3500", config["DAPR_HTTP_PORT"]);
63Assert.Equal("50001", config["DAPR_GRPC_PORT"]);
65Assert.Equal("http://host.docker.internal:3500", config["DAPR_HTTP_ENDPOINT"]);
66Assert.Equal("http://host.docker.internal:50001", config["DAPR_GRPC_ENDPOINT"]);
155e.AllocatedEndpoint = new(e, "localhost", ports[e.Name], targetPortExpression: $$$"""{{- portForServing "{{{e.Name}}}" -}}""");
161Assert.Equal("http://host.docker.internal:3500", config["DAPR_HTTP_ENDPOINT"]);
162Assert.Equal("http://host.docker.internal:50001", config["DAPR_GRPC_ENDPOINT"]);
Aspire.Hosting.MySql.Tests (3)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Tests (45)
WithEnvironmentTests.cs (16)
35Assert.Equal("true", config["SP_AVAILABLE"]);
55Assert.Equal("https://localhost:2000", config["myName"]);
68Assert.Equal("value", config["myName"]);
84Assert.Equal("value", config["myName"]);
100Assert.Equal("value2", config["myName"]);
117Assert.Equal("MY_PARAMETER_VALUE", config["MY_PARAMETER"]);
133Assert.Equal("{parameter.value}", config["MY_PARAMETER"]);
172Assert.Equal("value2", config["myName"]);
201Assert.Equal($"http://container1:10005/foo", config["URL"]);
202Assert.Equal("90", config["PORT"]);
203Assert.Equal("10005", config["TARGET_PORT"]);
204Assert.Equal("connectionString;name=1", config["HOST"]);
207Assert.Equal("{container1.bindings.primary.url}/foo", manifestConfig["URL"]);
208Assert.Equal("{container1.bindings.primary.port}", manifestConfig["PORT"]);
209Assert.Equal("{container1.bindings.primary.targetPort}", manifestConfig["TARGET_PORT"]);
210Assert.Equal("{test.connectionString};name=1", manifestConfig["HOST"]);
WithReferenceTests.cs (12)
31Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
54Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
55Assert.Equal("https://localhost:3000", config["services__projecta__myconflictingbinding__0"]);
79Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
80Assert.Equal("http://localhost:3000", config["services__projecta__mynonconflictingbinding__0"]);
102Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
103Assert.Equal("https://localhost:3000", config["services__projecta__mybinding2__0"]);
123Assert.Equal("https://localhost:2000", config["services__projecta__mybinding__0"]);
124Assert.Equal("http://localhost:3000", config["services__projecta__mybinding2__0"]);
193Assert.Equal("test connection string", config["ConnectionStrings__resource"]);
209Assert.Equal("{resource.connectionString}", config["ConnectionStrings__resource"]);
225Assert.Equal("{resource.connectionString}", config["MY_ENV"]);
Aspire.Playground.Tests (1)
BoundTreeGenerator (1)
Client.ClientBase.IntegrationTests (2)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (102)
HtmlGenerationWebSite (1)
Identity.DefaultUI.WebSite (2)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IISExpress.FunctionalTests (3)
illink (11)
ILLink.RoslynAnalyzer (1)
ILLink.Tasks (9)
Infrastructure.Common (1)
InMemory.FunctionalTests (346)
Http2\Http2ConnectionTests.cs (26)
187var contentType1 = _receivedHeaders["Content-Type"];
204var contentType2 = _receivedHeaders["Content-Type"];
360Assert.Equal("true", _decodedHeaders["trailer-1"]);
388Assert.Equal("true", _decodedHeaders[$"trailer-{i + 1}"]);
2235Assert.Equal(header.Value, _receivedTrailers[header.Key]);
2389Assert.Equal("200", handler.Headers[":status"]);
2390Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]);
2391Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]);
2392Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]);
2406Assert.Equal("200", handler.Headers[":status"]);
2407Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]);
2408Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]);
2409Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]);
3093Assert.Equal("a=0; b=1; c=2", _receivedHeaders[HeaderNames.Cookie]);
4868Assert.Equal("1", _receivedTrailers["trailer-1"]);
4869Assert.Equal("2", _receivedTrailers["trailer-2"]);
5000Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5001Assert.Equal("0", _decodedHeaders["content-length"]);
5002Assert.Equal(_4kHeaderValue, _decodedHeaders["a"]);
5003Assert.Equal(_4kHeaderValue, _decodedHeaders["b"]);
5004Assert.Equal(_4kHeaderValue, _decodedHeaders["c"]);
5005Assert.Equal(_4kHeaderValue, _decodedHeaders["d"]);
5006Assert.Equal(_4kHeaderValue, _decodedHeaders["e"]);
5007Assert.Equal(_4kHeaderValue, _decodedHeaders["f"]);
5008Assert.Equal(_4kHeaderValue, _decodedHeaders["g"]);
5009Assert.Equal(_4kHeaderValue, _decodedHeaders["h"]);
Http2\Http2StreamTests.cs (212)
112Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
113Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
114Assert.Equal(method, _decodedHeaders["Method"]);
131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
133Assert.Equal(method, _decodedHeaders["Method"]);
162Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
163Assert.Equal("HEAD", _decodedHeaders["Method"]);
214Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
265Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
289Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
290Assert.Equal("CONNECT", _decodedHeaders["Method"]);
318Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
319Assert.Equal("", _decodedHeaders["path"]);
320Assert.Equal("*", _decodedHeaders["rawtarget"]);
321Assert.Equal("0", _decodedHeaders["content-length"]);
349Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
350Assert.Equal("/", _decodedHeaders["path"]);
351Assert.Equal("/", _decodedHeaders["rawtarget"]);
352Assert.Equal("0", _decodedHeaders["content-length"]);
386Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
387Assert.Equal("/a/path", _decodedHeaders["path"]);
388Assert.Equal("?a&que%35ry", _decodedHeaders["query"]);
389Assert.Equal("/a/path?a&que%35ry", _decodedHeaders["rawtarget"]);
390Assert.Equal("0", _decodedHeaders["content-length"]);
431Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
432Assert.Equal("0", _decodedHeaders["content-length"]);
503Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
504Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
554Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
555Assert.Equal("0", _decodedHeaders["content-length"]);
583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
584Assert.Equal("0", _decodedHeaders["content-length"]);
612Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
613Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
614Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]);
643Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
644Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
645Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]);
674Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
675Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
676Assert.Equal("def", _decodedHeaders[HeaderNames.Host]);
705Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
706Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
707Assert.Equal("def", _decodedHeaders[HeaderNames.Host]);
827Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]);
828Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
861Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]);
862Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
898Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
899Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
939Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
940Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
982Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
983Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1025Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1026Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1078Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1079Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1320Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1321Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1358Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1359Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1397Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1398Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1431Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
1432Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1466Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1501Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1502Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1541Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1576Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1624Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1664Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1700Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1701Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1742Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1778Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1779Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1812Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1849Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1850Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1887Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1888Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1934Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
1935Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1973Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1974Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2021Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
2022Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2084Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
2085Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2135Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2136Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2174Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2215Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2216Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]);
2217Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]);
2266Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2267Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2274Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2299Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
2300Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2345Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2352Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2387Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2394Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2442Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2449Assert.Equal(largeHeader, _decodedHeaders["CustomName0"]);
2450Assert.Equal(largeHeader, _decodedHeaders["CustomName1"]);
2451Assert.Equal(largeHeader, _decodedHeaders["CustomName2"]);
2452Assert.Equal(largeHeader, _decodedHeaders["CustomName3"]);
2453Assert.Equal(largeHeader, _decodedHeaders["CustomName4"]);
2460Assert.Equal(largeHeader, _decodedHeaders["CustomName5"]);
2500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2543Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2550Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]);
2551Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]);
2552Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]);
2584Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2629Assert.Equal(trailerValue, _decodedHeaders["too_long"]);
2673Assert.Equal("a-value", _decodedHeaders["a-key"]);
2674Assert.Equal("b-value", _decodedHeaders["b-key"]);
2681Assert.Equal(trailerValue, _decodedHeaders["too_long"]);
2712Assert.Equal("a-value", _decodedHeaders["a-key"]);
2713Assert.Equal("b-value", _decodedHeaders["b-key"]);
2720Assert.Equal(trailerValue, _decodedHeaders["too_long"]);
2762Assert.Equal(trailerValue, _decodedHeaders["too_long"]);
2779Assert.Equal(trailerValue, _decodedHeaders["too_long2"]);
2816Assert.Equal(shortValue, _decodedHeaders["short"]);
2833Assert.Equal(trailerValue, _decodedHeaders["long"]);
2834Assert.Equal(shortValue, _decodedHeaders["short2"]);
2861Assert.Equal("200", _decodedHeaders[":status"]);
2862Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]);
2880Assert.Equal(value, _decodedHeaders["too_long_header"]);
2905Assert.Equal(value, _decodedHeaders["too_long_trailer"]);
2919Assert.Equal("200", _decodedHeaders[":status"]);
2920Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]);
2938Assert.Equal(value, _decodedHeaders["too_long_header"]);
2963Assert.Equal(value, _decodedHeaders["too_long_trailer"]);
3029Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3035Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
3081Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3087Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
3119Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
3120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3157Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3557Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length);
3594Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length);
3595Assert.Equal(30, _decodedHeaders[HeaderNames.TE].Length);
3643Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length);
3644Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.TE].Length);
3706Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize - 20, _decodedHeaders[HeaderNames.ETag].Length);
3744Assert.Equal(headerValue, _decodedHeaders[longHeaderName]);
3813Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3814Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3862Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3906Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3952Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4005Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4058Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4104Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4154Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4199Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4242Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4280Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4281Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4423Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4473Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4474Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4519Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4520Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4559Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4560Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4623Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4624Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]);
4655Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4688Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4721Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
4776Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4777Assert.Equal("0", _decodedHeaders["content-length"]);
4836Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4837Assert.Equal("0", _decodedHeaders["content-length"]);
4844Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
4897Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
4898Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4962Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5019Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5020Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
5086Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
5204Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5213Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5278Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5287Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5354Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5355Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
5425Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5426Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
5499Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5508Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5592Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5665Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5674Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5752Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5761Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5799Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5800Assert.Equal("0", _decodedHeaders["content-length"]);
5874Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5926Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
Http3\Http3StreamTests.cs (97)
37Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
61Assert.Equal("401", responseHeaders[InternalHeaderNames.Status]);
119Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
120Assert.Equal("Custom", responseHeaders["Method"]);
121Assert.Equal("0", responseHeaders["content-length"]);
156Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
157Assert.Equal("CONNECT", responseHeaders["Method"]);
173Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
174Assert.Equal("", responseHeaders["path"]);
175Assert.Equal("*", responseHeaders["rawtarget"]);
176Assert.Equal("0", responseHeaders["content-length"]);
192Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
193Assert.Equal("/", responseHeaders["path"]);
194Assert.Equal("/", responseHeaders["rawtarget"]);
195Assert.Equal("0", responseHeaders["content-length"]);
218Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
219Assert.Equal("/a/path", responseHeaders["path"]);
220Assert.Equal("?a&que%35ry", responseHeaders["query"]);
221Assert.Equal("/a/path?a&que%35ry", responseHeaders["rawtarget"]);
222Assert.Equal("0", responseHeaders["content-length"]);
252Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
253Assert.Equal("0", responseHeaders["content-length"]);
311Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
312Assert.Equal("0", responseHeaders["content-length"]);
350Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
351Assert.Equal("0", responseHeaders["content-length"]);
370Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
371Assert.Equal("0", responseHeaders["content-length"]);
391Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
392Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
393Assert.Equal("abc", responseHeaders[HeaderNames.Host]);
414Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
415Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
416Assert.Equal("abc", responseHeaders[HeaderNames.Host]);
437Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
438Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
439Assert.Equal("def", responseHeaders[HeaderNames.Host]);
460Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
461Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
462Assert.Equal("def", responseHeaders[HeaderNames.Host]);
570Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
571Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
606Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
607Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
641Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
642Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
843Assert.Equal("Value1", responseTrailers["Trailer1"]);
844Assert.Equal("Value2", responseTrailers["Trailer2"]);
875Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
909Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
910Assert.Equal("Custom 你好 Type", responseHeaders[HeaderNames.ContentType]);
911Assert.Equal("Custom 你好 Value", responseHeaders["CustomName"]);
969Assert.Equal("Value1", responseTrailers["Trailer1"]);
970Assert.Equal("Value2", responseTrailers["Trailer2"]);
1058Assert.Equal("Custom 你好 Value", responseTrailers["CustomName"]);
1059Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]);
1060Assert.Equal("Custom 你好 Accept", responseTrailers[HeaderNames.Accept]);
1163Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1164Assert.Equal("0", decodedHeaders["content-length"]);
1215Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1216Assert.Equal("0", decodedHeaders["content-length"]);
1219Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1310Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1362Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1363Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]);
1414Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1456Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1457Assert.Equal("0", decodedHeaders["content-length"]);
1510Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1516Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1565Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1571Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1739Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1745Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1803Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1809Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
2339Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]);
2340Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2397Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]);
2398Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2521Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2522Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2562Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2563Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2594Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2595Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2634Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2635Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2689Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2690Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2733Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2734Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2908Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
2912Assert.Equal(i + "-" + headerText, responseHeaders["Header" + i]);
2948Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
2953Assert.Equal(i + "-" + headerText, responseTrailers["Header" + i]);
2976Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
Interop.FunctionalTests (5)
IOperationGenerator (3)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.Analyzers.Test (6)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.Test (89)
GoogleTests.cs (33)
61Assert.Equal("code", queryParams["response_type"]);
62Assert.Equal("Test Id", queryParams["client_id"]);
67Assert.Equal("S256", queryParams["code_challenge_method"]);
191Assert.Equal("openid https://www.googleapis.com/auth/plus.login", query["scope"]);
192Assert.Equal("offline", query["access_type"]);
193Assert.Equal("force", query["approval_prompt"]);
194Assert.Equal("consent", query["prompt"]);
195Assert.Equal("false", query["include_granted_scopes"]);
196Assert.Equal("test@example.com", query["login_hint"]);
199var stateProperties = stateFormat.Unprotect(query["state"]);
243Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]);
244Assert.Equal("offline", query["access_type"]);
245Assert.Equal("force", query["approval_prompt"]);
246Assert.Equal("consent", query["prompt"]);
247Assert.Equal("false", query["include_granted_scopes"]);
248Assert.Equal("test@example.com", query["login_hint"]);
251var stateProperties = stateFormat.Unprotect(query["state"]);
299Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]);
300Assert.Equal("offline", query["access_type"]);
301Assert.Equal("force", query["approval_prompt"]);
302Assert.Equal("consent", query["prompt"]);
303Assert.Equal("false", query["include_granted_scopes"]);
304Assert.Equal("test@example.com", query["login_hint"]);
307var stateProperties = stateFormat.Unprotect(query["state"]);
1035Assert.Equal("Test Client Id", entries["client_id"]);
1036Assert.Equal("https://example.com/signin-google", entries["redirect_uri"]);
1037Assert.Equal("Test Client Secret", entries["client_secret"]);
1038Assert.Equal("TestCode", entries["code"]);
1039Assert.Equal("authorization_code", entries["grant_type"]);
1040Assert.False(string.IsNullOrEmpty(entries["code_verifier"]));
1072Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"]));
1073Assert.Equal("S256", queryParams["code_challenge_method"]);
1079"https://example.com/signin-google?code=TestCode&state=" + queryParams["state"],
MicrosoftAccountTests.cs (15)
271Assert.Equal("https://graph.microsoft.com/user.read", query["scope"]);
272Assert.Equal("consumers", query["domain_hint"]);
273Assert.Equal("username", query["login_hint"]);
274Assert.Equal("select_account", query["prompt"]);
275Assert.Equal("query", query["response_mode"]);
278var stateProperties = stateFormat.Unprotect(query["state"]);
302Assert.Equal("Test Client Id", entries["client_id"]);
303Assert.Equal("https://example.com/signin-microsoft", entries["redirect_uri"]);
304Assert.Equal("Test Client Secret", entries["client_secret"]);
305Assert.Equal("TestCode", entries["code"]);
306Assert.Equal("authorization_code", entries["grant_type"]);
307Assert.False(string.IsNullOrEmpty(entries["code_verifier"]));
339Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"]));
340Assert.Equal("S256", queryParams["code_challenge_method"]);
346"https://example.com/signin-microsoft?code=TestCode&state=" + queryParams["state"],
WsFederation\WsFederationTest.cs (16)
79Assert.Equal("http://Automation1", queryItems["wtrealm"]);
80Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
81Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]);
82Assert.Equal("wsignin1.0", queryItems["wa"]);
95Assert.Equal("http://Automation1", queryItems["wtrealm"]);
96Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
97Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]);
98Assert.Equal("wsignin1.0", queryItems["wa"]);
111Assert.Equal("http://Automation1", queryItems["wtrealm"]);
112Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
113Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]);
114Assert.Equal("wsignin1.0", queryItems["wa"]);
126var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
128request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]);
177var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
179request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
WsFederation\WsFederationTest_Handler.cs (16)
77Assert.Equal("http://Automation1", queryItems["wtrealm"]);
78Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
79Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]);
80Assert.Equal("wsignin1.0", queryItems["wa"]);
93Assert.Equal("http://Automation1", queryItems["wtrealm"]);
94Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
95Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]);
96Assert.Equal("wsignin1.0", queryItems["wa"]);
109Assert.Equal("http://Automation1", queryItems["wtrealm"]);
110Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData");
111Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]);
112Assert.Equal("wsignin1.0", queryItems["wa"]);
124var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
126request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]);
175var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]);
177request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Endpoints (24)
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)]));
57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)]));
58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)]));
59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)]));
60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)]));
61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)]));
62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)]));
63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)]));
64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)]));
65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)]));
66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)]));
67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)]));
68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)]));
69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)]));
70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)]));
71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)]));
72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)]));
73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)]));
74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)]));
75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)]));
76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)]));
77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (15)
Hosting\WebAssemblyHostConfigurationTest.cs (15)
100Assert.Equal("2008", section["year"]);
101Assert.Equal("4", section["count"]);
102Assert.Equal("michelin", section["brand"]);
103Assert.Equal("rally", section["brand:type"]);
163Assert.Equal("NoKeyValue1", dict[""]);
164Assert.Equal("ValueInMem1", dict["KeyInMem1"]);
165Assert.Equal("ValueDeep1", dict["KeyInMem1:Deep1"]);
169Assert.Equal("NoKeyValue2", dict2[""]);
170Assert.Equal("ValueInMem2", dict2["KeyInMem2"]);
171Assert.Equal("ValueDeep2", dict2["KeyInMem2:Deep2"]);
175Assert.Equal("NoKeyValue3", dict3[""]);
176Assert.Equal("ValueInMem3", dict3["KeyInMem3"]);
177Assert.Equal("ValueInMem4", dict3["KeyInMem4"]);
178Assert.Equal("ValueDeep3", dict3["KeyInMem3:Deep3"]);
179Assert.Equal("ValueDeep4", dict3["KeyInMem3:Deep4"]);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (6)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Grpc.Swagger.Tests (46)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Extensions (22)
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)]));
57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)]));
58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)]));
59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)]));
60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)]));
61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)]));
62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)]));
63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)]));
64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)]));
65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)]));
66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)]));
67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)]));
68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)]));
69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)]));
70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)]));
71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)]));
72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)]));
73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)]));
74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)]));
75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)]));
76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)]));
77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Http.Extensions.Tests (6)
Microsoft.AspNetCore.Http.Microbenchmarks (9)
Microsoft.AspNetCore.Identity.FunctionalTests (10)
Microsoft.AspNetCore.Identity.InMemory.Test (4)
Microsoft.AspNetCore.JsonPatch.Tests (9)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Core.Test (16)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (17)
Microsoft.AspNetCore.Mvc.IntegrationTests (22)
BodyValidationIntegrationTests.cs (11)
133Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["CompanyName"]);
134Assert.Equal(priceRange, modelStateErrors["Price"]);
135Assert.Equal(categoryRequired, modelStateErrors["Category"]);
136Assert.Equal(contactUsRequired, modelStateErrors["Contact"]);
137Assert.Equal(detail2Required, modelStateErrors["ProductDetails.Detail2"]);
138Assert.Equal(detail3Required, modelStateErrors["ProductDetails.Detail3"]);
178Assert.Equal(productDetailsRequired, modelStateErrors["ProductDetails"]);
218Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]);
298Assert.Equal(priceRange, modelStateErrors["Price"]);
299Assert.Equal(contactLength, modelStateErrors["Contact"]);
339Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]);
TryValidateModelIntegrationTest.cs (11)
42Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors["software"]);
122Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[0].CompanyName"]);
123Assert.Equal(priceRange, modelStateErrors["[0].Price"]);
124Assert.Equal(categoryRequired, modelStateErrors["[0].Category"]);
125AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[0].Contact"]);
126Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[1].CompanyName"]);
127Assert.Equal(priceRange, modelStateErrors["[1].Price"]);
128Assert.Equal(categoryRequired, modelStateErrors["[1].Category"]);
129AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[1].Contact"]);
149AssertErrorEquals("Property", modelStateErrors["Message"]);
150AssertErrorEquals("Model", modelStateErrors[""]);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (150)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Rewrite.Tests (1)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (55)
SniOptionsSelectorTests.cs (17)
73Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]);
76Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]);
79Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]);
85Assert.Equal("WildcardOnly", pathDictionary[noSubdomainOptions.ServerCertificate]);
88Assert.Equal("WildcardOnly", pathDictionary[anotherTldOptions.ServerCertificate]);
130Assert.Equal("Long", pathDictionary[baSubdomainOptions.ServerCertificate]);
134Assert.Equal("Short", pathDictionary[aSubdomainOptions.ServerCertificate]);
176Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]);
179Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]);
182Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]);
225Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]);
228Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]);
231Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]);
240var fullChain = fullChainDictionary[aSubdomainOptions.ServerCertificate];
288Assert.Equal("a", pathDictionary[aSubdomainOptions.ServerCertificate]);
291Assert.Equal("b", pathDictionary[bSubdomainOptions.ServerCertificate]);
381Assert.Equal("WildcardOnly", pathDictionary[options.ServerCertificate]);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (22)
123Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
125Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key);
126Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value);
137Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]);
139Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key);
140Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value);
151Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]);
170Assert.Equal(_literalHeaderNameString, _handler.DecodedHeaders[_headerNameString]); // but we got the header anyway
515Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
531Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
547Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
563Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
579Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
595Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
631Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
646Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
696Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
729Assert.Equal(string8191, _handler.DecodedHeaders[string8191]);
730Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
754Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
779Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
943Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key);
80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value);
92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]);
94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key);
95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value);
193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
Microsoft.AspNetCore.Shared.Tests (40)
runtime\Http2\HPackDecoderTest.cs (22)
123Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
125Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key);
126Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value);
137Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]);
139Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key);
140Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value);
151Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]);
170Assert.Equal(_literalHeaderNameString, _handler.DecodedHeaders[_headerNameString]); // but we got the header anyway
515Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
531Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
547Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
563Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
579Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
595Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
631Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
646Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
696Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
729Assert.Equal(string8191, _handler.DecodedHeaders[string8191]);
730Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
754Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
779Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
943Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key);
80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value);
92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]);
94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key);
95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value);
193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]);
357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (79)
HubConnectionTests.Tracing.cs (33)
32var protocol = HubProtocols[protocolName];
161Assert.Equal("value-1", baggage["baggage-1"]);
173Assert.Equal("value-2", baggage["baggage-2"]);
194Assert.Equal("value-1", baggage["baggage-1"]);
197Assert.Equal("signalr", tags["rpc.system"]);
198Assert.Equal("HelloWorld", tags["rpc.method"]);
199Assert.Equal(clientHubName, tags["rpc.service"]);
200Assert.Equal("127.0.0.1", tags["server.address"]);
201Assert.Equal(port, (int)tags["server.port"]);
211Assert.Equal("value-2", baggage["baggage-2"]);
214Assert.Equal("signalr", tags["rpc.system"]);
215Assert.Equal("HelloWorld", tags["rpc.method"]);
216Assert.Equal(clientHubName, tags["rpc.service"]);
217Assert.Equal("127.0.0.1", tags["server.address"]);
218Assert.Equal(port, (int)tags["server.port"]);
226var protocol = HubProtocols[protocolName];
334Assert.Equal("value-1", baggage["baggage-1"]);
355Assert.Equal("value-1", baggage["baggage-1"]);
358Assert.Equal("signalr", tags["rpc.system"]);
359Assert.Equal("Stream", tags["rpc.method"]);
360Assert.Equal(clientHubName, tags["rpc.service"]);
361Assert.Equal("127.0.0.1", tags["server.address"]);
362Assert.Equal(port, (int)tags["server.port"]);
371var protocol = HubProtocols[protocolName];
450Assert.Equal(typeof(OperationCanceledException).FullName, tags["error.type"]);
459Assert.Equal(typeof(OperationCanceledException).FullName, tags["error.type"]);
474var protocol = HubProtocols[protocolName];
547Assert.Equal(typeof(HubException).FullName, tags["error.type"]);
556Assert.Equal(typeof(HubException).FullName, tags["error.type"]);
570var protocol = HubProtocols[protocolName];
642Assert.Equal(typeof(HubException).FullName, tags["error.type"]);
652Assert.Equal(typeof(HubException).FullName, tags["error.type"]);
660var protocol = HubProtocols[protocolName];
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Tests (95)
FormPipeReaderTests.cs (45)
21Assert.Equal("bar", formCollection[""].ToString());
31Assert.Equal("bar", formCollection[""].ToString());
32Assert.Equal("2", formCollection["baz"].ToString());
42Assert.Equal("", formCollection["foo"].ToString());
52Assert.Equal("", formCollection["foo"].ToString());
62Assert.Equal("", formCollection["foo"].ToString());
63Assert.Equal("2", formCollection["baz"].ToString());
73Assert.Equal("", formCollection["foo"].ToString());
74Assert.Equal("2", formCollection["baz"].ToString());
96Assert.Equal("1", formCollection["foo"].ToString());
97Assert.Equal("2", formCollection["bar"].ToString());
98Assert.Equal("3", formCollection["baz"].ToString());
139Assert.Equal("1", formCollection["fooooooooo"].ToString());
140Assert.Equal("2", formCollection["bar"].ToString());
141Assert.Equal("3,4", formCollection["baz"].ToString());
167Assert.Equal("1", formCollection["foo"].ToString());
168Assert.Equal("1234567890", formCollection["bar"].ToString());
169Assert.Equal("3,4", formCollection["baz"].ToString());
251Assert.Equal(expectedValue, form[key]);
268Assert.Equal("bar", dict["foo"]);
269Assert.Equal("boo", dict["baz"]);
286Assert.Equal("bar", dict["foo"]);
287Assert.Equal("boo", dict["baz"]);
288Assert.Equal("", dict["t"]);
308Assert.Equal("bar", dict["foo"]);
309Assert.Equal("boo", dict["baz"]);
310Assert.Equal("", dict["t"]);
327Assert.Equal("bar", dict["foo"]);
328Assert.Equal("boo", dict["baz"]);
329Assert.Equal("", dict["t"]);
349Assert.Equal("bar", dict["foo"]);
350Assert.Equal("boo", dict["baz"]);
351Assert.Equal("", dict["t"]);
368Assert.Equal("bar", dict["foo"]);
369Assert.Equal("bo" + new string('a', 128), dict["baz"]);
386Assert.Equal(" ", dict[" "]);
387Assert.Equal(" ", dict[" "]);
388Assert.Equal("", dict[" "]);
405Assert.Equal(" ", dict[" "]);
406Assert.Equal(" +", dict[" +"]);
407Assert.Equal("", dict[" "]);
424Assert.Equal("\"%-.<>\\^_`{|}~", dict["\"%-.<>\\^_`{|}~"]);
425Assert.Equal("wow", dict["\"%-.<>\\^_`{|}"]);
441Assert.Equal("bar", dict["foo"]);
442Assert.Equal("boo", dict["baz"]);
FormReaderTests.cs (16)
20Assert.Equal("bar", formCollection[""].ToString());
32Assert.Equal("bar", formCollection[""].ToString());
33Assert.Equal("2", formCollection["baz"].ToString());
45Assert.Equal("", formCollection["foo"].ToString());
57Assert.Equal("", formCollection["foo"].ToString());
58Assert.Equal("2", formCollection["baz"].ToString());
70Assert.Equal("1", formCollection["foo"].ToString());
71Assert.Equal("2", formCollection["bar"].ToString());
72Assert.Equal("3", formCollection["baz"].ToString());
109Assert.Equal("1", formCollection["foo"].ToString());
110Assert.Equal("2", formCollection["bar"].ToString());
111Assert.Equal("3,4", formCollection["baz"].ToString());
136Assert.Equal("1", formCollection["foo"].ToString());
137Assert.Equal("1234567890", formCollection["bar"].ToString());
138Assert.Equal("3,4", formCollection["baz"].ToString());
202Assert.Equal(expectedValue, form[key]);
MultipartReaderTests.cs (20)
116Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
159Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
176Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
193Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
201Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]);
202Assert.Equal("text/plain", section.Headers["Content-Type"][0]);
219Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
227Assert.Equal("form-data; name=\"file1\"; filename=\"a色.txt\"", section.Headers["Content-Disposition"][0]);
228Assert.Equal("text/plain", section.Headers["Content-Type"][0]);
245Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
253Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]);
254Assert.Equal("text/plain", section.Headers["Content-Type"][0]);
262Assert.Equal("form-data; name=\"file2\"; filename=\"a.html\"", section.Headers["Content-Disposition"][0]);
263Assert.Equal("text/html", section.Headers["Content-Type"][0]);
292Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
300Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]);
301Assert.Equal("text/plain", section.Headers["Content-Type"][0]);
339Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD!.txt\"", section.Headers["Content-Disposition"][0]);
374Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD\uFFFDU.txt\"", section.Headers["Content-Disposition"][0]);
403Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]);
QueryHelpersTests.cs (14)
15Assert.Equal("value1", collection["key1"].FirstOrDefault());
16Assert.Equal("value2", collection["key2"].FirstOrDefault());
24Assert.Equal("value1", collection["key1"].FirstOrDefault());
25Assert.Equal("value2", collection["key2"].FirstOrDefault());
33Assert.Equal(new[] { "valueA", "valueC" }, collection["key1"].ToArray());
34Assert.Equal("valueB", collection["key2"].FirstOrDefault());
42Assert.Equal(string.Empty, collection["key1"].FirstOrDefault());
43Assert.Equal(string.Empty, collection["key2"].FirstOrDefault());
51Assert.Equal(new[] { "value1", "" }, collection[""].ToArray());
59Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault());
67Assert.Equal("fields [todoItems]", collection[""].FirstOrDefault());
75Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault());
83Assert.Equal("[ 1 ]", collection["fields [todoItems]"].FirstOrDefault());
91Assert.Equal(new[] { "[ 1 ]", "[ 2 ]" }, collection["fields [todoItems]"].ToArray());
Microsoft.Build (71)
Microsoft.Build.BuildCheck.UnitTests (3)
Microsoft.Build.Engine.OM.UnitTests (5)
Microsoft.Build.Engine.UnitTests (97)
BackEnd\BinaryTranslator_Tests.cs (16)
444Assert.Equal(value["foo"], deserializedValue["foo"]);
445Assert.Equal(value["alpha"], deserializedValue["alpha"]);
446Assert.Equal(value["FOO"], deserializedValue["FOO"]);
482Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"]));
483Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
484Assert.Equal(0, BaseClass.Comparer.Compare(value["FOO"], deserializedValue["FOO"]));
521Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"]));
522Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
Microsoft.Build.Framework (2)
Microsoft.Build.Framework.UnitTests (4)
Microsoft.Build.Tasks.Core (12)
Microsoft.Build.Tasks.UnitTests (45)
GetInstalledSDKLocations_Tests.cs (18)
296Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=1.0"]);
297Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=2.0"]);
298Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=3.0"]);
299Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=4.0"]);
300Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=5.0"]);
301Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=6.0"]);
347extensionSDKs["MyAssembly, Version=1.0"]);
353extensionSDKs["MyAssembly, Version=2.0"]);
359extensionSDKs["MyAssembly, Version=3.0"]);
366extensionSDKs["MyAssembly, Version=4.0"]);
372extensionSDKs["MyAssembly, Version=5.0"]);
378extensionSDKs["MyAssembly, Version=6.0"]);
421extensionSDKs["MyAssembly, Version=1.0"]);
427extensionSDKs["MyAssembly, Version=2.0"]);
433extensionSDKs["MyAssembly, Version=3.0"]);
440extensionSDKs["MyAssembly, Version=4.0"]);
446extensionSDKs["MyAssembly, Version=5.0"]);
452extensionSDKs["MyAssembly, Version=6.0"]);
PropertyParser_Tests.cs (16)
37Assert.Equal("Debug", propertiesTable["Configuration"]);
56Assert.Equal("Debug", propertiesTable["Configuration"]);
57Assert.Equal("AnyCPU", propertiesTable["Platform"]);
58Assert.Equal("Lab22Dev", propertiesTable["VBL"]);
76Assert.Equal("Debug", propertiesTable["Configuration"]);
77Assert.Equal("AnyCPU", propertiesTable["Platform"]);
95Assert.Equal("", propertiesTable["Configuration"]);
96Assert.Equal("", propertiesTable["Platform"]);
132Assert.Equal("Clean; Build", propertiesTable["DependsOn"]);
149Assert.Equal("CleanBuild", propertiesTable["Depends On"]);
165Assert.Equal("Debug", propertiesTable["Configuration"]);
166Assert.Equal("Any CPU", propertiesTable["Platform"]);
182Assert.Equal("1234;5678;9999", propertiesTable["WarningsAsErrors"]);
183Assert.Equal("Debug", propertiesTable["Configuration"]);
199Assert.Equal(@"c:\Rajeev%3bs Stuff\binaries", propertiesTable["OutDir"]);
200Assert.Equal("Debug", propertiesTable["Configuration"]);
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (3)
Microsoft.Build.Utilities.UnitTests (52)
ToolLocationHelper_Tests.cs (52)
3793targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2);
3794targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0");
3795targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3796targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "v1.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3797targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=2.0");
3798targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=2.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0", "ExtensionSDKs", "MyAssembly", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3801targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2);
3802targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3803targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=3.0");
3804targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=3.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3805targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=4.0");
3806targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=4.0"].ShouldBe(Path.Combine(_fakeStructureRoot2, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "4.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3813targetPlatforms[key].Path.ShouldBeNull();
3814targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1);
3815targetPlatforms[key].ExtensionSDKs.ShouldContainKey("AnotherAssembly, Version=1.0");
3816targetPlatforms[key].ExtensionSDKs["AnotherAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "4.0", "ExtensionSDKs", "AnotherAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3819targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1);
3820targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3821targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0");
3822targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3825targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1);
3826targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3827targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0");
3828targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3831targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3832targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0);
3835targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3836targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0);
3837targetPlatforms[key].Platforms.Count.ShouldBe(3);
3838targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue();
3839targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3840targetPlatforms[key].ContainsPlatform("PlatformAssembly", "1.2.3.0").ShouldBeTrue();
3841targetPlatforms[key].ContainsPlatform("Sparkle", "3.3.3.3").ShouldBeTrue();
3844targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3845targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0);
3846targetPlatforms[key].Platforms.Count.ShouldBe(1);
3847targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue();
3848targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4064targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4067targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4070targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4073targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4076targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
Microsoft.CodeAnalysis (31)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.CSharp (40)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.Features (75)
ExtractMethod\AbstractSyntaxTriviaService.cs (25)
36Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span));
45var rootWithAnnotation = ReplaceTokens(root, map.Keys, (o, n) => map[o]);
78token = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => tokens[TriviaLocation.BeforeBeginningOfSpan]);
79map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeBeginningOfSpan]);
81token = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => tokens[TriviaLocation.AfterBeginningOfSpan]);
82map[tokens[TriviaLocation.AfterBeginningOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterBeginningOfSpan]);
84token = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => tokens[TriviaLocation.BeforeEndOfSpan]);
85map[tokens[TriviaLocation.BeforeEndOfSpan]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.BeforeEndOfSpan]);
87token = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => tokens[TriviaLocation.AfterEndOfSpan]);
88map[tokens[TriviaLocation.AfterEndOfSpan]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.AfterEndOfSpan]);
95var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start);
96var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.BeforeEndOfSpan], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End);
115tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true);
117tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (34)
52return root.ReplaceTokens(map.Keys, (o, n) => map[o]);
110location => resolver(root, location, _annotations[location]));
113tokens[TriviaLocation.AfterBeginningOfSpan].RawKind == 0 /* don't care */ ||
114tokens[TriviaLocation.BeforeEndOfSpan].RawKind == 0 /* don't care */ ||
115tokens[TriviaLocation.AfterBeginningOfSpan] == tokens[TriviaLocation.BeforeEndOfSpan] ||
116tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true) == tokens[TriviaLocation.BeforeEndOfSpan] ||
117tokens[TriviaLocation.AfterBeginningOfSpan].Span.End <= tokens[TriviaLocation.BeforeEndOfSpan].SpanStart);
136tokenPairs[location],
137resolver(location, tokenPairs[location], tokenToLeadingTrailingTriviaMap)));
162var key = tokenPairs[location];
168yield return (key, triviaPairs[location]);
179tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeBeginningOfSpan], _ => default);
180map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = new LeadingTrailingTriviaPair
183TrailingTrivia = _triviaList[TriviaLocation.BeforeBeginningOfSpan]
186tuple = map.GetOrAdd(tokens[TriviaLocation.AfterBeginningOfSpan], _ => default);
187map[tokens[TriviaLocation.AfterBeginningOfSpan]] = new LeadingTrailingTriviaPair
189LeadingTrivia = _triviaList[TriviaLocation.AfterBeginningOfSpan],
193tuple = map.GetOrAdd(tokens[TriviaLocation.BeforeEndOfSpan], _ => default);
194map[tokens[TriviaLocation.BeforeEndOfSpan]] = new LeadingTrailingTriviaPair
197TrailingTrivia = _triviaList[TriviaLocation.BeforeEndOfSpan]
200tuple = map.GetOrAdd(tokens[TriviaLocation.AfterEndOfSpan], _ => default);
201map[tokens[TriviaLocation.AfterEndOfSpan]] = new LeadingTrailingTriviaPair
203LeadingTrivia = _triviaList[TriviaLocation.AfterEndOfSpan],
217PreviousToken = tokens[TriviaLocation.BeforeBeginningOfSpan],
218NextToken = tokens[TriviaLocation.BeforeBeginningOfSpan].GetNextToken(includeZeroWidth: true)
223PreviousToken = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true),
224NextToken = tokens[TriviaLocation.AfterBeginningOfSpan]
229PreviousToken = tokens[TriviaLocation.BeforeEndOfSpan],
230NextToken = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true)
235PreviousToken = tokens[TriviaLocation.AfterEndOfSpan].GetPreviousToken(includeZeroWidth: true),
236NextToken = tokens[TriviaLocation.AfterEndOfSpan]
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (21)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.Data.Analysis (3)
Microsoft.Data.Analysis.Tests (3)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Packaging (23)
Microsoft.DotNet.Build.Tasks.Workloads (22)
Microsoft.DotNet.CodeAnalysis (4)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SignCheckLibrary (8)
Microsoft.DotNet.SignTool (13)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (11)
Microsoft.DotNet.VersionTools (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Gen.Logging (3)
Microsoft.Gen.Logging.Generated.Tests (18)
LogPropertiesTests.cs (18)
46Assert.Equal("[\"1\",\"2\",\"3\"]", ss["myProps.P5"]);
47Assert.Equal("[\"4\",\"5\",\"6\"]", ss["myProps.P6"]);
48Assert.Equal("{\"Seven\"=\"7\",\"Eight\"=\"8\",\"Nine\"=\"9\"}", ss["myProps.P7"]);
178Assert.Null(ss["p.P0"]);
179Assert.Null(ss["p.P1"]);
180Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]);
181Assert.Null(ss["p.P3"]);
182Assert.Equal("I refuse to be formatted", ss["p.P4"]);
183Assert.Null(ss["p.P5"]);
184Assert.Null(ss["p.P6"]);
185Assert.Equal("-", ss["p.P7"]);
186Assert.Null(ss["p.P8"]);
187Assert.Equal("------------------------", ss["p.P9"]);
188Assert.Equal("null", ss["p.P10"]);
196Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), ss["p.P2"]);
197Assert.Equal("I refuse to be formatted", ss["p.P4"]);
198Assert.Equal("-", ss["p.P7"]);
199Assert.Equal("------------------------", ss["p.P9"]);
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui (1)
Microsoft.Maui.Controls (50)
Microsoft.Maui.Controls.Build.Tasks (72)
CompiledConverters\RDSourceTypeConverter.cs (2)
115 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
132 foreach (var instruction in context.Variables[rdNode].LoadAs(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
SetNamescopesAndRegisterNamesVisitor.cs (15)
25 var parentVar = Context.Variables[node];
32 Context.Scopes[node] = Context.Scopes[parentNode];
35 RegisterName((string)node.Value, Context.Scopes[node].Item1, Context.Scopes[node].Item2, Context.Variables[(IElementNode)parentNode], node);
41 Context.Scopes[node] = Context.Scopes[parentNode];
57 namescopeVarDef = Context.Scopes[parentNode].Item1;
58 namesInNamescope = Context.Scopes[parentNode].Item2;
60 if (setNameScope && Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
63 else if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element"))))
70 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
81 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
88 Context.Scopes[node] = Context.Scopes[parentNode];
108 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
111 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, namescoperef), module));
144 Context.IL.Append(Context.Variables[node].LoadAs(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
SetPropertiesVisitor.cs (31)
105 var vardef = Context.Variables[node];
269 var typeNode = node.Properties[new XmlName("", "Type")];
275 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module))
330 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, markupExtension, module))
340 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IMarkupExtension"))))
342 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
350 var compiledValueProviderName = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "ProvideCompiledAttribute"))?.ConstructorArguments?[0].Value as string;
370 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module))
383 else if (context.Variables[node].VariableType.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IValueProvider"))))
385 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
391 var valueProviderType = context.Variables[node].VariableType;
411 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module))
1293 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module))
1336 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module))
1418 if (context.Variables[elementNode].VariableType.FullName == "System.Object")
1421 yield return Create(Ldloc, context.Variables[elementNode]);
1426 yield return Create(Ldloc, context.Variables[elementNode]);
1431 yield return Create(Ldloc, context.Variables[elementNode]);
1437 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, bpTypeRef, module))
1443 if (context.Variables[elementNode].VariableType.FullName == "System.Object")
1497 var vardef = context.Variables[elementNode];
1577 foreach (var instruction in context.Variables[elementNode].LoadAs(context.Cache, propertyType, module))
1653 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null);
1662 var nodeTypeRef = context.Variables[node].VariableType;
1676 var vardef = context.Variables[elementNode];
1707 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null);
1715 foreach (var instruction in context.Variables[node].LoadAs(context.Cache, module.TypeSystem.Object, module))
1726 var nodeTypeRef = context.Variables[node].VariableType;
1727 yield return Create(Ldloc, context.Variables[node]);
1753 var parentVar = parentContext.Variables[parentNode];
1842 templateIl.Append(templateContext.Variables[node].LoadAs(parentContext.Cache, module.TypeSystem.Object, module));
Microsoft.Maui.Controls.Compatibility (5)
Microsoft.Maui.Controls.Xaml (29)
Microsoft.Maui.Essentials (15)
Microsoft.Maui.Resizetizer (7)
Microsoft.ML.AutoML (28)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (3)
Microsoft.ML.Core.Tests (19)
Microsoft.ML.Data (52)
Microsoft.ML.DataView (1)
Microsoft.ML.EntryPoints (4)
Microsoft.ML.Fairlearn (12)
Metrics\FairlearnMetricCatalog.cs (12)
101result["AUC"] = DataFrameColumn.Create("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name?
102result["Accuracy"] = DataFrameColumn.Create("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy));
103result["PosPrec"] = DataFrameColumn.Create("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision));
104result["PosRecall"] = DataFrameColumn.Create("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall));
105result["NegPrec"] = DataFrameColumn.Create("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision));
106result["NegRecall"] = DataFrameColumn.Create("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall));
107result["F1Score"] = DataFrameColumn.Create("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score));
108result["AreaUnderPrecisionRecallCurve"] = DataFrameColumn.Create("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve));
235result["RSquared"] = DataFrameColumn.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared));
236result["RMS"] = DataFrameColumn.Create("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError));
237result["MSE"] = DataFrameColumn.Create("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError));
238result["MAE"] = DataFrameColumn.Create("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Microsoft.ML.Fairlearn.Tests (5)
MetricTest.cs (5)
47Assert.Equal(125.5, metricOverall["MSE"], 0.1);
48Assert.Equal(11.202678, metricOverall["RMS"], 0.0001);
50Assert.Equal(14.81138, diff["RMS"], 0.0001);
51Assert.Equal(2037.5, diff["RSquared"], 0.1);
76Assert.Equal(0.7, Convert.ToSingle(metricOverall["Accuracy"]), 0.1);
Microsoft.ML.FastTree (10)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.LightGbm (27)
WrappedLightGbmBooster.cs (12)
242int numberOfLeaves = int.Parse(kvPairs["num_leaves"], CultureInfo.InvariantCulture);
243int numCat = int.Parse(kvPairs["num_cat"], CultureInfo.InvariantCulture);
246var leftChild = Str2IntArray(kvPairs["left_child"], ' ');
247var rightChild = Str2IntArray(kvPairs["right_child"], ' ');
248var splitFeature = Str2IntArray(kvPairs["split_feature"], ' ');
249var threshold = Str2DoubleArray(kvPairs["threshold"], ' ');
250var splitGain = Str2DoubleArray(kvPairs["split_gain"], ' ');
251var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' ');
252var decisionType = Str2UIntArray(kvPairs["decision_type"], ' ');
265var catBoundaries = Str2IntArray(kvPairs["cat_boundaries"], ' ');
266var catThreshold = Str2UIntArray(kvPairs["cat_threshold"], ' ');
299var leafOutput = Str2DoubleArray(kvPairs["leaf_value"], ' ');
Microsoft.ML.OnnxConverter (4)
Microsoft.ML.OnnxTransformer (5)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TimeSeries (30)
RootCauseAnalyzer.cs (27)
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
162children = GetTopAnomaly(anomalyTree.ChildrenNodes[dimension.DimensionKey], anomalyTree.ParentNode, pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0 ? pointTree.ChildrenNodes[dimension.DimensionKey] : pointTree.Leaves, dimension.DimensionKey, !(pointTree.ChildrenNodes[dimension.DimensionKey].Count > 0));
182new RootCauseItem(UpdateDimensionValue(anomalyDimension, dimension.DimensionKey, anomaly.Dimension[dimension.DimensionKey]), new List<string>() { dimension.DimensionKey })));
303UpdateDistribution(dimension.PointDis, pointChildren[dimKey], dimKey);
307UpdateDistribution(dimension.AnomalyDis, anomalyChildren[dimKey], dimKey);
405return dimPointMapping[dimension];
449if (IsAggregationDimension(point.Dimension[dim], aggSymbol))
469tree.ChildrenNodes[nextDim].Add(point);
498bool isRatioNan = Double.IsNaN(valueRatioMap[best]);
501if (best.AnomalyDis.Count != 1 && !isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0))
515if (!isRatioNan && (isLeavesLevel ? valueRatioMap[best].CompareTo(dimension.Value) <= 0 : valueRatioMap[best].CompareTo(dimension.Value) >= 0))
537if (valueRatioMap[best].CompareTo(dimension.Value) == 0)
676double dimEntropy = GetEntropy(pointDis[key], anomalyDis[key]);
677entropy += dimEntropy * pointDis[key] / total;
690intrinsicValue -= Log2((double)pointDis[key] / total) * (double)pointDis[key] / total;
710string dimVal = Convert.ToString(point.Dimension[dimKey]);
715distribution[dimVal] = distribution[dimVal] + 1;
726if (!bigDictionary.ContainsKey(item.Key) || !object.Equals(bigDictionary[item.Key], smallDictionary[item.Key]))
830if (!object.Equals(pair.Value, y[pair.Key]))
Microsoft.ML.TimeSeries.Tests (5)
Microsoft.ML.Tokenizers (9)
Microsoft.ML.Tokenizers.Tests (5)
Microsoft.ML.TorchSharp (16)
Microsoft.ML.Transforms (8)
Microsoft.ML.Vision (7)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (12)
MSBuild (2)
MSBuildTaskHost (3)
PresentationBuildTasks (8)
PresentationCore (49)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1701_strokeLookupTable[s].CompressionData = xpData;
1711_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData;
1715_strokeLookupTable[s].StorePressure = shouldStorePressure;
1887if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex)
1891cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex);
1892currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex;
1901if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex)
1905cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex);
1906currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex;
1915if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex)
1919cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex);
1920uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex;
1929if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex)
1933cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex);
1934currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex;
1950cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]);
2557StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock);
2566_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex;
2573_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1;
2594_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp;
2602_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1);
2619_strokeLookupTable[stroke].TransformTableIndex = (uint)i;
2627_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1);
2641_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i;
2649_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
PresentationFramework (72)
PresentationUI (2)
RazorBuildWebSite (1)
ReachFramework (26)
Sockets.FunctionalTests (5)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (5)
746}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
778}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
816}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
893}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
1069}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
System.ComponentModel.Composition (2)
System.ComponentModel.TypeConverter (6)
System.Composition.Hosting (1)
System.Configuration.ConfigurationManager (1)
System.Data.Common (9)
System.Data.Odbc (8)
System.Diagnostics.Process (2)
System.Drawing.Common.Tests (5)
System.Formats.Nrbf (3)
System.IO.Packaging (6)
System.Linq.Expressions (6)
System.Net.Http (5)
System.Net.HttpListener (2)
System.Private.CoreLib (8)
System.Private.Windows.Core (4)
System.Private.Xml (51)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (2)
System.Reflection.Metadata (2)
System.Resources.Extensions (2)
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.NetFramingBase (3)
System.ServiceModel.Syndication (5)
System.Text.Json (1)
System.Text.RegularExpressions (6)
System.Text.RegularExpressions.Generator (1)
System.Windows.Controls.Ribbon (11)
System.Windows.Forms (26)
System.Windows.Forms.Design (5)
System.Windows.Forms.Design.Tests (19)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (3)
System.Xaml (10)
TaskUsageLogger (1)
UnitTests.Common (2)
XmlFileLogger (2)
xunit.assert (1)
xunit.console (1)