5760 references to Dictionary
AnalyzerRunner (5)
aspire (8)
Aspire.Azure.AI.OpenAI.Tests (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Cli.Tests (10)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (24)
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (3)
236new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } },
238new Dictionary<string, bool> { { "Running", true }, { "Finished", false } },
240new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (37)
ResourceOutgoingPeerResolverTests.cs (25)
30var resources = new Dictionary<string, ResourceViewModel>
43var resources = new Dictionary<string, ResourceViewModel>
56var resources = new Dictionary<string, ResourceViewModel>
69var resources = new Dictionary<string, ResourceViewModel>
83var resources = new Dictionary<string, ResourceViewModel>
97var resources = new Dictionary<string, ResourceViewModel>
111var resources = new Dictionary<string, ResourceViewModel>
190var resources = new Dictionary<string, ResourceViewModel>
204var resources = new Dictionary<string, ResourceViewModel>
228var resources = new Dictionary<string, ResourceViewModel>
243var resources = new Dictionary<string, ResourceViewModel>
257var resources = new Dictionary<string, ResourceViewModel>
272var resources = new Dictionary<string, ResourceViewModel>
285var resources = new Dictionary<string, ResourceViewModel>
299var resources = new Dictionary<string, ResourceViewModel>
314var resources = new Dictionary<string, ResourceViewModel>
326var properties = new Dictionary<string, ResourcePropertyViewModel>
344var properties = new Dictionary<string, ResourcePropertyViewModel>
364var resources = new Dictionary<string, ResourceViewModel>
380var resources = new Dictionary<string, ResourceViewModel>
396var resources = new Dictionary<string, ResourceViewModel>
412var resources = new Dictionary<string, ResourceViewModel>
427var resources = new Dictionary<string, ResourceViewModel>
444var resources = new Dictionary<string, ResourceViewModel>
460var resources = new Dictionary<string, ResourceViewModel>
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (26)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.Tests (39)
ResourceWithAzureFunctionsConfigTests.cs (21)
110var target = new Dictionary<string, object>();
128var target = new Dictionary<string, object>();
149var target = new Dictionary<string, object>();
166var target = new Dictionary<string, object>();
183var target = new Dictionary<string, object>();
199var target = new Dictionary<string, object>();
215var target = new Dictionary<string, object>();
231var target = new Dictionary<string, object>();
248var target = new Dictionary<string, object>();
273var target = new Dictionary<string, object>();
301var target = new Dictionary<string, object>();
323var target = new Dictionary<string, object>();
343var target = new Dictionary<string, object>();
363var target = new Dictionary<string, object>();
383var target = new Dictionary<string, object>();
400var target = new Dictionary<string, object>();
419var target = new Dictionary<string, object>();
439var target = new Dictionary<string, object>();
458var target = new Dictionary<string, object>();
479var target = new Dictionary<string, object>();
501var target = new Dictionary<string, object>();
Aspire.Hosting.Docker (1)
Aspire.Hosting.Docker.Tests (3)
Aspire.Hosting.Kubernetes (7)
Aspire.Hosting.MySql.Tests (6)
Aspire.Hosting.PostgreSQL.Tests (5)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Redis.Tests (7)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Testing (2)
Aspire.Hosting.Tests (36)
Aspire.Hosting.Valkey.Tests (3)
Aspire.Hosting.Yarp.Tests (9)
YarpConfigGeneratorTests.cs (9)
60new Dictionary<string, string>
64new Dictionary<string, string>
68new Dictionary<string, string>
72new Dictionary<string, string>
78Metadata = new Dictionary<string, string> { { "routeA-K1", "routeA-V1" }, { "routeA-K2", "routeA-V2" } }
128Metadata = new Dictionary<string, string> { { "destA-K1", "destA-V1" }, { "destA-K2", "destA-V2" } },
193Metadata = new Dictionary<string, string> { { "cluster1-K1", "cluster1-V1" }, { "cluster1-K2", "cluster1-V2" } }
229var variables = new Dictionary<string, object>();
265.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
146resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } },
154resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
159resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } },
172resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }),
174resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
181resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } },
187resourceEndpoints: new() {
196resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
201resourceEndpoints: new() {
215resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } },
222resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } },
228resourceEndpoints: new() { { "api", ["/alive", "/health"] } },
235resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
241resourceEndpoints: new() {
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.Templates.Tests (2)
AuthSamples.FunctionalTests (4)
BasicTestApp (2)
BasicWebSite (1)
blazor-devserver (1)
BuildActionTelemetryTable (1)
BuildBoss (2)
BuildValidator (5)
CodeGenerator (1)
ConfigurationSchemaGenerator (3)
ConfigurationSchemaGenerator.Tests (2)
Crossgen2Tasks (1)
DemoConsole (1)
dotnet-openapi (2)
dotnet-svcutil-lib (189)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (8)
32private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
33private Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
43private Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>();
44private Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>();
47private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
84_generalEntities = new Dictionary<XmlQualifiedName, SchemaEntity>();
96_parameterEntities = new Dictionary<XmlQualifiedName, SchemaEntity>();
129_notations = new Dictionary<string, SchemaNotation>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (6)
52_namespaces = new Dictionary<string, string>();
277ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>());
746dataContract = DataContract.GetDataContract(type).BindGenericParameters(paramContracts, new Dictionary<DataContract, DataContract>());
937return GetKnownTypeContracts((ClassDataContract)dataContract, new Dictionary<DataContract, object>());
984dataContract.KnownDataContracts = new DataContractDictionary();
995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
129s_essentialExceptionFields = new Dictionary<string, string>();
212_knownDataContracts = new Dictionary<XmlQualifiedName, DataContract>();
269Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
308Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
487Dictionary<string, object> fieldToValueDictionary = new Dictionary<string, object>();
599Dictionary<string, string> mapDict = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (13)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>();
26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>();
27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>();
28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>();
34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>();
35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>();
1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>();
2206policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>();
2207policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>();
2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>();
2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>();
2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>();
2334wsdlPolicyDictionary = new Dictionary<string, XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (4)
23private Dictionary<OperationDescription, XmlSerializerFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, XmlSerializerFormatAttribute>();
35_partInfoTable = new Dictionary<MessagePartDescription, PartInfo>();
123Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported = new Dictionary<XmlMembersMapping, XmlMembersMapping>();
145_operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>());
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (5)
FilesWebSite (1)
FormatterWebSite (2)
GenerateDocumentationAndConfigFiles (22)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
HealthChecksSample (1)
HelixTestRunner (1)
HtmlGenerationWebSite (1)
IdeCoreBenchmarks (4)
Identity.DefaultUI.WebSite (3)
IIS.LongTests (3)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IISExpress.FunctionalTests (3)
illink (65)
Linker\Annotations.cs (11)
49protected readonly Dictionary<AssemblyDefinition, AssemblyAction> assembly_actions = new Dictionary<AssemblyDefinition, AssemblyAction>();
55protected readonly Dictionary<IMetadataTokenProvider, MessageOrigin> marked_pending = new Dictionary<IMetadataTokenProvider, MessageOrigin>();
57protected readonly Dictionary<TypeDefinition, (TypePreserve preserve, bool applied)> preserved_types = new Dictionary<TypeDefinition, (TypePreserve, bool)>();
59protected readonly Dictionary<TypeDefinition, TypePreserveMembers> preserved_type_members = new();
60protected readonly Dictionary<ExportedType, TypePreserveMembers> preserved_exportedtype_members = new();
61protected readonly Dictionary<IMemberDefinition, List<MethodDefinition>> preserved_methods = new Dictionary<IMemberDefinition, List<MethodDefinition>>();
64protected readonly Dictionary<AssemblyDefinition, ISymbolReader> symbol_readers = new Dictionary<AssemblyDefinition, ISymbolReader>();
65readonly Dictionary<IMemberDefinition, LinkerAttributesInformation> linker_attributes = new Dictionary<IMemberDefinition, LinkerAttributesInformation>();
66readonly Dictionary<object, Dictionary<IMetadataTokenProvider, object>> custom_annotations = new Dictionary<object, Dictionary<IMetadataTokenProvider, object>>();
67protected readonly Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> resources_to_remove = new Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>>();
550slots = new Dictionary<IMetadataTokenProvider, object>();
ILLink.RoslynAnalyzer (17)
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string>();
95readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string>();
96readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers>();
97readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new();
216featureSwitchMembers.Add(currentFeatureSwitch.Value, new Dictionary<string, ClassMembers>());
Infrastructure.Common (1)
InMemory.FunctionalTests (8)
InProcessWebSite (1)
Interop.FunctionalTests (1)
KeyManagementSimulator (1)
Metrics (10)
Metrics.Legacy (10)
Microsoft.Analyzers.Extra (4)
Microsoft.Analyzers.Local (2)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication.Core.Test (7)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (13)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.BrowserTesting (3)
Microsoft.AspNetCore.Components (16)
Microsoft.AspNetCore.Components.Authorization.Tests (16)
AuthorizeRouteViewTest.cs (13)
15private static readonly IReadOnlyDictionary<string, object> EmptyParametersDictionary = new Dictionary<string, object>();
47var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object>
54_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
82var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object>
90_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
129_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
158_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
185_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
212var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
256var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
278_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
336_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object>
344var render2Task = _renderer.Dispatcher.InvokeAsync(() => _authorizeRouteViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Microsoft.AspNetCore.Components.Endpoints (16)
Microsoft.AspNetCore.Components.Endpoints.Tests (152)
Assets\ImportMapDefinitionTest.cs (14)
28new Dictionary<string, string>
56new Dictionary<string, IReadOnlyDictionary<string, string>>
58["/scoped/"] = new Dictionary<string, string>
85new Dictionary<string, string>
90new Dictionary<string, string>
136new Dictionary<string, string>
140new Dictionary<string, IReadOnlyDictionary<string, string>>
142["/legacy/"] = new Dictionary<string, string>
147new Dictionary<string, string>
153new Dictionary<string, string>
158new Dictionary<string, IReadOnlyDictionary<string, string>>
160["/scoped/"] = new Dictionary<string, string>
164["/legacy/"] = new Dictionary<string, string>
169new Dictionary<string, string>
Binding\FormDataMapperTests.cs (66)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
97var collection = new Dictionary<string, StringValues>() { };
119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
179var collection = new Dictionary<string, StringValues>() { };
196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) };
239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
273var collection = new Dictionary<string, StringValues>() { };
290var data = new Dictionary<string, StringValues>() { };
306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" };
322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) };
340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) };
401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) };
609var collection = new Dictionary<string, StringValues>()
897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
905var expected = new ConcurrentDictionary<int, int>(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
913var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
921var expected = ImmutableSortedDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
929var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
931var collection = new Dictionary<string, StringValues>()
960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
985var collection = new Dictionary<string, StringValues>()
1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
1015var collection = new Dictionary<string, StringValues>()
1044var collection = new Dictionary<string, StringValues>() { };
1105var expected = new Dictionary<int, int>
1118var collection = new Dictionary<string, StringValues>()
1166var expected = new Dictionary<int, int>
1177var collection = new Dictionary<string, StringValues>()
1226var collection = new Dictionary<string, StringValues>()
1254var collection = new Dictionary<string, StringValues>()
1290var data = new Dictionary<string, StringValues>()
1315var data = new Dictionary<string, StringValues>()
1356var data = new Dictionary<string, StringValues>()
1415var data = new Dictionary<string, StringValues>()
1486var data = new Dictionary<string, StringValues>()
1541Children = new Dictionary<int, RecursiveDictionaryTree>() { [0] = expected }
1545var data = new Dictionary<string, StringValues>()
1590var data = new Dictionary<string, StringValues>()
1629var data = new Dictionary<string, StringValues>()
1660var data = new Dictionary<string, StringValues>()
1679var data = new Dictionary<string, StringValues>()
1698var data = new Dictionary<string, StringValues>()
1717var data = new Dictionary<string, StringValues>()
1739var data = new Dictionary<string, StringValues>()
1761var data = new Dictionary<string, StringValues>()
1787var data = new Dictionary<string, StringValues>()
1812var data = new Dictionary<string, StringValues>()
1832var data = new Dictionary<string, StringValues>()
1852var data = new Dictionary<string, StringValues>() { };
1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" };
1906var data = new Dictionary<string, StringValues>();
1934var data = new Dictionary<string, StringValues>();
1967var data = new Dictionary<string, StringValues>();
1989var data = new Dictionary<string, StringValues>();
2012var data = new Dictionary<string, StringValues>();
2045var data = new Dictionary<string, StringValues>();
2080var data = new Dictionary<string, StringValues>()
EndpointHtmlRendererTest.cs (21)
212ParameterView.FromDictionary(new Dictionary<string, object>
250ParameterView.FromDictionary(new Dictionary<string, object>
286ParameterView.FromDictionary(new Dictionary<string, object>
336ParameterView.FromDictionary(new Dictionary<string, object>
475var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
533var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
550var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
589var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
628var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
728var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
745var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
775var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
797ParameterView.FromDictionary(new Dictionary<string, object>
817ParameterView.FromDictionary(new Dictionary<string, object>
837ParameterView.FromDictionary(new Dictionary<string, object>
876ParameterView.FromDictionary(new Dictionary<string, object>
892ParameterView.FromDictionary(new Dictionary<string, object>
924ParameterView.FromDictionary(new Dictionary<string, object>
1005ParameterView.FromDictionary(new Dictionary<string, object>
1608ParameterView.FromDictionary(new Dictionary<string, object>
ImportMapTest.cs (20)
39new Dictionary<string, string>
44new Dictionary<string, IReadOnlyDictionary<string, string>>
46["development"] = new Dictionary<string, string>
52new Dictionary<string, string>
59importMap.AdditionalAttributes = new Dictionary<string, object> { ["nonce"] = "random" }.AsReadOnly();
85new Dictionary<string, string>
90new Dictionary<string, IReadOnlyDictionary<string, string>>
92["development"] = new Dictionary<string, string>
98new Dictionary<string, string>
130new Dictionary<string, string>
135new Dictionary<string, IReadOnlyDictionary<string, string>>
137["development"] = new Dictionary<string, string>
143new Dictionary<string, string>
150new Dictionary<string, string>
169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
195new Dictionary<string, string>
200new Dictionary<string, IReadOnlyDictionary<string, string>>
202["development"] = new Dictionary<string, string>
208new Dictionary<string, string>
225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Server.Tests (41)
Circuits\CircuitHostTest.cs (8)
531Dictionary<string, object> parameters = new()
557Dictionary<string, object> parameters = new()
582Dictionary<string, object> parameters = new()
608await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
615Dictionary<string, object> parameters = new()
647await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
652Dictionary<string, object> parameters = new()
682Dictionary<string, object> parameters = new()
Circuits\CircuitPersistenceManagerTest.cs (10)
41(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
76new Dictionary<string, object>
95(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
99(RootComponentType: typeof(SecondRootComponent), Parameters: new Dictionary<string, object>
129new Dictionary<string, object>
140new Dictionary<string, object>
159(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
192ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] },
223(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
258ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] },
Circuits\ServerComponentDeserializerTest.cs (7)
44(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = "Value" })));
63(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = null })));
103(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
104(typeof(TestComponent), new Dictionary<string, object> { ["Second"] = null })));
133(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
323(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
402Marker = CreateMarker(typeof(DynamicallyAddedComponent), new()
Microsoft.AspNetCore.Components.Tests (165)
PersistentState\ComponentApplicationStateTest.cs (15)
14var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
15var existingState = new Dictionary<string, byte[]>
32var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
33var existingState = new Dictionary<string, byte[]>
48var currentState = new Dictionary<string, byte[]>();
62var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
63var existingState = new Dictionary<string, byte[]>
81var currentState = new Dictionary<string, byte[]>();
100var currentState = new Dictionary<string, byte[]>();
117var currentState = new Dictionary<string, byte[]>();
136var currentState = new Dictionary<string, byte[]>();
156var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
157var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
174var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
175var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
PersistentState\ComponentStatePersistenceManagerTest.cs (10)
44var state = new Dictionary<string, byte[]>
66var state = new Dictionary<string, byte[]>
88var state = new Dictionary<string, byte[]>();
138var state = new Dictionary<string, byte[]>();
165var state = new Dictionary<string, byte[]>();
187var state = new Dictionary<string, byte[]>();
217var state = new Dictionary<string, byte[]>();
253var state = new Dictionary<string, byte[]>();
281var state = new Dictionary<string, byte[]>();
309var state = new Dictionary<string, byte[]>();
PersistentStateValueProviderTests.cs (24)
25new Dictionary<string, byte[]>(),
54new Dictionary<string, byte[]>(),
76new Dictionary<string, byte[]>(),
99var state = new Dictionary<string, byte[]>();
124var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
137var state = new Dictionary<string, byte[]>();
162var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
175var state = new Dictionary<string, byte[]>();
203var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
248var state = new Dictionary<string, byte[]>();
276var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
294var state = new Dictionary<string, byte[]>();
334var state = new Dictionary<string, byte[]>();
367var state = new Dictionary<string, byte[]>();
407var state = new Dictionary<string, byte[]>();
439var state = new Dictionary<string, byte[]>();
462var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
474var state = new Dictionary<string, byte[]>();
497var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
509var state = new Dictionary<string, byte[]>();
532var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
544var state = new Dictionary<string, byte[]>();
567var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), []);
577var dictionary = new Dictionary<string, byte[]>();
RendererTest.cs (49)
238await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
240[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
257[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
282renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
298renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
397await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
399[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
416[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
441await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
443[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
460[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
485await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
487[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
518[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
2632ChildParameters = new Dictionary<string, object>
2759ChildParameters = new Dictionary<string, object>
3552var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3554[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3565[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3585var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3587[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3598[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3618var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3620[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3631[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3652var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3654[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3669[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3749var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3751[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3779[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3807var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3809[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3835[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3862var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3864[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3890[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3916var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3918[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3946[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4046var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4048[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4059[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4080var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4082[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4093[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4117await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4119[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4135[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
Routing\RouteTableFactoryTests.cs (9)
335var expectedParameters = new Dictionary<string, object>
356var expectedParameters = new Dictionary<string, object>
403Assert.Equal(new Dictionary<string, object>
676Assert.Equal(new Dictionary<string, object>
706Assert.Equal(new Dictionary<string, object>
732Assert.Equal(new Dictionary<string, object>
757Assert.Equal(new Dictionary<string, object>
952Assert.Equal(context.Parameters, new Dictionary<string, object>
1111Assert.Equal(new Dictionary<string, object>
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.Web.Tests (20)
HtmlRendering\HtmlRendererTest.cs (10)
177rtb.AddMultipleAttributes(3, new Dictionary<string, object>() { { "Class", "test2" }, });
666ParameterView.FromDictionary(new Dictionary<string, object>
763var result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
789var result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
811var first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object>
819var second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object>
896await htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
917htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
937htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
957var content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebAssembly.Tests (10)
Hosting\WebAssemblyHostConfigurationTest.cs (10)
15var initialData = new Dictionary<string, string>() {
41var initialData = new Dictionary<string, string>() { { "color", "blue" } };
65var initialData = new Dictionary<string, string>() { { "color", "blue" } };
83var initialData = new Dictionary<string, string>() {
110var initialData = new Dictionary<string, string>() { { "color", "blue" } };
127var dic1 = new Dictionary<string, string>()
134var dic2 = new Dictionary<string, string>()
141var dic3 = new Dictionary<string, string>()
186var dic1 = new Dictionary<string, string>()
190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Tests (11)
RegistryPolicyResolverTests.cs (10)
21var registryEntries = new Dictionary<string, object>();
37var registryEntries = new Dictionary<string, object>()
58var registryEntries = new Dictionary<string, object>()
75var registryEntries = new Dictionary<string, object>()
92var registryEntries = new Dictionary<string, object>()
116var registryEntries = new Dictionary<string, object>()
152var registryEntries = new Dictionary<string, object>()
174var registryEntries = new Dictionary<string, object>()
204var registryEntries = new Dictionary<string, object>()
226var registryEntries = new Dictionary<string, object>()
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (17)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (32)
UnaryServerCallHandlerTests.cs (25)
55var routeParameterDescriptors = new Dictionary<string, RouteParameter>
99var routeParameterDescriptors = new Dictionary<string, RouteParameter>
133var routeParameterDescriptors = new Dictionary<string, RouteParameter>
206httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
244httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
291httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
341httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
391httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
441httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
491httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
525httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
553httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
584httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
620httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
651httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
677httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
704httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1326httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1493httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1521httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1604httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1621httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1665httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1760httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1794httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Hosting.Tests (32)
WebHostBuilderTests.cs (10)
294var data = new Dictionary<string, string>
507var settings = new Dictionary<string, string>
533var settings = new Dictionary<string, string>
559var settings = new Dictionary<string, string>
568var overrideSettings = new Dictionary<string, string>
594var vals = new Dictionary<string, string>
623var vals = new Dictionary<string, string>
644var vals = new Dictionary<string, string>
1477var vals = new Dictionary<string, string>
1499var vals = new Dictionary<string, string>
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>();
308var values = new Dictionary<string, StringValues>();
350var values = new Dictionary<string, StringValues>();
388var values = new Dictionary<string, StringValues>();
427var values = new Dictionary<string, StringValues>();
467var values = new Dictionary<string, StringValues>();
530var values = new Dictionary<string, StringValues>();
598var values = new Dictionary<string, StringValues>();
661var values = new Dictionary<string, StringValues>();
765var values = new Dictionary<string, StringValues>();
907var values = new Dictionary<string, StringValues>();
1842var values = new Dictionary<string, StringValues>();
1894var values = new Dictionary<string, StringValues>();
2570var values = new Dictionary<string, StringValues>();
2630var values = new Dictionary<string, StringValues>();
2687var values = new Dictionary<string, StringValues>();
3703var values = new Dictionary<string, StringValues>();
3740var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (8)
Microsoft.AspNetCore.Http.Extensions.Tests (52)
ProblemDetailsDefaultWriterTest.cs (4)
74Extensions = new Dictionary<string, object>() { { "extensionKey", 1 } }
88Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "extensionKey", 5 }, { "traceId", expectedTraceId } }));
106Errors = new Dictionary<string, string[]>() { { "name", ["Name is invalid."] } }
120Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "errors", 5 }, { "traceId", expectedTraceId } }));
RequestDelegateFactoryTests.cs (15)
251httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
582httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
604httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
628httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
635httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
753httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>()
1777httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1807httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1837httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1865httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1905httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
2059var urlEncondedForm = new FormUrlEncodedContent(new Dictionary<string, string> { ["message"] = "hello", ["name"] = "foo" });
2160httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
2197httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
3107httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Results.Tests (32)
CreatedAtRouteOfTResultTests.cs (7)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
42new Dictionary<string, string>() { { "hello", "world" } }
46new RouteValueDictionary(new Dictionary<string, string>() {
82routeValues: new Dictionary<string, object>(),
134routeValues: new Dictionary<string, object>(),
149routeValues: new Dictionary<string, object>(),
165routeValues: new Dictionary<string, object>(),
ResultsTests.cs (5)
1256var extensions = new Dictionary<string, object> { { "test", "value" } };
1304var extensions = (IReadOnlyDictionary<string, object>)new Dictionary<string, object> { ["test"] = "value" };
1399var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } };
1405var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
1780(() => Results.ValidationProblem(new Dictionary<string, string[]>(), null, null, null, null, null, null), typeof(ProblemHttpResult)),
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.HttpOverrides.Tests (3)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.FunctionalTests (23)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
Microsoft.AspNetCore.JsonPatch.Tests (14)
Microsoft.AspNetCore.Mvc.Abstractions (5)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (16)
Microsoft.AspNetCore.Mvc.Core.Test (176)
ControllerBaseTest.cs (10)
1406var expected = new Dictionary<string, object>
1446var expected = new Dictionary<string, object>
1467var expected = new Dictionary<string, object>
1600var expected = new Dictionary<string, object>
1625var expected = new Dictionary<string, object>
1646var expected = new Dictionary<string, object>
2444var actionResult = controller.ValidationProblem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2521var actionResult = controller.Problem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2590new Dictionary<string, object> { { "hello", "world" } },
2594var expected2 = new Dictionary<string, object>
Infrastructure\ControllerActionInvokerTest.cs (26)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
988var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.Echo), new Dictionary<string, object>() { { "input", inputString } });
1015new Dictionary<string, object>() { { "input", inputString } });
1038new Dictionary<string, object>());
1065new Dictionary<string, object>() { { "input", inputString } });
1091new Dictionary<string, object>());
1118new Dictionary<string, object>() { { "input", inputString } });
1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } };
1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } };
1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } };
1371new Dictionary<string, object>());
1405.Returns(new Dictionary<object, object>());
1453var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1478var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1502var actionParameters = new Dictionary<string, object>();
1526var actionParameters = new Dictionary<string, object>();
1685arguments = new Dictionary<string, object>();
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
292ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
298var binders = new Dictionary<ModelMetadata, IModelBinder>();
344ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
349new Dictionary<ModelMetadata, IModelBinder>(),
388ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
393new Dictionary<ModelMetadata, IModelBinder>(),
1108var valueProvider = new TestValueProvider(new Dictionary<string, object>());
1389public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>();
1396public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (13)
352ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
358var binders = new Dictionary<ModelMetadata, IModelBinder>();
404ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
409new Dictionary<ModelMetadata, IModelBinder>(),
448ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
453new Dictionary<ModelMetadata, IModelBinder>(),
1272var valueProvider = new TestValueProvider(new Dictionary<string, object>());
1564public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>();
1571public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
1603: this(new Dictionary<ModelMetadata, IModelBinder>())
1608: this(new Dictionary<ModelMetadata, IModelBinder>(), allowValidatingTopLevelNodes)
1624public Dictionary<ModelMetadata, ModelBindingResult> Results { get; } = new Dictionary<ModelMetadata, ModelBindingResult>();
ModelBinding\Binders\DictionaryModelBinderTest.cs (12)
21var values = new Dictionary<string, string>()
61var values = new Dictionary<string, string>()
72var dictionary = new Dictionary<int, string>();
268var dictionaryWithOne = new Dictionary<long, int>
272var dictionaryWithThree = new Dictionary<long, int>
319var dictionary = new Dictionary<int, ModelWithProperties>
324var stringDictionary = new Dictionary<string, string>
346new ComplexObjectModelBinder(new Dictionary<ModelMetadata, IModelBinder>()
446bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
481bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
530bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
575bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\RouteValueProviderTests.cs (12)
16var values = new RouteValueDictionary(new Dictionary<string, object>
33var values = new RouteValueDictionary(new Dictionary<string, object>
51var values = new RouteValueDictionary(new Dictionary<string, object>
68var values = new RouteValueDictionary(new Dictionary<string, object>
87var values = new RouteValueDictionary(new Dictionary<string, object>
104var values = new RouteValueDictionary(new Dictionary<string, object>
121var values = new RouteValueDictionary(new Dictionary<string, object>
142var values = new RouteValueDictionary(new Dictionary<string, object>
163var values = new RouteValueDictionary(new Dictionary<string, object>
182var values = new RouteValueDictionary(new Dictionary<string, object>
200var values = new RouteValueDictionary(new Dictionary<string, object>
217var values = new RouteValueDictionary(new Dictionary<string, object>
ResponseCacheAttributeTest.cs (8)
29var cacheProfiles = new Dictionary<string, CacheProfile>();
49var cacheProfiles = new Dictionary<string, CacheProfile>();
92new Dictionary<string, CacheProfile> { { "TestCacheProfile", new CacheProfile
111new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile
130new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile
148new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile() } },
189var cacheProfiles = new Dictionary<string, CacheProfile>();
350new Dictionary<string, object>(),
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (45)
DataAnnotationsMetadataProviderTest.cs (10)
691{ typeof(EmptyEnum), new Dictionary<string, string>() },
692{ typeof(EmptyEnum?), new Dictionary<string, string>() },
695new Dictionary<string, string>
707new Dictionary<string, string>
719new Dictionary<string, string>
732new Dictionary<string, string>
745new Dictionary<string, string>
756new Dictionary<string, string>
767new Dictionary<string, string>
779new Dictionary<string, string>
FileExtensionsAttributeAdapterTest.cs (4)
33var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
84var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
119var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
144var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
92var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
125var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
152var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
MinLengthAttributeAdapterTest.cs (4)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
117var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
NumericClientModelValidatorTest.cs (5)
24var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
58var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
90var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
116var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
139var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RangeAttributeAdapterTest.cs (3)
30var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
66var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
94var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RequiredAttributeAdapterTest.cs (3)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
62var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
87var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
StringLengthAttributeAdapterTest.cs (5)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
64var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
119var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
145var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (30)
Microsoft.AspNetCore.Mvc.IntegrationTests (81)
CollectionModelBinderIntegrationTest.cs (24)
597var formCollection = new FormCollection(new Dictionary<string, StringValues>()
655var formCollection = new FormCollection(new Dictionary<string, StringValues>()
732new Dictionary<string, StringValues>
741new Dictionary<string, StringValues>
751new Dictionary<string, StringValues>
761new Dictionary<string, StringValues>
770new Dictionary<string, StringValues>
779new Dictionary<string, StringValues>
789new Dictionary<string, StringValues>
798new Dictionary<string, StringValues>
808new Dictionary<string, StringValues>
817new Dictionary<string, StringValues>
827new Dictionary<string, StringValues>
836new Dictionary<string, StringValues>
846new Dictionary<string, StringValues>
854new Dictionary<string, StringValues>
862new Dictionary<string, StringValues>
870new Dictionary<string, StringValues>
878new Dictionary<string, StringValues>
886new Dictionary<string, StringValues>
894new Dictionary<string, StringValues>
902new Dictionary<string, StringValues>
910new Dictionary<string, StringValues>
918new Dictionary<string, StringValues>
DictionaryModelBinderIntegrationTest.cs (32)
42Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model);
82Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model);
120Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model);
173Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model);
210Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model);
224var impliedPrefixDictionary = new Dictionary<string, StringValues>
230var reversedImpliedPrefixDictionary = new Dictionary<string, StringValues>
236var longFormDictionary = new Dictionary<string, StringValues>
245var longerFormDictionary = new Dictionary<string, StringValues>
255var longestFormDictionary = new Dictionary<string, StringValues>
269var noPrefixDictionary = new Dictionary<string, StringValues>
275var reversedNoPrefixDictionary = new Dictionary<string, StringValues>
331var expectedDictionary = new Dictionary<string, int>
366var expectedDictionary = new Dictionary<string, int>
527Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model);
544var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } };
582var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } };
617var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } };
652var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } };
725Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model);
764Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model);
804Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 100 } }, }, model);
909var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
941var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
975var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
1014var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } };
1053var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } };
1160var expectedDictionary = new Dictionary<string, string>
1359var expectedDictionary = new Dictionary<DayOfWeek, string>
1394var expectedDictionary = new Dictionary<string, DayOfWeek>
1518private readonly IDictionary<string, string> _data = new Dictionary<string, string>();
1623private readonly IDictionary<TKey, TValue> _data = new Dictionary<TKey, TValue>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (34)
BsonTempDataSerializerTest.cs (13)
22{ new Dictionary<string, TestItem>(), typeof(TestItem) },
47{ new Dictionary<int, string>(), typeof(int) },
48{ new Dictionary<Uri, Guid>(), typeof(Uri) },
49{ new Dictionary<object, string>(), typeof(object) },
50{ new Dictionary<TestItem, TestItem>(), typeof(TestItem) }
83{ new Dictionary<string, int>() },
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
161var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
212var input = new Dictionary<string, object>
239var input = new Dictionary<string, object>
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object>
54var input = new Dictionary<string, object>
76var input = new Dictionary<string, object>
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
160var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
204var input = new Dictionary<string, object>
226var input = new Dictionary<string, object>
247var input = new Dictionary<string, object>
268var input = new Dictionary<string, object>
289var input = new Dictionary<string, object>
309var value = new Dictionary<string, string>
314var input = new Dictionary<string, object>
334var value = new Dictionary<string, int>
339var input = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.Test (59)
RazorPageTest.cs (18)
424page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
464page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
487page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
524page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
548page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
572page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
596page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
620page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
697page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
722page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
745page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
770page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
804page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
983items: new Dictionary<object, object>(),
1025items: new Dictionary<object, object>(),
1071items: new Dictionary<object, object>(),
1114items: new Dictionary<object, object>(),
1144items: new Dictionary<object, object>(),
RazorViewEngineTest.cs (22)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>()
29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>()
34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>()
546var areaContext = GetActionContext(new Dictionary<string, object>()
561var nonAreaContext = GetActionContext(new Dictionary<string, object>()
610var areaContext1 = GetActionContext(new Dictionary<string, object>()
625var areaContext2 = GetActionContext(new Dictionary<string, object>()
809var context = GetActionContext(new Dictionary<string, object>());
1283var routeValues = new Dictionary<string, object>
1295var routesInActionDescriptor = new Dictionary<string, string>()
1324var routeValues = new Dictionary<string, object>
1328var routesInActionDescriptor = new Dictionary<string, string>()
1358var routeValues = new Dictionary<string, object>
1363var routesInActionDescriptor = new Dictionary<string, string>()
1393var routeValues = new Dictionary<string, object>()
1401new Dictionary<string, string>());
1833var routeValues = new Dictionary<string, object>
1870var routeValues = new Dictionary<string, object>
1911var context = GetActionContext(new Dictionary<string, object>());
1929var context = GetActionContext(new Dictionary<string, object>());
1951var context = GetActionContext(new Dictionary<string, object>());
1969var context = GetActionContext(new Dictionary<string, object>());
TagHelpers\TagHelperComponentTagHelperTest.cs (8)
25items: new Dictionary<object, object>(),
74items: new Dictionary<object, object>(),
130items: new Dictionary<object, object>(),
161items: new Dictionary<object, object>(),
192items: new Dictionary<object, object>(),
227items: new Dictionary<object, object>(),
260items: new Dictionary<object, object>(),
291items: new Dictionary<object, object>(),
TagHelpers\UrlResolutionTagHelperTest.cs (8)
80items: new Dictionary<object, object>(),
122items: new Dictionary<object, object>(),
182items: new Dictionary<object, object>(),
240items: new Dictionary<object, object>(),
296items: new Dictionary<object, object>(),
327items: new Dictionary<object, object>(),
376items: new Dictionary<object, object>(),
422items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.RazorPages.Test (35)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
27RouteValues = new Dictionary<string, string>(),
55RouteValues = new Dictionary<string, string>(),
106RouteValues = new Dictionary<string, string>(),
148RouteValues = new Dictionary<string, string>(),
410RouteValues = new Dictionary<string, string>(),
Filters\PageViewDataAttributeFilterTest.cs (2)
26var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
45var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
Infrastructure\PageBinderFactoryTest.cs (13)
212var binder = new TestParameterBinder(new Dictionary<string, object>
269var binder = new TestParameterBinder(new Dictionary<string, object>
323var binder = new TestParameterBinder(new Dictionary<string, object>());
382var binder = new TestParameterBinder(new Dictionary<string, object>()
441var binder = new TestParameterBinder(new Dictionary<string, object>()
492var binder = new TestParameterBinder(new Dictionary<string, object>
583var parameterBinder = new TestParameterBinder(new Dictionary<string, object>()
603var arguments = new Dictionary<string, object>();
626var parameterBinder = new TestParameterBinder(new Dictionary<string, object>()
646var arguments = new Dictionary<string, object>();
689var arguments = new Dictionary<string, object>();
713var parameterBinder = new TestParameterBinder(new Dictionary<string, object>()
740var arguments = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (166)
AnchorTagHelperTest.cs (16)
35items: new Dictionary<object, object>(),
95items: new Dictionary<object, object>(),
145items: new Dictionary<object, object>(),
197items: new Dictionary<object, object>(),
211var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
255items: new Dictionary<object, object>(),
269var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
292RouteValues = new Dictionary<string, string> { { "area", "Home" } }
314items: new Dictionary<object, object>(),
328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } };
372items: new Dictionary<object, object>(),
423items: new Dictionary<object, object>(),
520items: new Dictionary<object, object>(),
560items: new Dictionary<object, object>(),
598items: new Dictionary<object, object>(),
636items: new Dictionary<object, object>(),
FormActionTagHelperTest.cs (20)
28items: new Dictionary<object, object>(),
103items: new Dictionary<object, object>(),
173{ new Dictionary<string, string>(), null },
175new Dictionary<string, string> { { "name", "value" } },
176new Dictionary<string, object> { { "name", "value" } }
204items: new Dictionary<object, object>(),
264items: new Dictionary<object, object>(),
321{ "Area", new Dictionary<string, string> { { "area", "Home" } }, "Area" },
324{ string.Empty, new Dictionary<string, string> { { "area", "Home" } }, string.Empty },
326{ null, new Dictionary<string, string> { { "area", "Admin" } }, "Admin" },
342items: new Dictionary<object, object>(),
352var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } };
396items: new Dictionary<object, object>(),
406var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } };
445items: new Dictionary<object, object>(),
543items: new Dictionary<object, object>(),
583items: new Dictionary<object, object>(),
621items: new Dictionary<object, object>(),
659items: new Dictionary<object, object>(),
697items: new Dictionary<object, object>(),
FormTagHelperTest.cs (25)
33items: new Dictionary<object, object>(),
81items: new Dictionary<object, object>(),
137items: new Dictionary<object, object>(),
191items: new Dictionary<object, object>(),
249items: new Dictionary<object, object>(),
312items: new Dictionary<object, object>(),
387items: new Dictionary<object, object>(),
441items: new Dictionary<object, object>(),
513items: new Dictionary<object, object>(),
574items: new Dictionary<object, object>(),
632items: new Dictionary<object, object>(),
644var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
689items: new Dictionary<object, object>(),
701var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } };
746items: new Dictionary<object, object>(),
758var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
776RouteValues = new Dictionary<string, string> { { "area", "Client" } },
804items: new Dictionary<object, object>(),
859items: new Dictionary<object, object>(),
905items: new Dictionary<object, object>(),
990items: new Dictionary<object, object>(),
1040items: new Dictionary<object, object>(),
1076items: new Dictionary<object, object>(),
1110items: new Dictionary<object, object>(),
1144items: new Dictionary<object, object>(),
InputTagHelperTest.cs (38)
87items: new Dictionary<object, object>(),
135items: new Dictionary<object, object>(),
182items: new Dictionary<object, object>(),
226items: new Dictionary<object, object>(),
279var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
324var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
378var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
434var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
485var context = new TagHelperContext(expectedAttributes, new Dictionary<object, object>(), "test");
541var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
643items: new Dictionary<object, object>(),
722items: new Dictionary<object, object>(),
793items: new Dictionary<object, object>(),
887var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
941var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
1001var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
1061var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
1121var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
1156items: new Dictionary<object, object>(),
1256items: new Dictionary<object, object>(),
1304new Dictionary<string, object> { { "type", "hidden" } })) // htmlAttributes
1364var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
1422items: new Dictionary<object, object>(),
1522items: new Dictionary<object, object>(),
1634items: new Dictionary<object, object>(),
1759items: new Dictionary<object, object>(),
1783var htmlAttributes = new Dictionary<string, object>
1832items: new Dictionary<object, object>(),
1844var htmlAttributes = new Dictionary<string, object>
1901items: new Dictionary<object, object>(),
1913var htmlAttributes = new Dictionary<string, object>
1995items: new Dictionary<object, object>(),
2007var htmlAttributes = new Dictionary<string, object>
2075items: new Dictionary<object, object>(),
2137items: new Dictionary<object, object>(),
2205items: new Dictionary<object, object>(),
2271items: new Dictionary<object, object>(),
2329items: new Dictionary<object, object>(),
ScriptTagHelperTest.cs (9)
714new Dictionary<string, string>
719new Dictionary<string, IReadOnlyDictionary<string, string>>
721["development"] = new Dictionary<string, string>
727new Dictionary<string, string>
759new Dictionary<string, string>
764new Dictionary<string, IReadOnlyDictionary<string, string>>
766["development"] = new Dictionary<string, string>
772new Dictionary<string, string>
1099items: new Dictionary<object, object>(),
SelectTagHelperTest.cs (9)
202items: new Dictionary<object, object>(),
292items: new Dictionary<object, object>(),
383items: new Dictionary<object, object>(),
472items: new Dictionary<object, object>(),
560items: new Dictionary<object, object>(),
643items: new Dictionary<object, object>(),
723var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test");
761var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
811var tagHelperContext = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
TagHelperOutputExtensionsTest.cs (5)
342items: new Dictionary<object, object>(),
444items: new Dictionary<object, object>(),
475items: new Dictionary<object, object>(),
511items: new Dictionary<object, object>(),
542items: new Dictionary<object, object>(),
ValidationMessageTagHelperTest.cs (8)
45items: new Dictionary<object, object>(),
117new Dictionary<object, object>(),
159new Dictionary<object, object>(),
212new Dictionary<object, object>(),
262items: new Dictionary<object, object>(),
335items: new Dictionary<object, object>(),
397items: new Dictionary<object, object>(),
438items: new Dictionary<object, object>(),
ValidationSummaryTagHelperTest.cs (10)
58items: new Dictionary<object, object>(),
123items: new Dictionary<object, object>(),
191items: new Dictionary<object, object>(),
224items: new Dictionary<object, object>(),
294items: new Dictionary<object, object>(),
378items: new Dictionary<object, object>(),
434items: new Dictionary<object, object>(),
493items: new Dictionary<object, object>(),
549items: new Dictionary<object, object>(),
610items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (103)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
360var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
397var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
436var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
474var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object>
171var htmlAttributes = new Dictionary<string, object>
201var htmlAttributes = new Dictionary<string, object>
225var htmlAttributes = new Dictionary<string, object>
249var htmlAttributes = new Dictionary<string, object>
271var htmlAttributes = new Dictionary<string, object>
293var htmlAttributes = new Dictionary<string, object>
316var htmlAttributes = new Dictionary<string, object>
369var htmlAttributes = new Dictionary<string, object>
399var htmlAttributes = new Dictionary<string, object>
424var htmlAttributes = new Dictionary<string, object>
471var htmlAttributes = new Dictionary<string, object>
Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object>
54var input = new Dictionary<string, object>
76var input = new Dictionary<string, object>
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
160var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
204var input = new Dictionary<string, object>
226var input = new Dictionary<string, object>
247var input = new Dictionary<string, object>
268var input = new Dictionary<string, object>
289var input = new Dictionary<string, object>
309var value = new Dictionary<string, string>
314var input = new Dictionary<string, object>
334var value = new Dictionary<string, int>
339var input = new Dictionary<string, object>
Rendering\HtmlHelperFormExtensionsTest.cs (2)
22new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "true" }, },
34new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } },
Rendering\HtmlHelperFormTest.cs (8)
52new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, },
54new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
58new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, },
60new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
101new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, },
103new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
107new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, },
109new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
Rendering\HtmlHelperHiddenTest.cs (14)
24var htmlAttributes1 = new Dictionary<string, object>
39{ new Dictionary<string, object> { { "foo-baz", "BazValue" } }, expected2 },
184var attributes = new Dictionary<string, object> { { "data-key", "value" } };
310var attributes = new Dictionary<string, object> { { "baz", "BazValue" } };
425var attributes = new Dictionary<string, object>
447var attributes = new Dictionary<string, object>
467var attributes = new Dictionary<string, object>
534var attributes = new Dictionary<string, object> { { "data-test", "val" } };
573var attributes = new Dictionary<string, object> { { "data-test", "val" } };
665var attributes = new Dictionary<string, object> { { "key", "value" } };
731var attributes = new Dictionary<string, object>
809var attributes = new Dictionary<string, object>
876var attributes = new Dictionary<string, object>
986public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
ViewDataDictionaryTest.cs (6)
229{ typeof(Dictionary<string, object>), new Dictionary<string, object>() },
471new { Foo = new Dictionary<string, object> { { "Bar", "Baz" } } },
673viewData.Add("Foo", new Dictionary<string, object> { { "Bar", "Baz" } });
687viewData.Add("Foo", new Dictionary<string, object> { { "NotBar", "Baz" } });
701var value = new Dictionary<string, object>
703["Bar"] = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi (23)
Services\OpenApiDocumentService.cs (12)
266var operations = new Dictionary<HttpMethod, OpenApiOperation>();
270operation.Metadata ??= new Dictionary<string, object>();
403Content = new Dictionary<string, OpenApiMediaType>()
543Content = new Dictionary<string, OpenApiMediaType>()
546var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
583Properties = new Dictionary<string, IOpenApiSchema>
591schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
623Properties = new Dictionary<string, IOpenApiSchema>
643schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
653var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
665schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
711Content = new Dictionary<string, OpenApiMediaType>(),
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (2)
Microsoft.AspNetCore.OpenApi.Tests (23)
Transformers\SchemaTransformerTests.cs (11)
155schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
162schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
189schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
451builder.MapGet("/dictionary", () => new Dictionary<string, int> { { "key", 1 } });
499schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
568schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
610schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
652schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
741schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
957schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
1006schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.Owin.Tests (5)
Microsoft.AspNetCore.Razor.Runtime (5)
Microsoft.AspNetCore.Razor.Runtime.Test (16)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (15)
21items: new Dictionary<object, object>(),
44items: new Dictionary<object, object>(),
69items: new Dictionary<object, object>(),
104items: new Dictionary<object, object>(),
123items: new Dictionary<object, object>(),
149var items = new Dictionary<object, object>();
167var updatedItems = new Dictionary<object, object>();
209var expectedItems = new Dictionary<object, object>
272items: new Dictionary<object, object>(),
300items: new Dictionary<object, object>(),
322items: new Dictionary<object, object>(),
349items: new Dictionary<object, object>(),
376items: new Dictionary<object, object>(),
406items: new Dictionary<object, object>(),
433items: new Dictionary<object, object>(),
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (1)
403: base()
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Rewrite.Tests (8)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Microsoft.AspNetCore.Routing.Tests (24)
RouteTest.cs (7)
308var constraints = new Dictionary<string, object>();
1538new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1539new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1543new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1547new Dictionary<string,object>(),
1551new Dictionary<string, object>()
1555new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (33)
SniOptionsSelectorTests.cs (22)
27var sniDictionary = new Dictionary<string, SniConfig>
94var sniDictionary = new Dictionary<string, SniConfig>
140var sniDictionary = new Dictionary<string, SniConfig>
188var sniDictionary = new Dictionary<string, SniConfig>
252var sniDictionary = new Dictionary<string, SniConfig>
297var sniDictionary = new Dictionary<string, SniConfig>
339new Dictionary<string, SniConfig>(),
355var sniDictionary = new Dictionary<string, SniConfig>
387var sniDictionary = new Dictionary<string, SniConfig>
414var sniDictionary = new Dictionary<string, SniConfig>
455var sniDictionary = new Dictionary<string, SniConfig>
508var sniDictionary = new Dictionary<string, SniConfig>
528var sniDictionary = new Dictionary<string, SniConfig>
552var sniDictionary = new Dictionary<string, SniConfig>
580var sniDictionary = new Dictionary<string, SniConfig>
611var sniDictionary = new Dictionary<string, SniConfig>
644var sniDictionary = new Dictionary<string, SniConfig>
674var sniDictionary = new Dictionary<string, SniConfig>
708var sniDictionary = new Dictionary<string, SniConfig>
737var sniDictionary = new Dictionary<string, SniConfig>
773var sniDictionary = new Dictionary<string, SniConfig>
954public override IDictionary<object, object> Items { get; set; } = new Dictionary<object, object>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (10)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.Tests (17)
WebApplicationTests.cs (17)
415builder.AddInMemoryCollection(new Dictionary<string, string>
423builder.AddInMemoryCollection(new Dictionary<string, string>
431builder.AddInMemoryCollection(new Dictionary<string, string>
439builder.AddInMemoryCollection(new Dictionary<string, string>
447builder.AddInMemoryCollection(new Dictionary<string, string>
455builder.AddInMemoryCollection(new Dictionary<string, string>
1082builder.AddInMemoryCollection(new Dictionary<string, string>
1123config.AddInMemoryCollection(new Dictionary<string, string>()
1132config.AddInMemoryCollection(new Dictionary<string, string>()
1145config.AddInMemoryCollection(new Dictionary<string, string>()
1182config.AddInMemoryCollection(new Dictionary<string, string>()
1192config.AddInMemoryCollection(new Dictionary<string, string>()
1201builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>()
1227config.AddInMemoryCollection(new Dictionary<string, string>()
1245builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>()
1522builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
2307builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build.Framework (21)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (54)
GenerateMSBuildEditorConfigTests.cs (31)
37ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
38ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
57ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
77ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
78ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
79ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
106ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/{f*i?le1}.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
107ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/f,ile#2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
108ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/f;i!le[3].cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
134ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
135ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
156ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" } });
176ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { });
177ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" } });
178ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "MetadataName", "ToRetrieve" } });
197ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
198ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
199ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
200ITaskItem item4 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "jkl012" } });
202ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
203ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } });
311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
339ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:\\file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
359ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
360ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
MapSourceRootTests.cs (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string>
43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
89new TaskItem(@"****/", new Dictionary<string, string>
93new TaskItem(@"****\|||:;\", new Dictionary<string, string>
161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string>
166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string>
250new TaskItem(path1, new Dictionary<string, string>
255new TaskItem(path2, new Dictionary<string, string>
293new TaskItem(path1, new Dictionary<string, string>
302new TaskItem(path1, new Dictionary<string, string>
311new TaskItem(path2, new Dictionary<string, string>
316new TaskItem(path2, new Dictionary<string, string>
365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
427new TaskItem(path1, new Dictionary<string, string>
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (67)
Emit\EditAndContinue\EmitBaseline.cs (15)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(),
177typesAdded: new Dictionary<Cci.ITypeDefinition, int>(),
178eventsAdded: new Dictionary<Cci.IEventDefinition, int>(),
179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(),
180methodsAdded: new Dictionary<Cci.IMethodDefinition, int>(),
181firstParamRowMap: new Dictionary<MethodDefinitionHandle, int>(),
182propertiesAdded: new Dictionary<Cci.IPropertyDefinition, int>(),
183eventMapAdded: new Dictionary<int, int>(),
184propertyMapAdded: new Dictionary<int, int>(),
185methodImplsAdded: new Dictionary<MethodImplKey, int>(),
186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(),
195methodsAddedOrChanged: new Dictionary<int, AddedOrChangedMethodInfo>(),
503var result = new Dictionary<int, int>();
518var result = new Dictionary<int, int>();
533var result = new Dictionary<MethodImplKey, int>();
MetadataReader\PEModule.cs (4)
50private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>();
51private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>();
676Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?>();
3876typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
Microsoft.CodeAnalysis.Analyzers (26)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
Microsoft.CodeAnalysis.BannedApiAnalyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.CodeStyle (13)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.CSharp (49)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
CommandLineTests.cs (28)
481var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>()
595patterns: new Dictionary<string, string[]>()
599recursivePatterns: new Dictionary<string, string[]>()
2426var expectedEmbeddedMap = new Dictionary<string, string>();
9862Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } }));
9866Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } }));
13923ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true);
13964ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true);
14005ValidateEmbeddedSources_Portable(new Dictionary<string, string>
14089ValidateWrittenSources(new()
14091{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { expectedFileName, generatedSource } } }
14115ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } });
14122ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } });
14152ValidateWrittenSources(new()
14154{ generator1Prefix, new() { { source1Name, source1 } } },
14155{ generator2Prefix, new() { { source2Name, source2 } } }
14191ValidateWrittenSources(new()
14193{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { generatedFileName, generatedSource } } }
14243ValidateWrittenSources(new()
14246{ Path.Combine(generatedDir.Path, "generator", "TestGenerator"), new() { { "generatedSource.cs", "//from version 2.0.0.0" } } }
14264ValidateWrittenSources(new() { { generatedDir.Path, new() } });
14308ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } });
14620ValidateWrittenSources(new()
14622{ generatorPrefix, new() { { "Generated.cs", generatedSource } } },
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
MoveToNamespace\MoveToNamespaceTests.cs (27)
106expectedSymbolChanges: new Dictionary<string, string>()
133expectedSymbolChanges: new Dictionary<string, string>()
160expectedSymbolChanges: new Dictionary<string, string>()
187expectedSymbolChanges: new Dictionary<string, string>()
215expectedSymbolChanges: new Dictionary<string, string>()
293expectedSymbolChanges: new Dictionary<string, string>()
361expectedSymbolChanges: new Dictionary<string, string>()
441expectedSymbolChanges: new Dictionary<string, string>()
467expectedSymbolChanges: new Dictionary<string, string>()
503expectedSymbolChanges: new Dictionary<string, string>()
541expectedSymbolChanges: new Dictionary<string, string>()
577expectedSymbolChanges: new Dictionary<string, string>()
615expectedSymbolChanges: new Dictionary<string, string>()
662expectedSymbolChanges: new Dictionary<string, string>()
709expectedSymbolChanges: new Dictionary<string, string>()
756expectedSymbolChanges: new Dictionary<string, string>()
803expectedSymbolChanges: new Dictionary<string, string>()
870expectedSymbolChanges: new Dictionary<string, string>()
927expectedSymbolChanges: new Dictionary<string, string>()
1048expectedSymbolChanges: new Dictionary<string, string>()
1105expectedSymbolChanges: new Dictionary<string, string>()
1162expectedSymbolChanges: new Dictionary<string, string>()
1259expectedSymbolChanges: new Dictionary<string, string>()
1307expectedSymbolChanges: new Dictionary<string, string>()
1480expectedSymbolChanges: new Dictionary<string, string>()
1524expectedSymbolChanges: new Dictionary<string, string>()
1554expectedSymbolChanges: new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Attributes\AttributeTests_MarshalAs.cs (21)
230var blobs = new Dictionary<string, byte[]>
327var blobs = new Dictionary<string, byte[]>
374var blobs = new Dictionary<string, byte[]>
461var blobs = new Dictionary<string, byte[]>
486var expectedBlobs = new Dictionary<string, byte[]>();
594var blobs = new Dictionary<string, byte[]>
632var expectedBlobs = new Dictionary<string, byte[]>();
760var blobs = new Dictionary<string, byte[]>
800var blobs = new Dictionary<string, byte[]>
832var cciBlobs = new Dictionary<string, byte[]>
913var blobs = new Dictionary<string, byte[]>
1032var blobs = new Dictionary<string, byte[]>
1140var blobs = new Dictionary<string, byte[]>()
1185var blobs = new Dictionary<string, byte[]>()
1220var blobs = new Dictionary<string, byte[]>()
1251CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1278CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1299CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1321CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1349CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1493CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>
Diagnostics\DiagnosticAnalyzerTests.cs (11)
316var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
331specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
343specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
458var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
530var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
539specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1140var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1282specificOptions = specificOptions ?? new Dictionary<string, ReportDiagnostic>();
1302var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } };
1323var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
1346var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Compilation\ReferenceManagerTests.cs (25)
871assemblyNames: new Dictionary<string, PortableExecutableReference> { { "Lib", r3 } },
872files: new Dictionary<string, PortableExecutableReference> { { p2, r2 }, { p3, r3 } }))
1368files: new Dictionary<string, PortableExecutableReference>()
2328new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>()
2357new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>()
2530var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2552var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2587var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2639var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2675var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2706var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>());
2722var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>());
2747var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2772var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2803var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2838var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2879var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2890var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2945var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
2956var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
3008var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
3054var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
3120var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
3184var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
3224var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Diagnostics\DiagnosticTest.cs (26)
575IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
619IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
679IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
730IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
786IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
842IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
900IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
958IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1017IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1087IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1158IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1223IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1276IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1330IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1380IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1431var warnings = new Dictionary<string, ReportDiagnostic>();
1487IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1504warnings = new Dictionary<string, ReportDiagnostic>();
1554IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1604IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1660IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1707IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1744IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1777IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1826var warnings = new Dictionary<string, ReportDiagnostic>();
2250var warnings = new Dictionary<string, ReportDiagnostic>();
LexicalAndXml\XmlDocCommentTests.cs (13)
1731VerifyXmlAttributes(xmlElement.StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1768VerifyXmlAttributes((firstComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
1771VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1814VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1849VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
1884VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
1919VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
1954VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
2065VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
2097VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
2131VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
2267new Dictionary<string, string>() { { "attr1", "a" }, { "attr2", "b" }, { "attr3", "test" } });
2309VerifyXmlAttributes(thirdLevelTrivia.StartTag.Attributes, new Dictionary<string, string>() { { "attr", "a" } });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>();
61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>();
68Compile = new Dictionary<string, ProjectAssetsTargetLibraryCompile>() { { Path.ChangeExtension(reference.ItemSpecification, "dll"), new ProjectAssetsTargetLibraryCompile() } },
74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } };
98Frameworks = new Dictionary<string, ProjectAssetsProjectFramework>() { { targetFramework, new ProjectAssetsProjectFramework() } }
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (45)
Copilot\ICopilotChangeAnalysisService.cs (10)
193var idToCount = new Dictionary<string, int>();
194var categoryToCount = new Dictionary<string, int>();
195var severityToCount = new Dictionary<DiagnosticSeverity, int>();
255var diagnosticIdToCount = new Dictionary<string, int>();
256var diagnosticIdToApplicationTime = new Dictionary<string, TimeSpan>();
257var diagnosticIdToProviderName = new Dictionary<string, HashSet<string>>();
258var providerNameToApplicationTime = new Dictionary<string, TimeSpan>();
259var providerNameToHasConflict = new Dictionary<string, bool>();
260var providerNameToTotalCount = new Dictionary<string, int>();
261var providerNameToSuccessCount = new Dictionary<string, int>();
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
25new()
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (5)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (21)
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.Test.Utilities (18)
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
140builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } });
151.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
Collections\ImmutableSegmentedDictionaryTest.cs (5)
80ImmutableSegmentedDictionary<int, string?> dictionary = new Dictionary<int, string?>
92IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "b" } };
115IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "B" } };
269ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
280ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
Microsoft.CodeAnalysis.VisualBasic (16)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (24)
Parser\ParseDirectives.vb (24)
2787Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
2793diagOptions = New Dictionary(Of String, ReportDiagnostic)
2827Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
2833diagOptions = New Dictionary(Of String, ReportDiagnostic)
2867Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
2873diagOptions = New Dictionary(Of String, ReportDiagnostic)
2907Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
2913diagOptions = New Dictionary(Of String, ReportDiagnostic)
2947Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
2955diagOptions = New Dictionary(Of String, ReportDiagnostic)
2992Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3000diagOptions = New Dictionary(Of String, ReportDiagnostic)
3038Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3045diagOptions = New Dictionary(Of String, ReportDiagnostic)
3081Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3088diagOptions = New Dictionary(Of String, ReportDiagnostic)
3130Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3137diagOptions = New Dictionary(Of String, ReportDiagnostic)
3220Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3226diagOptions = New Dictionary(Of String, ReportDiagnostic)
3262Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3270diagOptions = New Dictionary(Of String, ReportDiagnostic)
3327Dim diagOptions = New Dictionary(Of String, ReportDiagnostic)
3333diagOptions = New Dictionary(Of String, ReportDiagnostic)
Microsoft.CodeAnalysis.Workspaces (38)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (28)
Options\EditorConfigNamingStyleParserTests.cs (19)
21var dictionary = new Dictionary<string, string>()
69var dictionary = new Dictionary<string, string>()
90var dictionary = new Dictionary<string, string>()
132var dictionary = new Dictionary<string, string>()
149var dictionary = new Dictionary<string, string>()
197var dictionary = new Dictionary<string, string>()
239var dictionary = new Dictionary<string, string>()
282var dictionary = new Dictionary<string, string>()
321var dictionary = new Dictionary<string, string>()
346var rule = new Dictionary<string, string>()
377var rule = new Dictionary<string, string>()
397var charpRule = new Dictionary<string, string>()
405var vbRule = new Dictionary<string, string>()
426var rule = new Dictionary<string, string>()
483var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
519var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
555var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
580var dictionary = new Dictionary<string, string>()
649var dictionary = new Dictionary<string, string>()
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (9)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>();
55new Dictionary<KeyPair<CType, int>, ArrayType>();
58new Dictionary<KeyPair<CType, bool>, ParameterModifierType>();
61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>();
62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (3)
Microsoft.Data.Analysis.Interactive.Tests (1)
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.cs (7)
1120df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true);
1124ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false);
1129df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true);
1136ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false);
1144df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true);
1150ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false);
1172Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }),
22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }),
23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }),
24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }),
25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.Build.Manifest (3)
Microsoft.DotNet.Build.Manifest.Tests (20)
BuildModelFactoryTests.cs (20)
111new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
118new TaskItem(bopSnupkg, new Dictionary<string, string>
127new TaskItem(zipArtifact, new Dictionary<string, string>
133new TaskItem(localPackagePath, new Dictionary<string, string>()
141new TaskItem(pdbArtifact, new Dictionary<string, string>
232new TaskItem(localPackagePath, new Dictionary<string, string>()
285new TaskItem(zipArtifact, new Dictionary<string, string>
321new TaskItem(pdbArtifact, new Dictionary<string, string>
354new TaskItem(localPackagePath, new Dictionary<string, string>
391new TaskItem(localPackagePath, new Dictionary<string, string>
445new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
452new TaskItem(bopSnupkg, new Dictionary<string, string>
461new TaskItem(zipArtifact, new Dictionary<string, string>
467new TaskItem(localPackagePath, new Dictionary<string, string>()
475new TaskItem(pdbArtifact, new Dictionary<string, string>
592new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
603new TaskItem(zipArtifact, new Dictionary<string, string>
609new TaskItem(localPackagePath, new Dictionary<string, string>()
618new TaskItem(pdbArtifact, new Dictionary<string, string>
694new TaskItem("missingKindArtifact.nupkg", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Feed (11)
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
DownloadFileTests.cs (5)
70Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
139Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
215Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
340Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
414Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
PushToBuildStorageTests.cs (18)
46new TaskItem(PACKAGE_A, new Dictionary<string, string>
53new TaskItem(PACKAGE_B, new Dictionary<string, string>
59new TaskItem(BLOB_A, new Dictionary<string, string>
291new TaskItem(PDB_A, new Dictionary<string, string>
296new TaskItem(PDB_B, new Dictionary<string, string>
346new TaskItem(PDB_A, new Dictionary<string, string>
351new TaskItem(PDB_B, new Dictionary<string, string>
477new TaskItem(PACKAGE_A, new Dictionary<string, string>
482new TaskItem(PACKAGE_B, new Dictionary<string, string>
486new TaskItem(BLOB_A, new Dictionary<string, string>
492new TaskItem(PDB_A, new Dictionary<string, string>
593new TaskItem(PACKAGE_A, new Dictionary<string, string>
598new TaskItem(PACKAGE_B, new Dictionary<string, string>
602new TaskItem(BLOB_A, new Dictionary<string, string>
608new TaskItem(PDB_A, new Dictionary<string, string>
766new TaskItem(PDB_A, new Dictionary<string, string>
807new TaskItem(PDB_A, new Dictionary<string, string>
812new TaskItem(PDB_B, new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Packaging (30)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (9)
NugetPropertyStringProviderTests.cs (6)
18var expectedDictionary = new Dictionary<string, string>{ {"a", "b"} };
26var expectedDictionary = new Dictionary<string, string> { { "a", "=b=" } };
35var expectedDictionary = new Dictionary<string, string> { { "a", multiLineString } };
38expectedDictionary = new Dictionary<string, string> { { multiLineString, "b" } };
41expectedDictionary = new Dictionary<string, string> { { multiLineString, multiLineString } };
54var expectedDictionary = new Dictionary<string, string>();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }),
22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }),
23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character
24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character
25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads (15)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (6)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SignCheckLibrary (9)
Microsoft.DotNet.SignTool (14)
Microsoft.DotNet.SignTool.Tests (150)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XliffTasks.Tests (8)
Microsoft.DotNet.XUnitAssert.Tests (111)
CollectionAssertsTests.cs (60)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1306 var expected = new Dictionary<string, int>
1315 var actual = new Dictionary<string, int>
1340 var expected = new Dictionary<string, IEnumerable<string>>
1345 var actual = new Dictionary<string, IEnumerable<string>>
1358 var expected = new Dictionary<string, IEnumerable<string>>
1363 var actual = new Dictionary<string, IEnumerable<string>>
1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
1421 var expected = new Dictionary<string, object>()
1423 ["key"] = new Dictionary<string, object>()
1427 new Dictionary<string, object>()
1434 var actual = new Dictionary<string, object>()
1436 ["key"] = new Dictionary<string, object>()
1440 new Dictionary<string, object>()
1454 var expected = new Dictionary<string, object>()
1456 ["key"] = new Dictionary<string, object>()
1460 new Dictionary<string, object>()
1467 var actual = new Dictionary<string, object>()
1469 ["key"] = new Dictionary<string, object>()
1473 new Dictionary<string, object>()
1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1981 var expected = new Dictionary<string, int>
1990 var actual = new Dictionary<string, int>
2007 var expected = new Dictionary<string, IEnumerable<string>>
2012 var actual = new Dictionary<string, IEnumerable<string>>
2033 var expected = new Dictionary<string, IEnumerable<string>>
2038 var actual = new Dictionary<string, IEnumerable<string>>
2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
2088 var expected = new Dictionary<string, object>()
2090 ["key"] = new Dictionary<string, object>()
2094 new Dictionary<string, object>()
2101 var actual = new Dictionary<string, object>()
2103 ["key"] = new Dictionary<string, object>()
2107 new Dictionary<string, object>()
2129 var expected = new Dictionary<string, object>()
2131 ["key"] = new Dictionary<string, object>()
2135 new Dictionary<string, object>()
2142 var actual = new Dictionary<string, object>()
2144 ["key"] = new Dictionary<string, object>()
2148 new Dictionary<string, object>()
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1192 var expected = new Dictionary<string, int?> { { "two", null } };
1193 var actual = new Dictionary<string, int?> { { "two", null } };
1201 var expected = new Dictionary<string, int?> { { "two", null } };
1202 var actual = new Dictionary<string, int?> { { "two", 1 } };
3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3421 var expected = new Dictionary<string, int?> { { "two", null } };
3422 var actual = new Dictionary<string, int?> { { "two", null } };
3438 var expected = new Dictionary<string, int?> { { "two", null } };
3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (28)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 };
1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } };
1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } };
1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1185 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 42 } };
1186 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } };
1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } };
1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1245 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } };
1246 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1274 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } };
1275 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 };
1317 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } };
1318 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1334 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } };
1335 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 } };
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (17)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Safety (10)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.Ollama.Tests (2)
Microsoft.Extensions.AI.OpenAI.Tests (15)
OpenAIChatClientTests.cs (11)
175Assert.Equal(new Dictionary<string, long>
833Assert.Equal(new Dictionary<string, long>
930Assert.Equal(new Dictionary<string, long>
1028Assert.Equal(new Dictionary<string, long>
1140Assert.Equal(new Dictionary<string, long>
1153AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1224Assert.Equal(new Dictionary<string, long>
1333AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1340Assert.Equal(new Dictionary<string, long>
1481Assert.Equal(new Dictionary<string, long>
1596Assert.Equal(new Dictionary<string, long>
Microsoft.Extensions.AI.Tests (32)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
51Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?>
254new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }),
265Contents = [new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" })],
ChatCompletion\FunctionInvokingChatClientTests.cs (25)
90new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
92new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
122new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }),
123new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }),
133new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }),
181new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
182new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
225new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
226new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
259new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
261new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
457arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } }));
482new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
484new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
539new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
595new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
670new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] },
671new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] }
772new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]),
774new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]),
782new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]),
843new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }),
928new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
958new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }),
959new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }),
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
Microsoft.Extensions.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
26var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } };
81var inputMetadata = new Dictionary<string, string>
141var inputMetadata = new Dictionary<string, string>
201var inputMetadata = new Dictionary<string, string>
263var inputMetadata1 = new Dictionary<string, string>
267var inputMetadata2 = new Dictionary<string, string>
308var inputMetadata1 = new Dictionary<string, string>
313var inputMetadata2 = new Dictionary<string, string>
354var inputMetadata = new Dictionary<string, string>
418var inputMetadata = new Dictionary<string, string>
479var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
480var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } };
481var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (60)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
83var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
109var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
155var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
175var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
200var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
227var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
277var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
293var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
307var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
328var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
345var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
360var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
364var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (28)
87var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
111var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
146var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
161var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
177var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
188f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
204var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
230var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
273var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
290var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
308var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
323var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
349var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
364var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
390var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
404var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
420var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
439var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
460var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
477var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
494var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
512var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
528var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
545var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
559var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
563var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Http.Diagnostics.Tests (44)
Logging\AcceptanceTests.cs (10)
453options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } };
460options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } };
489options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } };
496options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } };
523options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } };
529options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } };
535options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test3", FakeTaxonomy.PrivateData } };
541options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test4", FakeTaxonomy.PrivateData } };
547options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test5", FakeTaxonomy.PrivateData } };
552options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test6", FakeTaxonomy.PrivateData } };
Logging\HttpClientLoggerTest.cs (12)
204ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } },
205RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } },
296ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
297RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
403ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
404RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
499ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
500RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
613ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
614RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
883ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
884RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpRequestReaderTest.cs (13)
61RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } },
62ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } },
187RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
188ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
261RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
262ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
335RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
392RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
393ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
463RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
464ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
530RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
531ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
Microsoft.Extensions.Http.Resilience.Tests (15)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (4)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (10)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (11)
YarpServiceDiscoveryTests.cs (11)
39var destinationConfigs = new Dictionary<string, DestinationConfig>
57var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
70var destinationConfigs = new Dictionary<string, DestinationConfig>
88var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
100var destinationConfigs = new Dictionary<string, DestinationConfig>
120var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
134var destinationConfigs = new Dictionary<string, DestinationConfig>
200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
218var destinationConfigs = new Dictionary<string, DestinationConfig>
244var destinationConfigs = new Dictionary<string, DestinationConfig>
293var destinationConfigs = new Dictionary<string, DestinationConfig>
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Microsoft.Extensions.Telemetry.Tests (27)
Http\HttpParserTests.cs (11)
21Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
38Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
57Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
77Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
123Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
155Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
226Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
280Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } };
347Dictionary<string, DataClassification> parametersToRedact = new()
391Dictionary<string, DataClassification> parametersToRedact = new()
437Dictionary<string, DataClassification> parametersToRedact = new()
Http\HttpRouteFormatterTests.cs (13)
20var parametersToRedact = new Dictionary<string, DataClassification>();
93Dictionary<string, DataClassification> parametersToRedact = new()
136Dictionary<string, DataClassification> parametersToRedact = new()
157Dictionary<string, DataClassification> parametersToRedact = new()
218Dictionary<string, DataClassification> parametersToRedact = new()
239Dictionary<string, DataClassification> parametersToRedact = new()
257Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
324Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
353Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
373Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } };
415Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
435Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
451Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
Microsoft.Extensions.Validation.Tests (15)
ValidatableTypeInfoTests.cs (12)
40var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
141ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
193ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
258ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
309ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
340var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
392ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
427ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
474ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
515ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
543ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
565context.ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (42)
LogPropertiesTests.cs (14)
33P7 = new Dictionary<string, int>
231var expectedState = new Dictionary<string, string?>
305var expectedState = new Dictionary<string, string?>
325var expectedState = new Dictionary<string, string?>
345var expectedState = new Dictionary<string, string?>
368var expectedState = new Dictionary<string, string?>
392var expectedState = new Dictionary<string, string?>
422var expectedState = new Dictionary<string, string?>
451var expectedState = new Dictionary<string, string?>
477var expectedState = new Dictionary<string, string?>
504var expectedState = new Dictionary<string, string?>
528var expectedState = new Dictionary<string, string?>
553var expectedState = new Dictionary<string, string?>
579var expectedState = new Dictionary<string, string?>
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?>
60var expectedState = new Dictionary<string, string?>
87var expectedState = new Dictionary<string, string?>
110var expectedState = new Dictionary<string, string?>
142var expectedState = new Dictionary<string, string?>
211var expectedState = new Dictionary<string, string?>
230var expectedState = new Dictionary<string, string?>
250var expectedState = new Dictionary<string, string?>
272var expectedState = new Dictionary<string, string?>
293var expectedState = new Dictionary<string, string?>
313var expectedState = new Dictionary<string, string?>
334var expectedState = new Dictionary<string, string?>
361var expectedState = new Dictionary<string, string?>
399var expectedState = new Dictionary<string, string?>
424var expectedState = new Dictionary<string, string?>
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (6)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (2)
Microsoft.JSInterop.Tests (2)
Microsoft.Maui (9)
Microsoft.Maui.Controls (27)
Microsoft.Maui.Controls.Build.Tasks (14)
XamlCache.cs (7)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new();
15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new();
16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new();
17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new();
18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new();
19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new();
20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (6)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Resizetizer (3)
Microsoft.ML.AutoML (21)
Microsoft.ML.AutoML.Tests (9)
Microsoft.ML.CodeGenerator (15)
CodeGenerator\CSharp\TrainerGenerators.cs (13)
24new Dictionary<string, string>()
95new Dictionary<string, string>()
126new Dictionary<string, string>()
238new Dictionary<string, string>()
265new Dictionary<string, string>()
324new Dictionary<string, string>()
358new Dictionary<string, string>()
388new Dictionary<string, string>()
418new Dictionary<string, string>()
489new Dictionary<string, string>()
522new Dictionary<string, string>()
600new Dictionary<string, string>();
619new Dictionary<string, string>()
Microsoft.ML.CodeGenerator.Tests (65)
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>()
58var elementProperties = new Dictionary<string, object>()
79var elementProperties = new Dictionary<string, object>()
102var elementProperties = new Dictionary<string, object>();
119var elementProperties = new Dictionary<string, object>()
139var elementProperties = new Dictionary<string, object>();
156var elementProperties = new Dictionary<string, object>()
176var elementProperties = new Dictionary<string, object>();
193var elementProperties = new Dictionary<string, object>()
213var elementProperties = new Dictionary<string, object>();
230var elementProperties = new Dictionary<string, object>()
250var elementProperties = new Dictionary<string, object>();
267var elementProperties = new Dictionary<string, object>()
286var elementProperties = new Dictionary<string, object>();
300var elementProperties = new Dictionary<string, object>()
327var elementProperties = new Dictionary<string, object>();
344var elementProperties = new Dictionary<string, object>()
364var elementProperties = new Dictionary<string, object>();
381var elementProperties = new Dictionary<string, object>()
401var elementProperties = new Dictionary<string, object>();
418var elementProperties = new Dictionary<string, object>()
438var elementProperties = new Dictionary<string, object>();
455var elementProperties = new Dictionary<string, object>()
475var elementProperties = new Dictionary<string, object>();
492var elementProperties = new Dictionary<string, object>()
512var elementProperties = new Dictionary<string, object>();
529var elementProperties = new Dictionary<string, object>()
550var elementProperties = new Dictionary<string, object>();
567var elementProperties = new Dictionary<string, object>()
588var elementProperties = new Dictionary<string, object>();
605var elementProperties = new Dictionary<string, object>()
626var elementProperties = new Dictionary<string, object>();
643var elementProperties = new Dictionary<string, object>()
664var elementProperties = new Dictionary<string, object>();
680var elementProperties = new Dictionary<string, object>()
701var elementProperties = new Dictionary<string, object>();
718var elementProperties = new Dictionary<string, object>()
739var elementProperties = new Dictionary<string, object>();
756var elementProperties = new Dictionary<string, object>()
774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical
39var elementProperties = new Dictionary<string, object>();//categorical
53var elementProperties = new Dictionary<string, object>();
67var elementProperties = new Dictionary<string, object>();
81var elementProperties = new Dictionary<string, object>();//nume to num feature 2
95var elementProperties = new Dictionary<string, object>();
109var elementProperties = new Dictionary<string, object>();//numeric feature
123var elementProperties = new Dictionary<string, object>();
137var elementProperties = new Dictionary<string, object>();
151var elementProperties = new Dictionary<string, object>();
165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (12)
Microsoft.ML.Core.Tests (5)
Microsoft.ML.CpuMath.UnitTests (2)
Microsoft.ML.Data (58)
Data\Conversion.cs (8)
105_delegatesStd = new Dictionary<(Type src, Type dst), Delegate>();
106_delegatesAll = new Dictionary<(Type src, Type dst), Delegate>();
107_isNADelegates = new Dictionary<Type, Delegate>();
108_hasNADelegates = new Dictionary<Type, Delegate>();
109_isDefaultDelegates = new Dictionary<Type, Delegate>();
110_hasZeroDelegates = new Dictionary<Type, Delegate>();
111_getNADelegates = new Dictionary<Type, Delegate>();
112_tryParseDelegates = new Dictionary<Type, Delegate>();
Microsoft.ML.DataView (2)
Microsoft.ML.EntryPoints (41)
CrossValidationMacro.cs (13)
179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
180var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
185var outputMap = new Dictionary<string, string>();
208var mapping = new Dictionary<string, string>();
239inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
240inputMap = new Dictionary<ParameterBinding, VariableBinding>();
247outputMap = new Dictionary<string, string>();
255inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
256inputMap = new Dictionary<ParameterBinding, VariableBinding>();
266outputMap = new Dictionary<string, string>();
318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>();
319var combineInputMap = new Dictionary<ParameterBinding, VariableBinding>();
337var combineOutputMap = new Dictionary<string, string>();
TrainTestMacro.cs (15)
168inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
169inputMap = new Dictionary<ParameterBinding, VariableBinding>();
179outputMap = new Dictionary<string, string>();
191inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
192inputMap = new Dictionary<ParameterBinding, VariableBinding>();
203outputMap = new Dictionary<string, string>();
225inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
226inputMap = new Dictionary<ParameterBinding, VariableBinding>();
237outputMap = new Dictionary<string, string>();
248inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
249inputMap = new Dictionary<ParameterBinding, VariableBinding>();
255outputMap = new Dictionary<string, string>();
270inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
271inputMap = new Dictionary<ParameterBinding, VariableBinding>();
277outputMap = new Dictionary<string, string>();
Microsoft.ML.Fairlearn (4)
Microsoft.ML.FastTree (10)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.GenAI.Core.Tests (2)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (3)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.LightGbm (6)
Microsoft.ML.NugetPackageVersionUpdater (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.OnnxTransformerTest (9)
Microsoft.ML.ResultProcessor (9)
ResultProcessor.cs (9)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>();
70SameHeaderValues = new Dictionary<string, object>();
162return new Dictionary<string, string>();
792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>();
890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>();
892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>();
927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>();
938metricDict = new Dictionary<int, float>();
985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
Microsoft.ML.Samples (27)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (10)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
48Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
54Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
60Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
66Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
72Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
78Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
84Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
90Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (13)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object>
56Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
62Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
68Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
74Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
80Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
86Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
92Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
98Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
104Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
110Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
116Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (5)
Microsoft.ML.Sweeper (3)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.Tests (94)
OnnxConversionTest.cs (92)
1247pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, int> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1248pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, long> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1249pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, short> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1250pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, uint> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1251pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ushort> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1252pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ulong> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1253pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, string> { { 3, "True" }, { 23, "False" } }, "Keys", treatValuesAsKeyType));
1254pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, float> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1255pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, double> { { 3, 698 }, { 23, 7908 } }, "Keys", treatValuesAsKeyType));
1256pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, bool> { { 3, false }, { 23, true } }, "Keys", treatValuesAsKeyType));
1260pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1261pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1262pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1263pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1264pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1265pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, float> { { 3, 6 }, { 23, 46 } }, "Keys"));
1266pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, long> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1267pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, double> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1268pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, bool> { { 3, true }, { 23, false } }, "Keys"));
1272pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, int> { { true, 6 }, { false, 46 } }, "Keys"));
1273pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, short> { { true, 6 }, { false, 46 } }, "Keys"));
1274pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, uint> { { true, 6 }, { false, 46 } }, "Keys"));
1275pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ushort> { { true, 6 }, { false, 46 } }, "Keys"));
1276pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ulong> { { true, 6 }, { false, 46 } }, "Keys"));
1277pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, string> { { true, "True" }, { false, "False" } }, "Keys"));
1278pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, float> { { true, 6 }, { false, 46 } }, "Keys"));
1279pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, long> { { true, 698 }, { false, 7908 } }, "Keys"));
1280pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, double> { { true, 698 }, { false, 7908 } }, "Keys"));
1281pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, bool> { { false, true }, { true, false } }, "Keys"));
1285pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, int> { { "3", 3 }, { "23", 23 } }, "Keys"));
1286pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, short> { { "3", 3 }, { "23", 23 } }, "Keys"));
1287pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, uint> { { "3", 6 }, { "23", 46 } }, "Keys"));
1288pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ushort> { { "3", 6 }, { "23", 46 } }, "Keys"));
1289pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ulong> { { "3", 6 }, { "23", 46 } }, "Keys"));
1290pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, float> { { "3", 6 }, { "23", 23 } }, "Keys"));
1291pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, double> { { "3", 6 }, { "23", 23 } }, "Keys"));
1292pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, long> { { "3", 3 }, { "23", 23 } }, "Keys"));
1293pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, bool> { { "3", true }, { "23", false } }, "Keys"));
1297pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1298pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1299pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1300pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1301pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1302pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1303pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1304pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1305pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1309pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1310pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1311pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1312pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1313pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1314pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1315pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1316pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1317pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1321pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1322pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1323pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1324pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1325pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1326pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1327pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1328pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1329pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1333pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1334pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1335pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1336pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1337pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1338pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1339pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1340pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1341pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1345pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1346pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1347pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1348pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1349pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1350pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1351pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1352pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1353pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1357pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1358pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1359pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1360pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1361pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1362pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1363pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1364pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1365pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
Microsoft.ML.TimeSeries (9)
Microsoft.ML.TimeSeries.Tests (30)
TimeSeriesDirectApi.cs (30)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
1015expectedDim = new Dictionary<string, Object>();
1047Dictionary<string, object> expectedDim = new Dictionary<string, object>
1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
1164Dictionary<string, Object> dim = new Dictionary<string, Object>();
1197Dictionary<string, int> expectedDim = new Dictionary<string, int>
1231Dictionary<string, object> dic1 = new Dictionary<string, object>();
1237Dictionary<string, object> dic2 = new Dictionary<string, object>();
1243Dictionary<string, object> dic3 = new Dictionary<string, object>();
1249Dictionary<string, object> dic4 = new Dictionary<string, object>();
1255Dictionary<string, object> dic5 = new Dictionary<string, object>();
1261Dictionary<string, object> dic6 = new Dictionary<string, object>();
1267Dictionary<string, object> dic7 = new Dictionary<string, object>();
1273Dictionary<string, object> dic8 = new Dictionary<string, object>();
1279Dictionary<string, object> dic9 = new Dictionary<string, object>();
1285Dictionary<string, object> dic10 = new Dictionary<string, object>();
1291Dictionary<string, object> dic11 = new Dictionary<string, object>();
1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (25)
Model\TiktokenTokenizer.cs (7)
1138new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 },
1141new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } },
1145return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName);
1148return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName);
1151return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName);
1154return (new Dictionary<string, int>
1158return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Microsoft.ML.Tokenizers.Tests (18)
BpeTests.cs (13)
27new Dictionary<string, int>() { { UnknownToken, 0 }, { "!", 5 }, { ",", 6 }, { ".", 7 }, { "B", 8 }, { "H", 9 }, { "T", 10 }, { "W", 11 }, { "a", 12 }, { "b", 13 }, { "c", 14 }, { "d", 15 }, { "e", 16 },
53new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
68new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
83new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
98new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
113new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
128new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} },
143new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } },
158new Dictionary<string, int>(){ { UnknownToken, 0} },
173new Dictionary<string, int>(){ { UnknownToken, 0} },
188new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 },
512IReadOnlyDictionary<string, int> specialTokens = new Dictionary<string, int>()
1004Dictionary<string, int> specialTokens = new Dictionary<string, int>();
Microsoft.ML.TorchSharp (10)
Microsoft.ML.Transforms (18)
Microsoft.ML.Vision (4)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
MinimalSample (2)
OpenIdConnectSample (1)
PresentationBuildTasks (17)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>();
909_knownNamespaces = new Dictionary<string, object>();
1835_ignorables = new Dictionary<string, object>();
1845_processContents = new Dictionary<string, ProcessContentSet>();
1862_preserveElements = new Dictionary<string, PreserveItemSet>();
1879_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2050_names = new Dictionary<string, string>();
2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (32)
PresentationFramework (85)
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
490Dictionary<string, string> writtenAttributes = new Dictionary<string, string>();
1390_uriToPrefix = new Dictionary<string, string>();
1392_prefixToUri = new Dictionary<string, string>();
1550private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>();
1551private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>();
1564namespaceToUri = new Dictionary<string, string>();
PresentationUI (8)
Publishers.AppHost (1)
RazorBuildWebSite (1)
ReachFramework (71)
packaging\XpsDigitalSignature.cs (5)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>();
315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>();
364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>();
380relHash = new Dictionary<string, int>();
422_optionalSignedTypes = new Dictionary<string, string>();
Roslyn.Diagnostics.Analyzers (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (13)
Services\SolutionServiceTests.cs (11)
546var map = new Dictionary<Checksum, object>();
587var map = new Dictionary<Checksum, object>();
629var map = new Dictionary<Checksum, object>();
662var map = new Dictionary<Checksum, object>();
704var map = new Dictionary<Checksum, object>();
744var map = new Dictionary<Checksum, object>();
782var map = new Dictionary<Checksum, object>();
815var map = new Dictionary<Checksum, object>();
870var map = new Dictionary<Checksum, object>();
939var map = new Dictionary<Checksum, object>();
1274var map = new Dictionary<Checksum, object>();
RunTests (2)
Sample (3)
Endpoints\MapSchemasEndpoints.cs (2)
28schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } });
29schemas.MapGet("/frozen-dictionary-of-ints", () => ImmutableDictionary.CreateRange(new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }));
ScenarioTests.Common.Tests (1)
Shared (2)
Shared.Tests (5)
SimpleWebSite (1)
SocialSample (1)
SocialWeather (2)
Sockets.FunctionalTests (1)
Swaggatherer (1)
System.CodeDom (1)
System.ComponentModel.Annotations (4)
System.ComponentModel.Composition (20)
System.ComponentModel.Composition.Registration (3)
System.ComponentModel.TypeConverter (5)
System.Composition.Convention (3)
System.Composition.Hosting (3)
System.Composition.Runtime (1)
System.Composition.TypedParts (10)
System.Configuration.ConfigurationManager (1)
System.Data.Common (5)
System.Data.Odbc (3)
System.Diagnostics.DiagnosticSource (4)
System.Drawing.Common.Tests (1)
System.Formats.Nrbf (1)
System.Formats.Tar (4)
System.IO.FileSystem.Watcher (1)
System.IO.Packaging (11)
System\IO\Packaging\XmlCompatibilityReader.cs (9)
820_subsumingNamespaces ??= new Dictionary<string, object?>();
846_knownNamespaces ??= new Dictionary<string, object?>();
1647_ignorables ??= new Dictionary<string, object?>();
1653_processContents ??= new Dictionary<string, ProcessContentSet>();
1665_preserveElements ??= new Dictionary<string, PreserveItemSet>();
1677_preserveAttributes ??= new Dictionary<string, PreserveItemSet>();
1833private readonly Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
1835private readonly Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
1836private readonly Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System.Linq.Expressions (25)
System.Linq.Queryable (2)
System.Net.HttpListener (5)
System.Net.Mail (7)
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (13)
2687commandArgs.Arguments ??= new Dictionary<string, string?>();
3172eventData = new Dictionary<int, EventMetadata>();
3664eventsByName ??= new Dictionary<string, string>();
3914private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>();
3916private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
4524Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
5338opcodeTab = new Dictionary<int, string>();
5339stringTab = new Dictionary<string, string>();
5341perEventByteArrayArgIndices = new Dictionary<string, List<int>>();
5377taskTab ??= new Dictionary<int, string>();
5400keywordTab ??= new Dictionary<ulong, string>();
5544mapsTab ??= new Dictionary<string, Type>();
5942taskTab ??= new Dictionary<int, string>();
System.Private.CoreLib.Generators (4)
System.Private.DataContractSerialization (33)
System.Private.Xml (73)
System\Xml\Schema\SchemaInfo.cs (8)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>();
39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>();
42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
74_generalEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>();
77_parameterEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>();
101_notations ??= new Dictionary<string, SchemaNotation>();
System\Xml\Xsl\Xslt\Compiler.cs (5)
54public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>();
55public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>();
56public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>();
57public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>();
59private readonly Dictionary<string, int> _moduleOrder = new Dictionary<string, int>();
System.Reflection.DispatchProxy (4)
System.Reflection.Emit (7)
System.Reflection.Metadata (7)
System.Runtime.Caching (3)
System.Runtime.Serialization.Formatters (1)
System.Runtime.Serialization.Schema (6)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
47_namespaces = new Dictionary<string, string>();
226ExportClassDataContractHierarchy(dataContract.XmlName, dataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object?>());
927return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>());
987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>());
1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.Claims (2)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (11)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives.Tests (2)
System.ServiceModel.Syndication (4)
System.Text.Encoding.CodePages (4)
System.Text.Json (8)
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (15)
System.Text.RegularExpressions.Generator (6)
System.Threading.Tasks.Dataflow (3)
System.Windows.Controls.Ribbon (8)
System.Windows.Forms (2)
System.Windows.Forms.Analyzers.CSharp.Tests (7)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (54)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (42)
System.Windows.Input.Manipulations (1)
System.Xaml (38)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>();
909_knownNamespaces = new Dictionary<string, object>();
1835_ignorables = new Dictionary<string, object>();
1845_processContents = new Dictionary<string, ProcessContentSet>();
1862_preserveElements = new Dictionary<string, PreserveItemSet>();
1879_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2050_names = new Dictionary<string, string>();
2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System.Xaml.Tests (15)
TagHelpersWebSite (3)
TaskUsageLogger (4)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (4)
Test.Utilities (10)
Text.Analyzers (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
UnitTests.Common (1)
VBCSCompiler.UnitTests (30)
CompilerServerTests.cs (30)
129var resetVariables = new Dictionary<string, string>();
329var files = new Dictionary<string, string> { { "hello.cs", "♕" } };
471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } };
486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } };
544new Dictionary<string, string> {
572new Dictionary<string, string> {
638new Dictionary<string, string> {
680new Dictionary<string, string> {
710new Dictionary<string, string> {
740new Dictionary<string, string> {
761files = new Dictionary<string, string> {
780files = new Dictionary<string, string> {
798new Dictionary<string, string> {
818files = new Dictionary<string, string> {
860new Dictionary<string, string> {
876files = new Dictionary<string, string> {
896files = new Dictionary<string, string> {
913new Dictionary<string, string> {
932files = new Dictionary<string, string> {
1000var filesInDirectory = new Dictionary<string, string>()
1051new Dictionary<string, string> {
1072files = new Dictionary<string, string> {
1081additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1100new Dictionary<string, string> {
1123files = new Dictionary<string, string> {
1133additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1251new Dictionary<string, string> {
1274files = new Dictionary<string, string> {
1403additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
1437additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
WindowsBase.Tests (30)
System\Windows\DependencyPropertyTests.cs (24)
64yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
116yield return new object?[] { "Register_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 };
176yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
375yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
429yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
489yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
651yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
707yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 };
771yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
944yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
1002yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 1 };
1066yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
WindowsFormsIntegration (4)
WinFormsControlsTest (1)
XmlFileLogger (1)
xunit.assert (4)
xunit.console (3)
Xunit.NetCore.Extensions (3)