5988 references to Dictionary
AnalyzerRunner (5)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (17)
Aspire.Dashboard.Tests (17)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (24)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Tests (7)
Aspire.Hosting.Dapr (1)
Aspire.Hosting.Dapr.Tests (2)
Aspire.Hosting.MySql.Tests (5)
Aspire.Hosting.PostgreSQL.Tests (4)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Redis.Tests (7)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (27)
Aspire.Hosting.Valkey.Tests (3)
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
153resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } },
161resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
166resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } },
179resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }),
181resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
188resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } },
194resourceEndpoints: new() {
203resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
208resourceEndpoints: new() {
222resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } },
229resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } },
235resourceEndpoints: new() { { "api", ["/alive", "/health"] } },
242resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
248resourceEndpoints: new() {
Aspire.Workload.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)
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)
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 (64)
Linker\Annotations.cs (11)
49 protected readonly Dictionary<AssemblyDefinition, AssemblyAction> assembly_actions = new Dictionary<AssemblyDefinition, AssemblyAction> ();
55 protected readonly Dictionary<IMetadataTokenProvider, MessageOrigin> marked_pending = new Dictionary<IMetadataTokenProvider, MessageOrigin> ();
57 protected readonly Dictionary<TypeDefinition, (TypePreserve preserve, bool applied)> preserved_types = new Dictionary<TypeDefinition, (TypePreserve, bool)> ();
59 protected readonly Dictionary<TypeDefinition, TypePreserveMembers> preserved_type_members = new ();
60 protected readonly Dictionary<ExportedType, TypePreserveMembers> preserved_exportedtype_members = new ();
61 protected readonly Dictionary<IMemberDefinition, List<MethodDefinition>> preserved_methods = new Dictionary<IMemberDefinition, List<MethodDefinition>> ();
64 protected readonly Dictionary<AssemblyDefinition, ISymbolReader> symbol_readers = new Dictionary<AssemblyDefinition, ISymbolReader> ();
65 readonly Dictionary<IMemberDefinition, LinkerAttributesInformation> linker_attributes = new Dictionary<IMemberDefinition, LinkerAttributesInformation> ();
66 readonly Dictionary<object, Dictionary<IMetadataTokenProvider, object>> custom_annotations = new Dictionary<object, Dictionary<IMetadataTokenProvider, object>> ();
67 protected readonly Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> resources_to_remove = new Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> ();
552 slots = new Dictionary<IMetadataTokenProvider, object> ();
ILLink.RoslynAnalyzer (16)
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94 readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string> ();
95 readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string> ();
96 readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers> ();
97 readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new ();
199 featureSwitchMembers.Add (currentFeatureSwitch.Value, new Dictionary<string, ClassMembers> ());
Infrastructure.Common (1)
InMemory.FunctionalTests (6)
InProcessWebSite (1)
Interop.FunctionalTests (1)
KeyManagementSimulator (1)
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 (14)
Microsoft.AspNetCore.Components.Endpoints.Tests (147)
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 (20)
120ParameterView.FromDictionary(new Dictionary<string, object>
157ParameterView.FromDictionary(new Dictionary<string, object>
192ParameterView.FromDictionary(new Dictionary<string, object>
241ParameterView.FromDictionary(new Dictionary<string, object>
379var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
437var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
454var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
493var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
532var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
583var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
632var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
649var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
701ParameterView.FromDictionary(new Dictionary<string, object>
721ParameterView.FromDictionary(new Dictionary<string, object>
741ParameterView.FromDictionary(new Dictionary<string, object>
773ParameterView.FromDictionary(new Dictionary<string, object>
801ParameterView.FromDictionary(new Dictionary<string, object>
862ParameterView.FromDictionary(new Dictionary<string, object>
1462ParameterView.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 (3)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (5)
Microsoft.AspNetCore.Components.Server.Tests (27)
Circuits\CircuitHostTest.cs (8)
422Dictionary<string, object> parameters = new()
448Dictionary<string, object> parameters = new()
473Dictionary<string, object> parameters = new()
499await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
506Dictionary<string, object> parameters = new()
538await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
543Dictionary<string, object> parameters = new()
573Dictionary<string, object> parameters = new()
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 (126)
Lifetime\ComponentApplicationStateTest.cs (14)
14var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
15var existingState = new Dictionary<string, byte[]>
32var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
33var existingState = new Dictionary<string, byte[]>
48var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
49var existingState = new Dictionary<string, byte[]>
67var currentState = new Dictionary<string, byte[]>();
86var currentState = new Dictionary<string, byte[]>();
103var currentState = new Dictionary<string, byte[]>();
122var currentState = new Dictionary<string, byte[]>();
142var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
143var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
160var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
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 (2)
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)
54var routeParameterDescriptors = new Dictionary<string, RouteParameter>
98var routeParameterDescriptors = new Dictionary<string, RouteParameter>
132var routeParameterDescriptors = new Dictionary<string, RouteParameter>
205httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
243httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
290httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
340httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
390httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
440httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
490httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
524httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
552httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
583httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
619httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
650httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
676httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
703httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1325httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1492httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1520httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1603httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1620httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1664httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1759httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1793httpContext.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 (29)
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>();
3699var values = new Dictionary<string, StringValues>();
3736var 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 (1)
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.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 (18)
Services\OpenApiDocumentService.cs (9)
242var operations = new Dictionary<OperationType, OpenApiOperation>();
246operation.Annotations ??= new Dictionary<string, object>();
362Content = new Dictionary<string, OpenApiMediaType>()
499Content = new Dictionary<string, OpenApiMediaType>()
502var schema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() };
536Properties = new Dictionary<string, OpenApiSchema>
572Properties = new Dictionary<string, OpenApiSchema>
600var propertySchema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() };
655Content = new Dictionary<string, OpenApiMediaType>(),
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
Microsoft.AspNetCore.OpenApi.Tests (25)
Comparers\OpenApiSchemaComparerTests.cs (15)
50[new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, true],
51[new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "integer" } } }, false],
64[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, true],
65[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") } }, false],
66[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key2"] = new OpenApiString("value") } }, false],
118Extensions = new Dictionary<string, IOpenApiExtension>
139Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema() },
147Annotations = new Dictionary<string, object> { ["key"] = "value" }
194modifiedSchema = new(originalSchema) { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") } };
266modifiedSchema = new(originalSchema) { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "integer" } } };
Extensions\OpenApiSchemaExtensionsTests.cs (8)
28Extensions = new Dictionary<string, IOpenApiExtension>
49Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Items = new OpenApiSchema() }, },
57Annotations = new Dictionary<string, object> { ["x-schema-id"] = "value" }
116originalSchema.Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") };
270Properties = new Dictionary<string, OpenApiSchema>
276Properties = new Dictionary<string, OpenApiSchema>
298Properties = new Dictionary<string, OpenApiSchema>
317Properties = new Dictionary<string, OpenApiSchema>
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (2)
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>
942public 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 (2)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build (92)
Microsoft.Build.BuildCheck.UnitTests (26)
Microsoft.Build.CommandLine.UnitTests (9)
TerminalLogger_Tests.cs (6)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>())
511new Dictionary<string, string?>() { { "displayName", "testName1" }, { "localizedResult", "passed" } }));
516new Dictionary<string, string?>() { { "displayName", "testName2" }, { "localizedResult", "skipped" } }));
521new Dictionary<string, string?>() { { "total", "10" }, { "passed", "7" }, { "skipped", "2" }, { "failed", "1" } }));
685pse.GlobalProperties = new Dictionary<string, string>() { ["TargetFramework"] = "tfName" };
698pse2.GlobalProperties = new Dictionary<string, string>() { ["TargetFramework"] = "tf2" };
Microsoft.Build.Engine.OM.UnitTests (75)
Definition\Project_Tests.cs (5)
1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
Definition\ProjectItem_Tests.cs (52)
1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2725new Dictionary<string, string>
2735new Dictionary<string, string>
2762var expectedInitial = new Dictionary<string, string>
2767var expectedUpdateFromTrue = new Dictionary<string, string>
2804var expectedInitial = new Dictionary<string, string>
2809var expectedUpdateFromUnconditionedElement = new Dictionary<string, string>
2837var expectedUpdate = new Dictionary<string, string>
2873Dictionary<string, string> expectedUpdatei = new Dictionary<string, string>
2877Dictionary<string, string> expectedUpdatej = new Dictionary<string, string>
2944var expectedMetadata = new Dictionary<string, string>
2974var expectedMetadata = new Dictionary<string, string>
3028var expectedMetadataX = new Dictionary<string, string>
3033var expectedMetadataA = new Dictionary<string, string>
3040var expectedMetadataB = new Dictionary<string, string>
3074var expectedMetadataA = new Dictionary<string, string>
3081var expectedMetadataB = new Dictionary<string, string>
3088var expectedMetadataC = new Dictionary<string, string>
3140? new Dictionary<string, string>
3144: new Dictionary<string, string>
3168var expectedMetadataA = new Dictionary<string, string>
3187var expectedMetadataA = new Dictionary<string, string>
3214var expectedMetadataA = new Dictionary<string, string>
3254var expectedMetadataX = new Dictionary<string, string>
3262var expectedMetadata2 = new Dictionary<string, string>
3270var expectedMetadataCCC = new Dictionary<string, string>
3278var expectedMetadata1 = new Dictionary<string, string>
3287var expectedMetadataD = new Dictionary<string, string>
3295var expectedMetadataY = new Dictionary<string, string>
3345var expectedMetadataB = new Dictionary<string, string>
3350var expectedMetadataA = new Dictionary<string, string>()
3355var expectedMetadataC = new Dictionary<string, string>();
3410var expectedInitialMetadata = new Dictionary<string, string>
3416var expectedUpdatedMetadata = new Dictionary<string, string>
3452var expected_i1 = new Dictionary<string, string>
3458var expected_i2_a = new Dictionary<string, string>
3464var expected_i2_y = new Dictionary<string, string>
3501var expectedInitial = new Dictionary<string, string>
3507var expectedUpdated = new Dictionary<string, string>
3536var expectedUpdated = new Dictionary<string, string>
3551new Dictionary<string, string> {{"m", "contents"}},
3552new Dictionary<string, string> {{"m", "updated"}}
3620new Dictionary<string, string> {{"m", "contents"}},
3621new Dictionary<string, string> {{"m", "contents"}},
3622new Dictionary<string, string> {{"m", "contents"}},
3623new Dictionary<string, string> {{"m", "updated"}}
3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
3689var expectedUpdated = new Dictionary<string, string>
3756var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Microsoft.Build.Engine.UnitTests (473)
BackEnd\AssemblyTaskFactory_Tests.cs (7)
59taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
71taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
83taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
95taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
109taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
123taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BuildManager_Tests.cs (41)
179new Dictionary<int, int[]>
202new Dictionary<string, string>(),
497ItemFilters = new Dictionary<string, List<string>>
651var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
704var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
774var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
834var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
901var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
932var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
1099BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1109GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1119BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1129GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1153var globalProperties = new Dictionary<string, string>();
1218BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1231GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1247new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1881var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
2412var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2473var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2531var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2579var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2668var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices());
2738var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2835var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2935var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3021var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3090var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3375var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services);
3383data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services);
3514BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services);
3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3800new Dictionary<string, string>(),
3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion,
3957new Dictionary<string, string>(),
4046var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null);
4102var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4103var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4345var graph = Helpers.CreateProjectGraph(env: _env, dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } });
4354new Dictionary<string, string>() { {"property1", "value1" } }) },
BackEnd\BuildRequestConfiguration_Tests.cs (19)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
173Dictionary<string, string> props = new Dictionary<string, string>();
182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
196BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0");
206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0");
BackEnd\BuildRequestEngine_Tests.cs (5)
337BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
368BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
396BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
449BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
455BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (10)
24BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
45BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
93BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
115BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
145BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
182BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
198BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
215BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
239BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
259BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
78configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
79configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
100configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
129configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
151configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
159configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
195configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
213configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
214configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
225configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13"));
226configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path4", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "g", "h" }, null), "13"));
BackEnd\CacheSerialization_Tests.cs (3)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1", "target2" }, null),
32new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
36new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigCache_Tests.cs (6)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null),
37new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
46new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
74new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null),
78new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
82new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigurationMetadata_Tests.cs (5)
62BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
118data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (4)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true);
48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (3)
3958BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
3993var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\NodePackets_Tests.cs (7)
80BuildSubmissionStartedEventArgs buildSubmissionStarted = new(new Dictionary<string, string> { { "Value1", "Value2" } }, ["Path1"], ["TargetName"], BuildRequestDataFlags.ReplaceExistingProjectInstance, 123);
173return new Dictionary<string, string>
293ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
299ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
305ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
311ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
317ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
BackEnd\Scheduler_Tests.cs (2)
547BuildRequest request1 = CreateProxyBuildRequest(1, 1, new ProxyTargets(new Dictionary<string, string> { { "foo", "bar" } }), null);
734BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null);
BackEnd\TargetEntry_Tests.cs (6)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
876new Dictionary<string, string>(),
1026BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
1044BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskHostConfiguration_Tests.cs (8)
236IDictionary<string, object> parameters = new Dictionary<string, object>();
263IDictionary<string, object> parameters2 = new Dictionary<string, object>();
334var expectedGlobalProperties = new Dictionary<string, string>
457taskParameters: new Dictionary<string, object>(),
458globalParameters: new Dictionary<string, string>(),
485IDictionary<string, object> parameters = new Dictionary<string, object>();
535IDictionary<string, object> parameters = new Dictionary<string, object>();
583IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskHostTaskComplete_Tests.cs (6)
73IDictionary<string, object> parameters = new Dictionary<string, object>();
81IDictionary<string, object> parameters2 = new Dictionary<string, object>();
136new OutOfProcTaskHostTaskResult(TaskCompleteType.Success, new Dictionary<string, object>()),
158IDictionary<string, object> parameters = new Dictionary<string, object>();
186IDictionary<string, object> parameters = new Dictionary<string, object>();
212IDictionary<string, object> parameters = new Dictionary<string, object>();
BuildEventArgsDataEnumeration.cs (6)
29GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
56GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
63new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })),
94GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
101new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })),
105new Dictionary<string, string>() { { "metadat41", "val41" }, { "metadat42", "val42" } })),
BuildEventArgsSerialization_Tests.cs (11)
72new Dictionary<string, string>
115var globalVariables = new Dictionary<string, string>
163globalProperties: new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
345ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null,
418ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null,
494ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null,
557Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } };
582ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null,
677ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null,
769GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
792ProfilerResult = new ProfilerResult(new Dictionary<EvaluationLocation, ProfiledLocation>
Construction\SolutionProjectGenerator_Tests.cs (11)
1602IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1664Dictionary<string, string> globalProperties = new Dictionary<string, string>();
1715IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1733IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1850IDictionary<string, string> globalProperties = new Dictionary<string, string>();
2033Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2127Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2215Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2292Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2460var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } };
2700Dictionary<string, string> globalProperties = new Dictionary<string, string>();
Definition\Toolset_Tests.cs (9)
109subToolsets, "c:\\foo", "4.0", new Dictionary<string, ProjectImportPathMatch>
263IDictionary<string, string> globalProperties = new Dictionary<string, string>();
315IDictionary<string, string> globalProperties = new Dictionary<string, string>();
335IDictionary<string, string> globalProperties = new Dictionary<string, string>();
343IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
363IDictionary<string, string> globalProperties = new Dictionary<string, string>();
406IDictionary<string, string> globalProperties = new Dictionary<string, string>();
451IDictionary<string, string> globalProperties = new Dictionary<string, string>();
459IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
Evaluation\ItemEvaluation_Tests.cs (23)
61var mI2_1 = new Dictionary<string, string>
70var mI2_2 = new Dictionary<string, string>
110var expectedMetadata = new Dictionary<string, string>
154new Dictionary<string, string>(),
155new Dictionary<string, string> { ["m1"] = "m1_updated" },
156new Dictionary<string, string>(),
184var a = new Dictionary<string, string>
192var b = new Dictionary<string, string>
200var c = new Dictionary<string, string>
211var metadataForI2 = new Dictionary<string, string>
249new Dictionary<string, string>
278new Dictionary<string, string>
305new Dictionary<string, string>()
328new Dictionary<string, string>()
353new Dictionary<string, string>
422new Dictionary<string, string>(),
423new Dictionary<string, string>
428new Dictionary<string, string>
433new Dictionary<string, string>
490var i1BaseMetadata = new Dictionary<string, string>
501new Dictionary<string, string>()
510new Dictionary<string, string>
719new Dictionary<string, string>
Evaluation\ItemSpec_Tests.cs (4)
30var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } }));
51var itemSpecFromAbsolute = CreateItemSpecFrom(absoluteSpec, CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile));
52var itemSpecFromRelative = CreateItemSpecFrom("s.cs", CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile));
64var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } }));
Graph\GraphLoadedFromSolution_tests.cs (33)
96new Dictionary<int, int[]>()
101new Dictionary<int, int[]>
109new Dictionary<int, int[]>
118new Dictionary<int, int[]>
126new Dictionary<int, int[]>
135new Dictionary<int, int[]>
143new Dictionary<int, int[]>
152new Dictionary<int, int[]>
162new Dictionary<int, int[]>
229Projects = new Dictionary<string, string>
234ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>>
237"1", new Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>
265new Dictionary<int, int[]> // graph nodes and ProjectReference edges
277new Dictionary<int, int[]>
289new Dictionary<int, int[]>
304new Dictionary<int, int[]>
319new Dictionary<int, int[]>
334new Dictionary<int, int[]>
345new Dictionary<int, int[]>
356new Dictionary<int, int[]>
367new Dictionary<int, int[]>
382new Dictionary<int, int[]>
397new Dictionary<int, int[]>
412new Dictionary<int, int[]>
427new Dictionary<int, int[]>
440new Dictionary<int, int[]>
453new Dictionary<int, int[]>
466new Dictionary<int, int[]>
487new Dictionary<string, string>()
591new Dictionary<int, int[]>()
610Projects = new Dictionary<string, string>
675? new Dictionary<string, string>
681: new Dictionary<string, string>();
Graph\ProjectGraph_Tests.cs (91)
76new Dictionary<int, int[]>()
357var entryPoint1 = new ProjectGraphEntryPoint(entryFile1.Path, new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC" });
370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" };
377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" };
497new Dictionary<string, string> { { "Foo", "Bar" } });
598var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } });
599var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } });
637var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } });
638var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } });
919TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } });
920CreateProjectFile(env: env, projectNumber: 2, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "C" } } });
921CreateProjectFile(env: env, projectNumber: 3, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "D" } } });
939var projectReferenceTargets = new Dictionary<string, string[]>
966var projectReferenceTargets = new Dictionary<string, string[]>
1002TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1020TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1040TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty);
1063TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty);
1391TransientTestFile entryProject = CreateProjectFile(env, 1, new[] { 2 }, new Dictionary<string, string[]> { { "A", new[] { ".default" } } }, defaultTargets: "A");
1413projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "A", ".default" } } });
1430var projectReferenceTargets = new Dictionary<string, string[]>
1477projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "Build" } } });
1483new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T2" } } },
1491new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T3" } } },
1499new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T4" } } },
1522dependencyEdges: new Dictionary<int, int[]>
1526extraContentPerProjectNumber: new Dictionary<int, string>
1559expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(),
1560outputCaches: new Dictionary<ProjectGraphNode, string>(),
1574dependencyEdges: new Dictionary<int, int[]>
1578extraContentPerProjectNumber: new Dictionary<int, string>
1609expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(),
1610outputCaches: new Dictionary<ProjectGraphNode, string>(),
1644new Dictionary<int, int[]>()
1649new Dictionary<int, int[]>
1657new Dictionary<int, int[]>
1666new Dictionary<int, int[]>
1674new Dictionary<int, int[]>
1683new Dictionary<int, int[]>
1692new Dictionary<int, int[]>
1700new Dictionary<int, int[]>
1709new Dictionary<int, int[]>
1719new Dictionary<int, int[]>
1729new Dictionary<int, int[]>
1738new Dictionary<int, int[]>
1747new Dictionary<int, int[]>
1758new Dictionary<int, int[]>
1768new Dictionary<int, int[]>
1779new Dictionary<int, int[]>
1792new Dictionary<int, int[]>
1835globalProperties: new Dictionary<string, string> { { "a", "b" } },
1840projectReferenceTargets: new Dictionary<string, string[]>
2031AssertInnerBuildEvaluation(graph.GraphRoots.First(), false, new Dictionary<string, string>());
2044var graph = new ProjectGraph(root, new Dictionary<string, string> { { InnerBuildPropertyName, "foo" } });
2050AssertInnerBuildEvaluation(graph.GraphRoots.First(), true, new Dictionary<string, string>());
2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2245new Dictionary<string, string>(),
2246new Dictionary<string, string>
2253var graph1 = new Dictionary<int, int[]>
2261var graph2 = new Dictionary<int, int[]>
2275new Dictionary<int, int[]>(),
2282new Dictionary<int, int[]>
2348new Dictionary<int, int[]> { { 1, null } },
2349new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "xyz" } });
2378new Dictionary<int, int[]>
2384new Dictionary<int, string>(),
2385new Dictionary<int, int[]>
2394new Dictionary<int, int[]>
2400new Dictionary<int, string>
2404new Dictionary<int, int[]>
2415new Dictionary<int, int[]>
2421new Dictionary<int, string>
2425new Dictionary<int, int[]>
2434new Dictionary<int, int[]>
2440new Dictionary<int, string>
2445new Dictionary<int, int[]>
2453new Dictionary<int, int[]>
2461new Dictionary<int, string>
2467new Dictionary<int, int[]>
2500dependencyEdges: new Dictionary<int, int[]>
2508extraContentPerProjectNumber: new Dictionary<int, string>
2563dependencyEdges: new Dictionary<int, int[]>()
2568extraContentPerProjectNumber: new Dictionary<int, string>()
2669dependencyEdges: new Dictionary<int, int[]>()
2673extraContentPerProjectNumber: new Dictionary<int, string>()
2711dependencyEdges: new Dictionary<int, int[]>()
2715extraContentPerProjectNumber: new Dictionary<int, string>()
2754dependencyEdges: new Dictionary<int, int[]>()
2758globalProperties: new Dictionary<string, string> { { "BuildProjectReferences", "false" } },
Graph\ResultCacheBasedBuilds_Tests.cs (19)
183new Dictionary<int, int[]>
191new Dictionary<int, int[]>
200new Dictionary<int, int[]>
208new Dictionary<int, int[]>
217new Dictionary<int, int[]>
226new Dictionary<int, int[]>
234new Dictionary<int, int[]>
244new Dictionary<int, int[]>
254new Dictionary<int, int[]>
263new Dictionary<int, int[]>
272new Dictionary<int, int[]>
297var expectedOutput = new ExpectedNodeBuildOutput();
299var outputCaches = new OutputCacheDictionary();
339dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
344var expectedOutput = new ExpectedNodeBuildOutput();
346var outputCaches = new OutputCacheDictionary();
377dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
382var expectedOutput = new ExpectedNodeBuildOutput();
384var outputCaches = new OutputCacheDictionary();
ProjectCache\ProjectCacheTests.cs (39)
104NonCacheMissResults = nonCacheMissResults ?? new Dictionary<int, CacheResult>();
118new Dictionary<string, string>
135new Dictionary<string, string>
337new Dictionary<int, int[]?>
343new Dictionary<int, int[]?>
347new Dictionary<int, CacheResult>
353new Dictionary<int, int[]?>
357new Dictionary<int, CacheResult>
363new Dictionary<int, int[]?>
369new Dictionary<int, int[]?>
373new Dictionary<int, CacheResult>
379new Dictionary<int, int[]?>
383new Dictionary<int, CacheResult>
389new Dictionary<int, int[]?>
393new Dictionary<int, CacheResult>
400new Dictionary<int, int[]?>
495var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
527new Dictionary<int, int[]?>
531extraContentPerProjectNumber: new Dictionary<int, string>()
547var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
587new Dictionary<string, string>
666graphEdges: new Dictionary<int, int[]?>
686var globalProperties = new Dictionary<string, string>
730new Dictionary<int, int[]?>
734new Dictionary<int, CacheResult>
910new Dictionary<int, int[]?>
941new Dictionary<int, int[]?>
965new Dictionary<int, int[]?>
969new Dictionary<int, CacheResult>
981new Dictionary<string, string>
1023new Dictionary<int, int[]?>
1055dependencyEdges: new Dictionary<int, int[]?>
1059extraContentPerProjectNumber: new Dictionary<int, string>
1231new Dictionary<int, int[]?>
1362new Dictionary<int, int[]?>
1455new Dictionary<int, int[]?>
1485new Dictionary<string, string>
1518new Dictionary<int, int[]?>
1605new ProxyTargets(new Dictionary<string, string> { { proxyTarget, cacheHitTarget } })));
Microsoft.Build.Framework (17)
Microsoft.Build.Framework.UnitTests (11)
CustomEventArgSerialization_Tests.cs (4)
983TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", "Value" } } };
1003genericEvent.Properties = new Dictionary<string, string>();
1013TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = null, Properties = new Dictionary<string, string> { { "Key", "Value" } } };
1026TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", null } } };
ExtendedBuildEventArgs_Tests.cs (5)
28ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
66ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
105ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
143ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
180ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (51)
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.Build.Tasks.Core (24)
Microsoft.Build.Tasks.UnitTests (34)
ResolveSDKReference_Tests.cs (13)
333Dictionary<string, string> dict = new Dictionary<string, string>();
3816IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
3825targetResults = new Dictionary<string, TargetResult>();
3959IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
3968targetResults = new Dictionary<string, TargetResult>();
4068IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
4077targetResults = new Dictionary<string, TargetResult>();
4165IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
4176targetResults = new Dictionary<string, TargetResult>();
4199SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2");
4201new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
4334IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
Microsoft.Build.UnitTests.Shared (9)
ObjectModelHelpers.cs (8)
126return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
261expectedDirectMetadata = new Dictionary<string, string>();
471expected ??= new Dictionary<string, string>();
1020BuildRequestData data = new BuildRequestData(projectFileFullPath, globalProperties ?? new Dictionary<string, string>(), null, targets, null);
1429new Dictionary<string, string>(),
1756var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>();
1805globalProperties ?? new Dictionary<string, string>(),
2110globalProperties ?? new Dictionary<string, string>(),
Microsoft.Build.Utilities.Core (10)
Microsoft.Build.Utilities.UnitTests (7)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (69)
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)
49private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>();
50private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>();
673Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>>();
3866typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
Microsoft.CodeAnalysis.CodeStyle (15)
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 (50)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
480var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>()
594patterns: new Dictionary<string, string[]>()
598recursivePatterns: new Dictionary<string, string[]>()
2437var expectedEmbeddedMap = new Dictionary<string, string>();
9873Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } }));
9877Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } }));
13933ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true);
13974ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true);
14015ValidateEmbeddedSources_Portable(new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (48)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (19)
24var dictionary = new Dictionary<string, string>()
72var dictionary = new Dictionary<string, string>()
93var dictionary = new Dictionary<string, string>()
135var dictionary = new Dictionary<string, string>()
152var dictionary = new Dictionary<string, string>()
200var dictionary = new Dictionary<string, string>()
242var dictionary = new Dictionary<string, string>()
285var dictionary = new Dictionary<string, string>()
324var dictionary = new Dictionary<string, string>()
349var rule = new Dictionary<string, string>()
380var rule = new Dictionary<string, string>()
400var charpRule = new Dictionary<string, string>()
408var vbRule = new Dictionary<string, string>()
429var rule = new Dictionary<string, string>()
486var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
522var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
558var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
583var dictionary = new Dictionary<string, string>()
652var dictionary = new Dictionary<string, string>()
MoveToNamespace\MoveToNamespaceTests.cs (26)
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>()
1487expectedSymbolChanges: new Dictionary<string, string>()
1531expectedSymbolChanges: 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 (3)
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)
572IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
616IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
676IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
727IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
783IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
839IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
897IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
955IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1014IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1084IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1155IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1220IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1273IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1327IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1377IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1428var warnings = new Dictionary<string, ReportDiagnostic>();
1484IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1501warnings = new Dictionary<string, ReportDiagnostic>();
1551IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1601IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1657IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1704IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1741IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1774IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1823var warnings = new Dictionary<string, ReportDiagnostic>();
2247var 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 (2)
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.ExpressionCompiler (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (32)
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
27new()
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
Microsoft.CodeAnalysis.Features.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (19)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
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.Emit.UnitTests (18)
Attributes\AttributeTests_MarshalAs.vb (18)
180Dim blobs = New Dictionary(Of String, Byte()) From
280Dim blobs = New Dictionary(Of String, Byte()) From
364Dim blobs = New Dictionary(Of String, Byte()) From
388Dim expectedBlobs = New Dictionary(Of String, Byte())()
490Dim blobs = New Dictionary(Of String, Byte()) From
514Dim expectedBlobs = New Dictionary(Of String, Byte())()
608Dim blobs = New Dictionary(Of String, Byte()) From
654Dim blobs = New Dictionary(Of String, Byte()) From
686Dim cciBlobs = New Dictionary(Of String, Byte()) From
766Dim blobs = New Dictionary(Of String, Byte()) From
884Dim blobs = New Dictionary(Of String, Byte()) From
1006Dim blobs = New Dictionary(Of String, Byte())() From
1041Dim blobs = New Dictionary(Of String, Byte())() From
1109Dim blobs = New Dictionary(Of String, Byte())() From
1215Dim blobs = New Dictionary(Of String, Byte())() From
1239Dim blobs = New Dictionary(Of String, Byte())() From
1288Dim blobs = New Dictionary(Of String, Byte())() From
1418Dim blobs = New Dictionary(Of String, Byte()) From
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (42)
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 (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
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 (2)
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.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.Build.Tasks.Feed.Tests (42)
BuildModelFactoryTests.cs (29)
103new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
108new TaskItem(bopSnupkg, new Dictionary<string, string>
115new TaskItem(zipArtifact, new Dictionary<string, string>
120new TaskItem(localPackagePath, new Dictionary<string, string>()
188new TaskItem(localPackagePath, new Dictionary<string, string>()
227new TaskItem(zipArtifact, new Dictionary<string, string>
251new TaskItem(localPackagePath, new Dictionary<string, string>
279new TaskItem(localPackagePath, new Dictionary<string, string>
326new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
331new TaskItem(bopSnupkg, new Dictionary<string, string>
338new TaskItem(zipArtifact, new Dictionary<string, string>
343new TaskItem(localPackagePath, new Dictionary<string, string>()
359new TaskItem(localPackagePath, new Dictionary<string, string>()
368new TaskItem(localPackagePath, new Dictionary<string, string>()
373new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>()
379new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>()
389new TaskItem("MyCert", new Dictionary<string, string>()
393new TaskItem("MyOtherCert", new Dictionary<string, string>()
401new TaskItem(".dll", new Dictionary<string, string>()
562new TaskItem(localPackagePath, new Dictionary<string, string>()
593new TaskItem(localPackagePath, new Dictionary<string, string>()),
594new TaskItem(zipPath, new Dictionary<string, string>()
608new TaskItem(localPackagePath, new Dictionary<string, string>()
617new TaskItem(localPackagePath, new Dictionary<string, string>()
625new TaskItem("MyCert", new Dictionary<string, string>()
629new TaskItem("MyOtherCert", new Dictionary<string, string>()
637new TaskItem(".dll", new Dictionary<string, string>()
703new TaskItem(localPackagePath, new Dictionary<string, string>()),
704new TaskItem(zipPath, new Dictionary<string, string>()
PushToBuildStorageTests.cs (12)
33new TaskItem(PACKAGE_A, new Dictionary<string, string>
39new TaskItem(PACKAGE_B, new Dictionary<string, string>
45new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string>
458new TaskItem(".dll", new Dictionary<string, string>
462new TaskItem(".nupkg", new Dictionary<string, string>
466new TaskItem(".zip", new Dictionary<string, string>
473new TaskItem("Best.dll", new Dictionary<string, string>
477new TaskItem("Worst.dll", new Dictionary<string, string>
484new TaskItem("BestCert", new Dictionary<string, string>
488new TaskItem("WorstCert", new Dictionary<string, string>
495new TaskItem("VeryCoolStrongName", new Dictionary<string, string>
500new TaskItem("VeryTrashStrongName", 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 (4)
Microsoft.DotNet.SignTool (10)
Microsoft.DotNet.SignTool.Tests (165)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.VersionTools (12)
Microsoft.DotNet.VersionTools.Tasks (2)
Microsoft.DotNet.VersionTools.Tests (16)
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.AmbientMetadata.Application.Tests (2)
Microsoft.Extensions.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
21var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } };
74var inputMetadata = new Dictionary<string, string>
132var inputMetadata = new Dictionary<string, string>
190var inputMetadata = new Dictionary<string, string>
249var inputMetadata1 = new Dictionary<string, string>
253var inputMetadata2 = new Dictionary<string, string>
294var inputMetadata1 = new Dictionary<string, string>
299var inputMetadata2 = new Dictionary<string, string>
340var inputMetadata = new Dictionary<string, string>
403var inputMetadata = new Dictionary<string, string>
463var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
464var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } };
465var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
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.Tests (49)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
80var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
106var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
125var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
152var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
172var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
197var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
224var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
245var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
274var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
290var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
304var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
325var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
342var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
357var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
361var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (23)
84var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
108var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
125var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
143var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
158var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
173var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
190var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
216var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
234var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
259var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
274var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
300var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
315var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
341var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
355var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
369var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
390var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
407var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
424var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
442var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
458var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
472var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
476var 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 (1)
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)
38var destinationConfigs = new Dictionary<string, DestinationConfig>
56var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
69var destinationConfigs = new Dictionary<string, DestinationConfig>
87var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
99var destinationConfigs = new Dictionary<string, DestinationConfig>
119var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
133var destinationConfigs = new Dictionary<string, DestinationConfig>
199var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
217var destinationConfigs = new Dictionary<string, DestinationConfig>
240var destinationConfigs = new Dictionary<string, DestinationConfig>
299var destinationConfigs = new Dictionary<string, DestinationConfig>
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Microsoft.Extensions.Telemetry.Tests (25)
Http\HttpParserTests.cs (9)
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()
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.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.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 (11)
Microsoft.Maui.Controls (44)
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.Compatibility (11)
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.InternalCodeAnalyzer (1)
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 (24)
Model\TiktokenTokenizer.cs (6)
1123return (new Dictionary<string, int>
1127return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName);
1130return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName);
1133return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName);
1136return (new Dictionary<string, int>
1140return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Microsoft.ML.Tokenizers.Tests (16)
BpeTests.cs (12)
25new 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 },
51new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
66new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
81new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
96new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
111new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
126new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} },
141new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } },
156new Dictionary<string, int>(){ { UnknownToken, 0} },
171new Dictionary<string, int>(){ { UnknownToken, 0} },
186new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 },
479IReadOnlyDictionary<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 (1)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
MinimalSample (2)
MSBuild (8)
MSBuildTaskHost (10)
OpenIdConnectSample (1)
PresentationBuildTasks (17)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
876_subsumingNamespaces = new Dictionary<string, object>();
903_knownNamespaces = new Dictionary<string, object>();
1805_ignorables = new Dictionary<string, object>();
1814_processContents = new Dictionary<string, ProcessContentSet>();
1829_preserveElements = new Dictionary<string, PreserveItemSet>();
1844_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2011_names = new Dictionary<string, string>();
2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (35)
PresentationCore.Tests (1)
PresentationFramework (85)
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
488Dictionary<string, string> writtenAttributes = new Dictionary<string, string>();
1388_uriToPrefix = new Dictionary<string, string>();
1390_prefixToUri = new Dictionary<string, string>();
1548private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>();
1549private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>();
1562namespaceToUri = new Dictionary<string, string>();
PresentationUI (8)
RazorBuildWebSite (1)
ReachFramework (71)
packaging\XpsDigitalSignature.cs (5)
66Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>();
316Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>();
365Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>();
381relHash = new Dictionary<string, int>();
422_optionalSignedTypes = new Dictionary<string, string>();
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (13)
Services\SolutionServiceTests.cs (11)
555var map = new Dictionary<Checksum, object>();
596var map = new Dictionary<Checksum, object>();
638var map = new Dictionary<Checksum, object>();
671var map = new Dictionary<Checksum, object>();
713var map = new Dictionary<Checksum, object>();
753var map = new Dictionary<Checksum, object>();
791var map = new Dictionary<Checksum, object>();
824var map = new Dictionary<Checksum, object>();
879var map = new Dictionary<Checksum, object>();
948var map = new Dictionary<Checksum, object>();
1283var map = new Dictionary<Checksum, object>();
RunTests (2)
Sample (3)
Program.cs (2)
112schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } });
113schemas.MapGet("/frozen-dictionary-of-ints", () => ImmutableDictionary.CreateRange(new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }));
ScenarioTests.Common.Tests (1)
Shared.Tests (1)
SimpleWebSite (1)
SocialSample (1)
SocialWeather (2)
Sockets.FunctionalTests (1)
Swaggatherer (1)
System.CodeDom (1)
System.ComponentModel.Annotations (3)
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.Diagnostics.Process (2)
System.Drawing.Common.Tests (1)
System.Formats.Nrbf (1)
System.Formats.Tar (4)
System.IO.Compression (1)
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.IO.Pipes (1)
System.Linq.Expressions (25)
System.Linq.Queryable (2)
System.Net.Http (7)
System.Net.HttpListener (5)
System.Net.Mail (7)
System.Net.NameResolution (1)
System.Net.NetworkInformation (2)
System.Net.Primitives (2)
System.Net.Security (1)
System.Private.CoreLib (44)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
2677commandArgs.Arguments ??= new Dictionary<string, string?>();
3667eventsByName ??= new Dictionary<string, string>();
3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>();
3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
4533Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
5347opcodeTab = new Dictionary<int, string>();
5348stringTab = new Dictionary<string, string>();
5350perEventByteArrayArgIndices = new Dictionary<string, List<int>>();
5386taskTab ??= new Dictionary<int, string>();
5409keywordTab ??= new Dictionary<ulong, string>();
5553mapsTab ??= new Dictionary<string, Type>();
5951taskTab ??= new Dictionary<int, string>();
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 (7)
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 (3)
System.Text.Json (7)
System.Text.Json.SourceGeneration (2)
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 (51)
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)
876_subsumingNamespaces = new Dictionary<string, object>();
903_knownNamespaces = new Dictionary<string, object>();
1805_ignorables = new Dictionary<string, object>();
1814_processContents = new Dictionary<string, ProcessContentSet>();
1829_preserveElements = new Dictionary<string, PreserveItemSet>();
1844_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2011_names = new Dictionary<string, string>();
2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
TagHelpersWebSite (3)
TaskUsageLogger (4)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (4)
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 } });
WindowsFormsIntegration (4)
WinFormsControlsTest (1)
XmlFileLogger (1)
xunit.assert (4)
xunit.console (3)
Xunit.NetCore.Extensions (3)