Implemented interface members:
property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]
property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
1472 writes to Item
dotnet-openapi (4)
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 (39)
ILLink.RoslynAnalyzer (8)
ILLink.Tasks (5)
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.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.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 (1)
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 (6)
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 (7)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
Microsoft.AspNetCore.OpenApi (11)
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 (177)
BackEnd\Components\BuildComponentFactoryCollection.cs (20)
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);
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 (67)
Microsoft.Build.Engine.OM.UnitTests (5)
Microsoft.Build.Engine.UnitTests (69)
Microsoft.Build.Framework (28)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.Core (56)
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (14)
Microsoft.Cci.Extensions (4)
Microsoft.CSharp (1)
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.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.HealthChecks (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (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.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (2)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
MonoAOTCompiler (2)
MonoTargetsTasks (2)
MSBuild (12)
MSBuildTaskHost (11)
PresentationBuildTasks (12)
PresentationCore (75)
PresentationFramework (57)
PresentationUI (1)
RazorBuildWebSite (1)
ReachFramework (37)
SocialWeather (2)
Swaggatherer (1)
System.CodeDom (4)
System.Collections.Immutable (1)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (22)
System.ComponentModel.TypeConverter (15)
System.Console (2)
System.Data.Common (5)
System.Data.Odbc (5)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.Drawing.Primitives (1)
System.Formats.Tar (9)
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 (41)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1365args[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
System.Private.Xml (61)
System.Reflection.DispatchProxy (7)
System.Reflection.Metadata (1)
System.Resources.Extensions (2)
System.Runtime.Caching (2)
System.Runtime.Serialization.Formatters (1)
System.Security.Claims (1)
System.Security.Cryptography.Cose (1)
System.Text.Json (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (7)
System.Text.RegularExpressions.Generator (1)
System.Windows.Controls.Ribbon (12)
System.Windows.Input.Manipulations (1)
System.Xaml (17)
TaskUsageLogger (4)
WasmAppBuilder (18)
WindowsFormsIntegration (1)
XmlFileLogger (2)
xunit.assert (2)
xunit.console (1)
Xunit.NetCore.Extensions (4)
1819 references to Item
HtmlGenerationWebSite (1)
Identity.DefaultUI.WebSite (2)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IISExpress.FunctionalTests (3)
ILCompiler.DependencyAnalysisFramework (10)
DgmlWriter.cs (10)
127_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeA].ToString());
128_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeB].ToString());
136_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString());
137_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
164_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString());
165_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString());
171_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDependerOther].ToString());
172_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString());
179_xmlWrite.WriteAttributeString("Source", _nodeMappings[combinedNode].ToString());
180_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
illink (11)
ILLink.RoslynAnalyzer (1)
ILLink.Tasks (9)
InMemory.FunctionalTests (319)
Http2\Http2ConnectionTests.cs (26)
183var contentType1 = _receivedHeaders["Content-Type"];
200var contentType2 = _receivedHeaders["Content-Type"];
354Assert.Equal("true", _decodedHeaders["trailer-1"]);
382Assert.Equal("true", _decodedHeaders[$"trailer-{i + 1}"]);
2173Assert.Equal(header.Value, _receivedTrailers[header.Key]);
2319Assert.Equal("200", handler.Headers[":status"]);
2320Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]);
2321Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]);
2322Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]);
2336Assert.Equal("200", handler.Headers[":status"]);
2337Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]);
2338Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]);
2339Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]);
2941Assert.Equal("a=0; b=1; c=2", _receivedHeaders[HeaderNames.Cookie]);
4579Assert.Equal("1", _receivedTrailers["trailer-1"]);
4580Assert.Equal("2", _receivedTrailers["trailer-2"]);
4701Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4702Assert.Equal("0", _decodedHeaders["content-length"]);
4703Assert.Equal(_4kHeaderValue, _decodedHeaders["a"]);
4704Assert.Equal(_4kHeaderValue, _decodedHeaders["b"]);
4705Assert.Equal(_4kHeaderValue, _decodedHeaders["c"]);
4706Assert.Equal(_4kHeaderValue, _decodedHeaders["d"]);
4707Assert.Equal(_4kHeaderValue, _decodedHeaders["e"]);
4708Assert.Equal(_4kHeaderValue, _decodedHeaders["f"]);
4709Assert.Equal(_4kHeaderValue, _decodedHeaders["g"]);
4710Assert.Equal(_4kHeaderValue, _decodedHeaders["h"]);
Http2\Http2StreamTests.cs (185)
119Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
121Assert.Equal(method, _decodedHeaders["Method"]);
138Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
139Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
140Assert.Equal(method, _decodedHeaders["Method"]);
169Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
170Assert.Equal("HEAD", _decodedHeaders["Method"]);
221Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
272Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
296Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
297Assert.Equal("CONNECT", _decodedHeaders["Method"]);
325Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
326Assert.Equal("", _decodedHeaders["path"]);
327Assert.Equal("*", _decodedHeaders["rawtarget"]);
328Assert.Equal("0", _decodedHeaders["content-length"]);
356Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
357Assert.Equal("/", _decodedHeaders["path"]);
358Assert.Equal("/", _decodedHeaders["rawtarget"]);
359Assert.Equal("0", _decodedHeaders["content-length"]);
393Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
394Assert.Equal("/a/path", _decodedHeaders["path"]);
395Assert.Equal("?a&que%35ry", _decodedHeaders["query"]);
396Assert.Equal("/a/path?a&que%35ry", _decodedHeaders["rawtarget"]);
397Assert.Equal("0", _decodedHeaders["content-length"]);
438Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
439Assert.Equal("0", _decodedHeaders["content-length"]);
510Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
511Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
561Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
562Assert.Equal("0", _decodedHeaders["content-length"]);
590Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
591Assert.Equal("0", _decodedHeaders["content-length"]);
619Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
620Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
621Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]);
650Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
651Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
652Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]);
681Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
682Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
683Assert.Equal("def", _decodedHeaders[HeaderNames.Host]);
712Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
713Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
714Assert.Equal("def", _decodedHeaders[HeaderNames.Host]);
834Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]);
835Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
868Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]);
869Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
905Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
906Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
946Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
947Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
989Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
990Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1032Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1033Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1085Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1086Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1327Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1328Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1365Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1366Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1404Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1405Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1438Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
1439Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1473Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1508Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1509Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1548Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1631Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1671Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1707Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1708Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1749Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1785Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1786Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1819Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1856Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1857Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1894Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1895Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1941Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
1942Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1980Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
1981Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2028Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
2029Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2091Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]);
2092Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2142Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2143Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2181Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2222Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2223Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]);
2224Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]);
2272Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2273Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2280Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2305Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
2306Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2351Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2358Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2393Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2400Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2448Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2455Assert.Equal(largeHeader, _decodedHeaders["CustomName0"]);
2456Assert.Equal(largeHeader, _decodedHeaders["CustomName1"]);
2457Assert.Equal(largeHeader, _decodedHeaders["CustomName2"]);
2458Assert.Equal(largeHeader, _decodedHeaders["CustomName3"]);
2459Assert.Equal(largeHeader, _decodedHeaders["CustomName4"]);
2466Assert.Equal(largeHeader, _decodedHeaders["CustomName5"]);
2506Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2549Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2556Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]);
2557Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]);
2558Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]);
2590Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2690Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2696Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2742Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
2748Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
2780Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
2781Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2818Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3239Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3240Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3288Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3332Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3378Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3431Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3484Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3530Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3580Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3625Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3668Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3706Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3707Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3849Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3899Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3900Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
3945Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3946Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
3985Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
3986Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4049Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4050Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]);
4081Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4114Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4147Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
4202Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4203Assert.Equal("0", _decodedHeaders["content-length"]);
4262Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4263Assert.Equal("0", _decodedHeaders["content-length"]);
4270Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
4323Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]);
4324Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4388Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4445Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4446Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4512Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4557Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4558Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4630Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4639Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
4704Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4713Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
4780Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4781Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
4851Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4852Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
4925Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
4934Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5009Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5018Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5091Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5100Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5178Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5187Assert.Equal("Custom Value", _decodedHeaders["CustomName"]);
5225Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5226Assert.Equal("0", _decodedHeaders["content-length"]);
5298Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
5350Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
Http3\Http3StreamTests.cs (97)
42Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
66Assert.Equal("401", responseHeaders[InternalHeaderNames.Status]);
124Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
125Assert.Equal("Custom", responseHeaders["Method"]);
126Assert.Equal("0", responseHeaders["content-length"]);
161Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
162Assert.Equal("CONNECT", responseHeaders["Method"]);
178Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
179Assert.Equal("", responseHeaders["path"]);
180Assert.Equal("*", responseHeaders["rawtarget"]);
181Assert.Equal("0", responseHeaders["content-length"]);
197Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
198Assert.Equal("/", responseHeaders["path"]);
199Assert.Equal("/", responseHeaders["rawtarget"]);
200Assert.Equal("0", responseHeaders["content-length"]);
223Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
224Assert.Equal("/a/path", responseHeaders["path"]);
225Assert.Equal("?a&que%35ry", responseHeaders["query"]);
226Assert.Equal("/a/path?a&que%35ry", responseHeaders["rawtarget"]);
227Assert.Equal("0", responseHeaders["content-length"]);
257Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
258Assert.Equal("0", responseHeaders["content-length"]);
316Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
317Assert.Equal("0", responseHeaders["content-length"]);
355Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
356Assert.Equal("0", responseHeaders["content-length"]);
375Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
376Assert.Equal("0", responseHeaders["content-length"]);
396Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
397Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
398Assert.Equal("abc", responseHeaders[HeaderNames.Host]);
419Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
420Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
421Assert.Equal("abc", responseHeaders[HeaderNames.Host]);
442Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
443Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
444Assert.Equal("def", responseHeaders[HeaderNames.Host]);
465Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
466Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
467Assert.Equal("def", responseHeaders[HeaderNames.Host]);
575Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
576Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
611Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
612Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
646Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
647Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
848Assert.Equal("Value1", responseTrailers["Trailer1"]);
849Assert.Equal("Value2", responseTrailers["Trailer2"]);
880Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
914Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
915Assert.Equal("Custom 你好 Type", responseHeaders[HeaderNames.ContentType]);
916Assert.Equal("Custom 你好 Value", responseHeaders["CustomName"]);
974Assert.Equal("Value1", responseTrailers["Trailer1"]);
975Assert.Equal("Value2", responseTrailers["Trailer2"]);
1063Assert.Equal("Custom 你好 Value", responseTrailers["CustomName"]);
1064Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]);
1065Assert.Equal("Custom 你好 Accept", responseTrailers[HeaderNames.Accept]);
1168Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1169Assert.Equal("0", decodedHeaders["content-length"]);
1220Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1221Assert.Equal("0", decodedHeaders["content-length"]);
1224Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1315Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1367Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1368Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]);
1419Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1461Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1462Assert.Equal("0", decodedHeaders["content-length"]);
1515Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1521Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1570Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1576Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1744Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1750Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
1808Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
1814Assert.Equal("Custom Value", decodedTrailers["CustomName"]);
2329Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]);
2330Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2387Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]);
2388Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2497Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2498Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2538Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2539Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2570Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2571Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2610Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2611Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2665Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]);
2666Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2709Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]);
2710Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2884Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
2888Assert.Equal(i + "-" + headerText, responseHeaders["Header" + i]);
2924Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
2929Assert.Equal(i + "-" + headerText, responseTrailers["Header" + i]);
2952Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
Interop.FunctionalTests (5)
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 (23)
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.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.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.Tests (72)
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 (54)
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 (21)
119Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
121Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key);
122Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value);
133Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]);
135Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key);
136Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value);
147Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]);
418Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
434Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
450Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
466Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
482Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
498Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
534Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
549Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
599Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
632Assert.Equal(string8191, _handler.DecodedHeaders[string8191]);
633Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
657Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
682Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
846Assert.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 (39)
runtime\Http2\HPackDecoderTest.cs (21)
119Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
121Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key);
122Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value);
133Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]);
135Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key);
136Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value);
147Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]);
418Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
434Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
450Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
466Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
482Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
498Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
534Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
549Assert.Equal("GET", _handler.DecodedHeaders[":method"]);
599Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
632Assert.Equal(string8191, _handler.DecodedHeaders[string8191]);
633Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
657Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
682Assert.Equal(string8193, _handler.DecodedHeaders[string8193]);
846Assert.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 (46)
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 (94)
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 (19)
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]);
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"]);
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[""]);
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]"]);
Microsoft.Build (71)
Microsoft.Build.BuildCheck.UnitTests (3)
Microsoft.Build.Engine (48)
Microsoft.Build.Engine.OM.UnitTests (5)
Microsoft.Build.Engine.UnitTests (97)
BackEnd\BinaryTranslator_Tests.cs (16)
439Assert.Equal(value["foo"], deserializedValue["foo"]);
440Assert.Equal(value["alpha"], deserializedValue["alpha"]);
441Assert.Equal(value["FOO"], deserializedValue["FOO"]);
477Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"]));
478Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
479Assert.Equal(0, BaseClass.Comparer.Compare(value["FOO"], deserializedValue["FOO"]));
516Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"]));
517Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (18)
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 (2)
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.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.FileProviders.Embedded.Tests (4)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.SourceGeneration (3)
Microsoft.VisualBasic.Core (1)
MobileBuildTasks (3)
MonoAOTCompiler (1)
MonoTargetsTasks (9)
MSBuild (2)
MSBuildTaskHost (3)
PresentationBuildTasks (8)
PresentationCore (49)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1715_strokeLookupTable[s].CompressionData = xpData;
1725_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData;
1729_strokeLookupTable[s].StorePressure = shouldStorePressure;
1901if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex)
1905cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex);
1906currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex;
1915if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex)
1919cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex);
1920currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex;
1929if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex)
1933cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex);
1934uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex;
1943if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex)
1947cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex);
1948currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex;
1964cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]);
2572StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock);
2581_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex;
2588_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1;
2609_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp;
2617_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1);
2634_strokeLookupTable[stroke].TransformTableIndex = (uint)i;
2642_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1);
2656_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i;
2664_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)
732}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
764}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
802}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
879}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
1055}, 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.Formats.Tar (1)
System.IO.Packaging (3)
System.Linq.Expressions (6)
System.Net.Http (5)
System.Net.HttpListener (2)
System.Private.CoreLib (8)
System.Private.Xml (51)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (2)
System.Reflection.Metadata (2)
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.Syndication (5)
System.Text.Json (2)
System.Text.RegularExpressions (6)
System.Text.RegularExpressions.Generator (1)
System.Windows.Controls.Ribbon (11)
System.Xaml (10)
TaskUsageLogger (1)
WasmAppBuilder (2)
XmlFileLogger (2)
xunit.assert (1)
xunit.console (1)