7535 references to Dictionary
AnalyzerRunner (5)
aspire (16)
Aspire.Azure.AI.OpenAI.Tests (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Cli.Tests (39)
Commands\RunCommandTests.cs (7)
815env: new Dictionary<string, string>(),
867env: new Dictionary<string, string>(),
923env: new Dictionary<string, string>(),
974env: new Dictionary<string, string>(),
1026env: new Dictionary<string, string>(),
1078env: new Dictionary<string, string>(),
1131env: new Dictionary<string, string>(),
DotNet\DotNetCliRunnerTests.cs (14)
70env: new Dictionary<string, string>(),
129configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
203env: new Dictionary<string, string>(),
253env: new Dictionary<string, string>(),
298var existingEnv = new Dictionary<string, string>
397env: new Dictionary<string, string>(),
447env: new Dictionary<string, string>(),
492var userEnv = new Dictionary<string, string>
919env: new Dictionary<string, string>(),
976env: new Dictionary<string, string>(),
1030env: new Dictionary<string, string>(),
1093env: new Dictionary<string, string>(),
1151env: new Dictionary<string, string>(),
1208env: new Dictionary<string, string>(),
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (31)
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (3)
237new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } },
239new Dictionary<string, bool> { { "Running", true }, { "Finished", false } },
241new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (33)
ResourceOutgoingPeerResolverTests.cs (21)
30var resources = new Dictionary<string, ResourceViewModel>
43var resources = new Dictionary<string, ResourceViewModel>
56var resources = new Dictionary<string, ResourceViewModel>
69var resources = new Dictionary<string, ResourceViewModel>
88var resources = new Dictionary<string, ResourceViewModel>
102var resources = new Dictionary<string, ResourceViewModel>
116var resources = new Dictionary<string, ResourceViewModel>
195var resources = new Dictionary<string, ResourceViewModel>
209var resources = new Dictionary<string, ResourceViewModel>
233var resources = new Dictionary<string, ResourceViewModel>
248var resources = new Dictionary<string, ResourceViewModel>
262var resources = new Dictionary<string, ResourceViewModel>
277var resources = new Dictionary<string, ResourceViewModel>
290var resources = new Dictionary<string, ResourceViewModel>
304var resources = new Dictionary<string, ResourceViewModel>
319var resources = new Dictionary<string, ResourceViewModel>
331var properties = new Dictionary<string, ResourcePropertyViewModel>
349var properties = new Dictionary<string, ResourcePropertyViewModel>
369var resources = new Dictionary<string, ResourceViewModel>
384var resources = new Dictionary<string, ResourceViewModel>
401var resources = new Dictionary<string, ResourceViewModel>
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (34)
Aspire.Hosting.Azure (6)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kusto.Tests (1)
Aspire.Hosting.Azure.Tests (55)
AzureDeployerTests.cs (15)
122var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
169var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
217var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
274var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
335string name when name.StartsWith("aca-env") => new Dictionary<string, object>
343string name when name.StartsWith("aas-env") => new Dictionary<string, object>
546var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
599var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
757string name when name.StartsWith("env") => new Dictionary<string, object>
765string name when name.StartsWith("funcstorage") => new Dictionary<string, object>
772string name when name.StartsWith("hoststorage") => new Dictionary<string, object>
779string name when name.StartsWith("funcapp-identity") => new Dictionary<string, object>
783string name when name.StartsWith("funcapp") => new Dictionary<string, object>
914var armClientProvider = new TestArmClientProvider(new Dictionary<string, object>
973Profiles = new Dictionary<string, LaunchProfile>
ResourceWithAzureFunctionsConfigTests.cs (21)
110var target = new Dictionary<string, object>();
128var target = new Dictionary<string, object>();
149var target = new Dictionary<string, object>();
166var target = new Dictionary<string, object>();
183var target = new Dictionary<string, object>();
199var target = new Dictionary<string, object>();
215var target = new Dictionary<string, object>();
231var target = new Dictionary<string, object>();
248var target = new Dictionary<string, object>();
273var target = new Dictionary<string, object>();
301var target = new Dictionary<string, object>();
323var target = new Dictionary<string, object>();
343var target = new Dictionary<string, object>();
363var target = new Dictionary<string, object>();
383var target = new Dictionary<string, object>();
400var target = new Dictionary<string, object>();
419var target = new Dictionary<string, object>();
439var target = new Dictionary<string, object>();
458var target = new Dictionary<string, object>();
479var target = new Dictionary<string, object>();
501var target = new Dictionary<string, object>();
Aspire.Hosting.Docker (1)
Aspire.Hosting.Docker.Tests (3)
Aspire.Hosting.Kubernetes (7)
Aspire.Hosting.MySql.Tests (6)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.PostgreSQL.Tests (5)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Redis.Tests (7)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Testing (4)
Aspire.Hosting.Tests (75)
Dcp\DcpExecutorTests.cs (23)
126configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1292configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1327configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1363configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1403configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1434configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1465configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1495configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1524configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
1556var configDict = new Dictionary<string, string?>
1602var configDict = new Dictionary<string, string?>
1641var configDict = new Dictionary<string, string?>
1680var configDict = new Dictionary<string, string?>
1716var configDict = new Dictionary<string, string?>
1758var configDict = new Dictionary<string, string?>
1800var configDict = new Dictionary<string, string?>
1842var configDict = new Dictionary<string, string?>
1879var configDict = new Dictionary<string, string?>
1916var configDict = new Dictionary<string, string?>
1959var configDict = new Dictionary<string, string?>
2005builder.AddInMemoryCollection(new Dictionary<string, string?>
2068EnvironmentVariables = new Dictionary<string, string>
2078EnvironmentVariables = new Dictionary<string, string>
Aspire.Hosting.Valkey.Tests (3)
Aspire.Hosting.Yarp.Tests (10)
YarpConfigGeneratorTests.cs (10)
60new Dictionary<string, string>
64new Dictionary<string, string>
68new Dictionary<string, string>
72new Dictionary<string, string>
78Metadata = new Dictionary<string, string> { { "routeA-K1", "routeA-V1" }, { "routeA-K2", "routeA-V2" } }
128Metadata = new Dictionary<string, string> { { "destA-K1", "destA-V1" }, { "destA-K2", "destA-V2" } },
193Metadata = new Dictionary<string, string> { { "cluster1-K1", "cluster1-V1" }, { "cluster1-K2", "cluster1-V2" } }
229var variables = new Dictionary<string, object>();
248var variables = new Dictionary<string, object>();
281.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
146resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } },
154resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
159resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } },
172resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }),
174resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
181resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } },
187resourceEndpoints: new() {
196resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
201resourceEndpoints: new() {
215resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } },
222resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } },
228resourceEndpoints: new() { { "api", ["/alive", "/health"] } },
235resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
241resourceEndpoints: new() {
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.Templates.Tests (2)
AuthSamples.FunctionalTests (4)
AzureFunctionsEndToEnd.Functions (1)
BasicWebSite (1)
blazor-devserver (1)
BuildActionTelemetryTable (1)
BuildBoss (2)
BuildValidator (5)
ConfigurationSchemaGenerator (3)
ConfigurationSchemaGenerator.Tests (2)
containerize (3)
Crossgen2Tasks (1)
DemoConsole (1)
dotnet (43)
dotnet.Tests (83)
CommandTests\New\DotnetAddPostActionTests.cs (5)
162var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "project" }, { "reference", "./OldName.csproj" } };
190var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "project" }, { "reference", "./Reference.csproj" } };
225var args = new Dictionary<string, string>()
259var args = new Dictionary<string, string>() { { "targetFiles", "[\"MyApp.csproj\"]" }, { "referenceType", "package" }, { "reference", "System.Net.Json" } };
285var args = new Dictionary<string, string>() { { "targetFiles", "MyApp.csproj" }, { "referenceType", "package" }, { "reference", "System.Net.Json" } };
CommandTests\New\DotnetSlnPostActionTests.cs (10)
71Args = new Dictionary<string, string>()
91Args = new Dictionary<string, string>()
120Args = new Dictionary<string, string>()
140Args = new Dictionary<string, string>()
174Args = new Dictionary<string, string>()
205var args = new Dictionary<string, string>() { { "projectFiles", "[\"MyApp.csproj\"]" } };
234var args = new Dictionary<string, string>() { { "projectFiles", "MyApp.csproj" } };
263var args = new Dictionary<string, string>() {
295var args = new Dictionary<string, string>() {
327var args = new Dictionary<string, string>() {
TelemetryCommonPropertiesTests.cs (21)
229new object[] { new Dictionary<string, string> { { "CLAUDECODE", "1" } }, "claude" },
230new object[] { new Dictionary<string, string> { { "CURSOR_EDITOR", "1" } }, "cursor" },
231new object[] { new Dictionary<string, string> { { "CLAUDECODE", "1" }, { "CURSOR_EDITOR", "1" } }, "claude, cursor" },
232new object[] { new Dictionary<string, string>(), null },
236new object[] { new Dictionary<string, string> { { "TF_BUILD", "true" } }, true },
237new object[] { new Dictionary<string, string> { { "GITHUB_ACTIONS", "true" } }, true },
238new object[] { new Dictionary<string, string> { { "APPVEYOR", "true"} }, true },
239new object[] { new Dictionary<string, string> { { "CI", "true"} }, true },
240new object[] { new Dictionary<string, string> { { "TRAVIS", "true"} }, true },
241new object[] { new Dictionary<string, string> { { "CIRCLECI", "true"} }, true },
243new object[] { new Dictionary<string, string> { { "CODEBUILD_BUILD_ID", "hi" }, { "AWS_REGION", "hi" } }, true },
244new object[] { new Dictionary<string, string> { { "CODEBUILD_BUILD_ID", "hi" } }, false },
245new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" }, { "BUILD_URL", "hi" } }, true },
246new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" } }, false },
247new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" }, { "PROJECT_ID", "hi" } }, true },
248new object[] { new Dictionary<string, string> { { "BUILD_ID", "hi" } }, false },
250new object[] { new Dictionary<string, string> { { "TEAMCITY_VERSION", "hi" } }, true },
251new object[] { new Dictionary<string, string> { { "TEAMCITY_VERSION", "" } }, false },
252new object[] { new Dictionary<string, string> { { "JB_SPACE_API_URL", "hi" } }, true },
253new object[] { new Dictionary<string, string> { { "JB_SPACE_API_URL", "" } }, false },
255new object[] { new Dictionary<string, string> { { "SomethingElse", "hi" } }, false },
TelemetryFilterTest.cs (11)
45TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 12345 } }));
58TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>(), globalJsonState));
71TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 } }));
82TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
110TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 34567 } }));
124TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 } }));
137TelemetryEventEntry.SendFiltered(Tuple.Create(parseResult, new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 45678 } }));
154new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
170new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
186new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
202new Dictionary<string, double>() { { "Startup Time", 0 }, { "Parse Time", 23456 } }));
dotnet-format (3)
dotnet-format.UnitTests (35)
dotnet-MsiInstallation.Tests (4)
dotnet-new.IntegrationTests (8)
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)
dotnet-watch (8)
dotnet-watch.Tests (16)
Build\EvaluationTests.cs (4)
94new("EmbeddedResource", new() { { "Include", "*.resx" }, { "Watch", "false" } }),
95new("Compile", new() { { "Include", "Program.cs" } }),
96new("Compile", new() { { "Include", "Class*.cs" }, { "Watch", "false" } }),
337new("Compile", new() { { "Include", "Lib.fs" } })
DotNetWatchTasks (1)
EndToEnd.Tests (2)
FilesWebSite (1)
FormatterWebSite (2)
GenerateDocumentationAndConfigFiles (1)
HealthChecksSample (1)
HelixTasks (1)
HelixTestRunner (1)
IdeCoreBenchmarks (4)
IIS.LongTests (3)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IISExpress.FunctionalTests (3)
illink (66)
Linker\Annotations.cs (11)
49protected readonly Dictionary<AssemblyDefinition, AssemblyAction> assembly_actions = new Dictionary<AssemblyDefinition, AssemblyAction>();
55protected readonly Dictionary<IMetadataTokenProvider, MessageOrigin> marked_pending = new Dictionary<IMetadataTokenProvider, MessageOrigin>();
57protected readonly Dictionary<TypeDefinition, (TypePreserve preserve, bool applied)> preserved_types = new Dictionary<TypeDefinition, (TypePreserve, bool)>();
59protected readonly Dictionary<TypeDefinition, TypePreserveMembers> preserved_type_members = new();
60protected readonly Dictionary<ExportedType, TypePreserveMembers> preserved_exportedtype_members = new();
61protected readonly Dictionary<IMemberDefinition, List<MethodDefinition>> preserved_methods = new Dictionary<IMemberDefinition, List<MethodDefinition>>();
64protected readonly Dictionary<AssemblyDefinition, ISymbolReader> symbol_readers = new Dictionary<AssemblyDefinition, ISymbolReader>();
65readonly Dictionary<IMemberDefinition, LinkerAttributesInformation> linker_attributes = new Dictionary<IMemberDefinition, LinkerAttributesInformation>();
66readonly Dictionary<object, Dictionary<IMetadataTokenProvider, object>> custom_annotations = new Dictionary<object, Dictionary<IMetadataTokenProvider, object>>();
67protected readonly Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> resources_to_remove = new Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>>();
550slots = new Dictionary<IMetadataTokenProvider, object>();
ILLink.RoslynAnalyzer (17)
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string>();
95readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string>();
96readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers>();
97readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new();
216featureSwitchMembers.Add(currentFeatureSwitch.Value, new Dictionary<string, ClassMembers>());
Infrastructure.Common (1)
InMemory.FunctionalTests (8)
InProcessWebSite (1)
Interop.FunctionalTests (1)
KeyManagementSimulator (1)
Metrics (10)
Metrics.Legacy (10)
Microsoft.Analyzers.Extra (4)
Microsoft.Analyzers.Local (2)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication.Core.Test (7)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (13)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.BrowserTesting (3)
Microsoft.AspNetCore.Components (17)
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 (19)
Microsoft.AspNetCore.Components.Endpoints.Tests (154)
Assets\ImportMapDefinitionTest.cs (14)
28new Dictionary<string, string>
56new Dictionary<string, IReadOnlyDictionary<string, string>>
58["/scoped/"] = new Dictionary<string, string>
85new Dictionary<string, string>
90new Dictionary<string, string>
136new Dictionary<string, string>
140new Dictionary<string, IReadOnlyDictionary<string, string>>
142["/legacy/"] = new Dictionary<string, string>
147new Dictionary<string, string>
153new Dictionary<string, string>
158new Dictionary<string, IReadOnlyDictionary<string, string>>
160["/scoped/"] = new Dictionary<string, string>
164["/legacy/"] = new Dictionary<string, string>
169new Dictionary<string, string>
Binding\FormDataMapperTests.cs (66)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
97var collection = new Dictionary<string, StringValues>() { };
119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
179var collection = new Dictionary<string, StringValues>() { };
196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) };
239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
273var collection = new Dictionary<string, StringValues>() { };
290var data = new Dictionary<string, StringValues>() { };
306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" };
322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) };
340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) };
401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) };
609var collection = new Dictionary<string, StringValues>()
897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
905var expected = new ConcurrentDictionary<int, int>(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
913var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
921var expected = ImmutableSortedDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
929var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
931var collection = new Dictionary<string, StringValues>()
960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
985var collection = new Dictionary<string, StringValues>()
1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
1015var collection = new Dictionary<string, StringValues>()
1044var collection = new Dictionary<string, StringValues>() { };
1105var expected = new Dictionary<int, int>
1118var collection = new Dictionary<string, StringValues>()
1166var expected = new Dictionary<int, int>
1177var collection = new Dictionary<string, StringValues>()
1226var collection = new Dictionary<string, StringValues>()
1254var collection = new Dictionary<string, StringValues>()
1290var data = new Dictionary<string, StringValues>()
1315var data = new Dictionary<string, StringValues>()
1356var data = new Dictionary<string, StringValues>()
1415var data = new Dictionary<string, StringValues>()
1486var data = new Dictionary<string, StringValues>()
1541Children = new Dictionary<int, RecursiveDictionaryTree>() { [0] = expected }
1545var data = new Dictionary<string, StringValues>()
1590var data = new Dictionary<string, StringValues>()
1629var data = new Dictionary<string, StringValues>()
1660var data = new Dictionary<string, StringValues>()
1679var data = new Dictionary<string, StringValues>()
1698var data = new Dictionary<string, StringValues>()
1717var data = new Dictionary<string, StringValues>()
1739var data = new Dictionary<string, StringValues>()
1761var data = new Dictionary<string, StringValues>()
1787var data = new Dictionary<string, StringValues>()
1812var data = new Dictionary<string, StringValues>()
1832var data = new Dictionary<string, StringValues>()
1852var data = new Dictionary<string, StringValues>() { };
1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" };
1906var data = new Dictionary<string, StringValues>();
1934var data = new Dictionary<string, StringValues>();
1967var data = new Dictionary<string, StringValues>();
1989var data = new Dictionary<string, StringValues>();
2012var data = new Dictionary<string, StringValues>();
2045var data = new Dictionary<string, StringValues>();
2080var data = new Dictionary<string, StringValues>()
EndpointHtmlRendererTest.cs (21)
212ParameterView.FromDictionary(new Dictionary<string, object>
250ParameterView.FromDictionary(new Dictionary<string, object>
286ParameterView.FromDictionary(new Dictionary<string, object>
336ParameterView.FromDictionary(new Dictionary<string, object>
475var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
533var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
550var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
589var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
628var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } });
728var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } });
745var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
775var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } });
797ParameterView.FromDictionary(new Dictionary<string, object>
817ParameterView.FromDictionary(new Dictionary<string, object>
837ParameterView.FromDictionary(new Dictionary<string, object>
876ParameterView.FromDictionary(new Dictionary<string, object>
892ParameterView.FromDictionary(new Dictionary<string, object>
924ParameterView.FromDictionary(new Dictionary<string, object>
1005ParameterView.FromDictionary(new Dictionary<string, object>
1608ParameterView.FromDictionary(new Dictionary<string, object>
ImportMapTest.cs (20)
39new Dictionary<string, string>
44new Dictionary<string, IReadOnlyDictionary<string, string>>
46["development"] = new Dictionary<string, string>
52new Dictionary<string, string>
59importMap.AdditionalAttributes = new Dictionary<string, object> { ["nonce"] = "random" }.AsReadOnly();
85new Dictionary<string, string>
90new Dictionary<string, IReadOnlyDictionary<string, string>>
92["development"] = new Dictionary<string, string>
98new Dictionary<string, string>
130new Dictionary<string, string>
135new Dictionary<string, IReadOnlyDictionary<string, string>>
137["development"] = new Dictionary<string, string>
143new Dictionary<string, string>
150new Dictionary<string, string>
169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
195new Dictionary<string, string>
200new Dictionary<string, IReadOnlyDictionary<string, string>>
202["development"] = new Dictionary<string, string>
208new Dictionary<string, string>
225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.QuickGrid.Tests (3)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Server.Tests (48)
Circuits\CircuitHostTest.cs (15)
531Dictionary<string, object> parameters = new()
557Dictionary<string, object> parameters = new()
582Dictionary<string, object> parameters = new()
608await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
615Dictionary<string, object> parameters = new()
647await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>()
652Dictionary<string, object> parameters = new()
682Dictionary<string, object> parameters = new()
705await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 0, new Dictionary<string, object>
709await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>
716new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] });
724Marker = CreateMarker(typeof(DynamicallyAddedComponent), "2", new Dictionary<string, object>
730parameters: CreateWebRootComponentParameters(new Dictionary<string, object>
746Marker = CreateMarker(typeof(DynamicallyAddedComponent), "1", new Dictionary<string, object>
752parameters: CreateWebRootComponentParameters(new Dictionary<string, object>
Circuits\CircuitPersistenceManagerTest.cs (10)
41(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
76new Dictionary<string, object>
95(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
99(RootComponentType: typeof(SecondRootComponent), Parameters: new Dictionary<string, object>
129new Dictionary<string, object>
140new Dictionary<string, object>
159(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
192ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] },
223(RootComponentType: typeof(RootComponent), Parameters: new Dictionary<string, object>
258ApplicationState = new Dictionary<string, byte[]> { ["test"] = [1, 2, 3] },
Circuits\ServerComponentDeserializerTest.cs (7)
44(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = "Value" })));
63(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = null })));
103(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
104(typeof(TestComponent), new Dictionary<string, object> { ["Second"] = null })));
133(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
323(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
402Marker = CreateMarker(typeof(DynamicallyAddedComponent), new()
Microsoft.AspNetCore.Components.Tests (203)
PersistentState\ComponentStatePersistenceManagerTest.cs (11)
44var state = new Dictionary<string, byte[]>
66var state = new Dictionary<string, byte[]>
88var state = new Dictionary<string, byte[]>();
140var state = new Dictionary<string, byte[]>();
167var state = new Dictionary<string, byte[]>();
189var state = new Dictionary<string, byte[]>();
219var state = new Dictionary<string, byte[]>();
255var state = new Dictionary<string, byte[]>();
283var state = new Dictionary<string, byte[]>();
311var state = new Dictionary<string, byte[]>();
360var state = new Dictionary<string, byte[]>();
PersistentState\PersistentComponentStateTest.cs (25)
18var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
19var existingState = new Dictionary<string, byte[]>
36var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
37var existingState = new Dictionary<string, byte[]>
52var currentState = new Dictionary<string, byte[]>();
66var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
67var existingState = new Dictionary<string, byte[]>
85var currentState = new Dictionary<string, byte[]>();
104var currentState = new Dictionary<string, byte[]>();
121var currentState = new Dictionary<string, byte[]>();
140var currentState = new Dictionary<string, byte[]>();
160var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
178var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
179var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
195var currentState = new Dictionary<string, byte[]>();
198applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
214var currentState = new Dictionary<string, byte[]>();
217applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
233var currentState = new Dictionary<string, byte[]>();
236applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
252var currentState = new Dictionary<string, byte[]>();
255applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
271var currentState = new Dictionary<string, byte[]>();
274applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
PersistentState\PersistentServicesRegistryTest.cs (23)
32var testStore = new TestStore(new Dictionary<string, byte[]>());
36await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
77var testStore = new TestStore(new Dictionary<string, byte[]>());
79await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
113var testStore = new TestStore(new Dictionary<string, byte[]>());
146var testStore = new TestStore(new Dictionary<string, byte[]>());
147await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
176var testStore = new TestStore(new Dictionary<string, byte[]>());
216var testStore = new TestStore(new Dictionary<string, byte[]>());
218await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
252var testStore = new TestStore(new Dictionary<string, byte[]>());
332var testStore = new TestStore(new Dictionary<string, byte[]>());
334await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
379var testStore = new TestStore(new Dictionary<string, byte[]>());
380await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
420var testStore = new TestStore(new Dictionary<string, byte[]>());
422await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
456var testStore = new TestStore(new Dictionary<string, byte[]>());
458await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
492var initialStore = new TestStore(new Dictionary<string, byte[]>());
494await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
505var updatedStore = new TestStore(new Dictionary<string, byte[]>());
507await updatedManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
PersistentStateValueProviderKeyResolverTests.cs (8)
52var state = new Dictionary<string, byte[]>();
90var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
107var state = new Dictionary<string, byte[]>();
145var newState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
160var state = new Dictionary<string, byte[]>();
210var state = new Dictionary<string, byte[]>();
248var state = new Dictionary<string, byte[]>();
287var state = new Dictionary<string, byte[]>();
PersistentValueProviderComponentSubscriptionTests.cs (23)
23var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
24state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
45var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
46state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
69var initialState = new Dictionary<string, byte[]>();
99var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
100state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
129var initialState = new Dictionary<string, byte[]>();
159var initialState = new Dictionary<string, byte[]>();
189var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
190state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
209var initialState = new Dictionary<string, byte[]>();
243var appState = new Dictionary<string, byte[]>();
276var newState = new Dictionary<string, byte[]>
296var initialState = new Dictionary<string, byte[]>();
336var initialState = new Dictionary<string, byte[]>();
396var initialState = new Dictionary<string, byte[]>();
649var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
650state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
672var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
673state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
695var state = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []);
696state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
RendererTest.cs (49)
239await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
241[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
258[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
283renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
299renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
398await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
400[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
417[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
442await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
444[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
461[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
486await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
488[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
519[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
2633ChildParameters = new Dictionary<string, object>
2760ChildParameters = new Dictionary<string, object>
3553var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3555[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3566[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3586var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3588[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3599[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3619var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3621[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3632[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3653var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3655[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3670[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3750var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3752[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3780[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3808var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3810[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3836[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3863var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3865[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3891[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3917var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3919[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3947[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4047var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4049[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4060[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4081var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4083[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4094[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4118await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4120[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4136[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
Routing\RouterTest.cs (10)
189var parameters = new Dictionary<string, object>
209var parameters = new Dictionary<string, object>
235var parameters = new Dictionary<string, object>
256var parameters = new Dictionary<string, object>
289var parameters = new Dictionary<string, object>
323var parameters = new Dictionary<string, object>
370var parameters = new Dictionary<string, object>
422var parameters = new Dictionary<string, object>
459var parameters = new Dictionary<string, object>
474var parameters = new Dictionary<string, object>
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 (7)
Microsoft.AspNetCore.Components.Web.Tests (32)
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>
Media\ImageTest.cs (8)
41await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
58await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
64await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
82await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
100await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
105await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
121await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
127await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?>
Microsoft.AspNetCore.Components.WebAssembly (4)
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 (5)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Tests (11)
RegistryPolicyResolverTests.cs (10)
21var registryEntries = new Dictionary<string, object>();
37var registryEntries = new Dictionary<string, object>()
58var registryEntries = new Dictionary<string, object>()
75var registryEntries = new Dictionary<string, object>()
92var registryEntries = new Dictionary<string, object>()
116var registryEntries = new Dictionary<string, object>()
152var registryEntries = new Dictionary<string, object>()
174var registryEntries = new Dictionary<string, object>()
204var registryEntries = new Dictionary<string, object>()
226var registryEntries = new Dictionary<string, object>()
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (17)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (32)
UnaryServerCallHandlerTests.cs (25)
55var routeParameterDescriptors = new Dictionary<string, RouteParameter>
99var routeParameterDescriptors = new Dictionary<string, RouteParameter>
133var routeParameterDescriptors = new Dictionary<string, RouteParameter>
206httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
244httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
291httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
341httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
391httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
441httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
491httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
525httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
553httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
584httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
620httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
651httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
677httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
704httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1326httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1493httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1521httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1604httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1621httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1665httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1760httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
1794httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Hosting.Tests (33)
WebHostBuilderTests.cs (10)
296var data = new Dictionary<string, string>
511var settings = new Dictionary<string, string>
537var settings = new Dictionary<string, string>
563var settings = new Dictionary<string, string>
572var overrideSettings = new Dictionary<string, string>
598var vals = new Dictionary<string, string>
627var vals = new Dictionary<string, string>
648var vals = new Dictionary<string, string>
1481var vals = new Dictionary<string, string>
1507var vals = new Dictionary<string, string>
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>();
308var values = new Dictionary<string, StringValues>();
350var values = new Dictionary<string, StringValues>();
388var values = new Dictionary<string, StringValues>();
427var values = new Dictionary<string, StringValues>();
467var values = new Dictionary<string, StringValues>();
530var values = new Dictionary<string, StringValues>();
598var values = new Dictionary<string, StringValues>();
661var values = new Dictionary<string, StringValues>();
765var values = new Dictionary<string, StringValues>();
907var values = new Dictionary<string, StringValues>();
1842var values = new Dictionary<string, StringValues>();
1894var values = new Dictionary<string, StringValues>();
2570var values = new Dictionary<string, StringValues>();
2630var values = new Dictionary<string, StringValues>();
2687var values = new Dictionary<string, StringValues>();
3703var values = new Dictionary<string, StringValues>();
3740var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (10)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Results.Tests (32)
CreatedAtRouteOfTResultTests.cs (7)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
42new Dictionary<string, string>() { { "hello", "world" } }
46new RouteValueDictionary(new Dictionary<string, string>() {
82routeValues: new Dictionary<string, object>(),
136routeValues: new Dictionary<string, object>(),
151routeValues: new Dictionary<string, object>(),
167routeValues: new Dictionary<string, object>(),
ResultsTests.cs (5)
1256var extensions = new Dictionary<string, object> { { "test", "value" } };
1304var extensions = (IReadOnlyDictionary<string, object>)new Dictionary<string, object> { ["test"] = "value" };
1399var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } };
1405var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
1780(() => Results.ValidationProblem(new Dictionary<string, string[]>(), null, null, null, null, null, null), typeof(ProblemHttpResult)),
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.HttpOverrides.Tests (3)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.FunctionalTests (23)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
Microsoft.AspNetCore.JsonPatch.Tests (14)
Microsoft.AspNetCore.Mvc.Abstractions (5)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (16)
Microsoft.AspNetCore.Mvc.Core.Test (176)
ControllerBaseTest.cs (10)
1406var expected = new Dictionary<string, object>
1446var expected = new Dictionary<string, object>
1467var expected = new Dictionary<string, object>
1600var expected = new Dictionary<string, object>
1625var expected = new Dictionary<string, object>
1646var expected = new Dictionary<string, object>
2444var actionResult = controller.ValidationProblem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2521var actionResult = controller.Problem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2590new Dictionary<string, object> { { "hello", "world" } },
2594var expected2 = new Dictionary<string, object>
Infrastructure\ControllerActionInvokerTest.cs (26)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
988var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.Echo), new Dictionary<string, object>() { { "input", inputString } });
1015new Dictionary<string, object>() { { "input", inputString } });
1038new Dictionary<string, object>());
1065new Dictionary<string, object>() { { "input", inputString } });
1091new Dictionary<string, object>());
1118new Dictionary<string, object>() { { "input", inputString } });
1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } };
1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } };
1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } };
1371new Dictionary<string, object>());
1405.Returns(new Dictionary<object, object>());
1455var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1480var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1504var actionParameters = new Dictionary<string, object>();
1528var actionParameters = new Dictionary<string, object>();
1687arguments = 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>
1152items: 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 (3)
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 (25)
Services\OpenApiDocumentService.cs (12)
271var operations = new Dictionary<HttpMethod, OpenApiOperation>();
275operation.Metadata ??= new Dictionary<string, object>();
415Content = new Dictionary<string, OpenApiMediaType>()
573Content = new Dictionary<string, OpenApiMediaType>()
576var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
613Properties = new Dictionary<string, IOpenApiSchema>
621schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
653Properties = new Dictionary<string, IOpenApiSchema>
673schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
683var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
695schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
747Content = new Dictionary<string, OpenApiMediaType>(),
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
Microsoft.AspNetCore.OpenApi.Tests (23)
Transformers\SchemaTransformerTests.cs (11)
155schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
162schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
189schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
451builder.MapGet("/dictionary", () => new Dictionary<string, int> { { "key", 1 } });
499schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
568schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
610schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
652schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
741schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
957schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
1006schema.Extensions ??= new Dictionary<string, IOpenApiExtension>();
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.Owin.Tests (5)
Microsoft.AspNetCore.Razor.Runtime (5)
Microsoft.AspNetCore.Razor.Runtime.Test (16)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (15)
21items: new Dictionary<object, object>(),
44items: new Dictionary<object, object>(),
69items: new Dictionary<object, object>(),
104items: new Dictionary<object, object>(),
123items: new Dictionary<object, object>(),
149var items = new Dictionary<object, object>();
167var updatedItems = new Dictionary<object, object>();
209var expectedItems = new Dictionary<object, object>
272items: new Dictionary<object, object>(),
300items: new Dictionary<object, object>(),
322items: new Dictionary<object, object>(),
349items: new Dictionary<object, object>(),
376items: new Dictionary<object, object>(),
406items: new Dictionary<object, object>(),
433items: new Dictionary<object, object>(),
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (1)
403: base()
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Rewrite.Tests (8)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Microsoft.AspNetCore.Routing.Tests (24)
RouteTest.cs (7)
308var constraints = new Dictionary<string, object>();
1538new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1539new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1543new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
1547new Dictionary<string,object>(),
1551new Dictionary<string, object>()
1555new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (33)
SniOptionsSelectorTests.cs (22)
27var sniDictionary = new Dictionary<string, SniConfig>
94var sniDictionary = new Dictionary<string, SniConfig>
140var sniDictionary = new Dictionary<string, SniConfig>
188var sniDictionary = new Dictionary<string, SniConfig>
252var sniDictionary = new Dictionary<string, SniConfig>
297var sniDictionary = new Dictionary<string, SniConfig>
339new Dictionary<string, SniConfig>(),
355var sniDictionary = new Dictionary<string, SniConfig>
387var sniDictionary = new Dictionary<string, SniConfig>
414var sniDictionary = new Dictionary<string, SniConfig>
455var sniDictionary = new Dictionary<string, SniConfig>
508var sniDictionary = new Dictionary<string, SniConfig>
528var sniDictionary = new Dictionary<string, SniConfig>
552var sniDictionary = new Dictionary<string, SniConfig>
580var sniDictionary = new Dictionary<string, SniConfig>
611var sniDictionary = new Dictionary<string, SniConfig>
644var sniDictionary = new Dictionary<string, SniConfig>
674var sniDictionary = new Dictionary<string, SniConfig>
708var sniDictionary = new Dictionary<string, SniConfig>
737var sniDictionary = new Dictionary<string, SniConfig>
773var sniDictionary = new Dictionary<string, SniConfig>
954public override IDictionary<object, object> Items { get; set; } = new Dictionary<object, object>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (9)
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)
417builder.AddInMemoryCollection(new Dictionary<string, string>
425builder.AddInMemoryCollection(new Dictionary<string, string>
433builder.AddInMemoryCollection(new Dictionary<string, string>
441builder.AddInMemoryCollection(new Dictionary<string, string>
449builder.AddInMemoryCollection(new Dictionary<string, string>
457builder.AddInMemoryCollection(new Dictionary<string, string>
1084builder.AddInMemoryCollection(new Dictionary<string, string>
1125config.AddInMemoryCollection(new Dictionary<string, string>()
1134config.AddInMemoryCollection(new Dictionary<string, string>()
1147config.AddInMemoryCollection(new Dictionary<string, string>()
1184config.AddInMemoryCollection(new Dictionary<string, string>()
1194config.AddInMemoryCollection(new Dictionary<string, string>()
1203builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>()
1229config.AddInMemoryCollection(new Dictionary<string, string>()
1247builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>()
1524builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
2309builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build (93)
Microsoft.Build.BuildCheck.UnitTests (28)
Microsoft.Build.CommandLine.UnitTests (3)
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)
1153ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
1173ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
2214var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2274var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2723new Dictionary<string, string>
2733new Dictionary<string, string>
2760var expectedInitial = new Dictionary<string, string>
2765var expectedUpdateFromTrue = new Dictionary<string, string>
2802var expectedInitial = new Dictionary<string, string>
2807var expectedUpdateFromUnconditionedElement = new Dictionary<string, string>
2835var expectedUpdate = new Dictionary<string, string>
2871Dictionary<string, string> expectedUpdatei = new Dictionary<string, string>
2875Dictionary<string, string> expectedUpdatej = new Dictionary<string, string>
2942var expectedMetadata = new Dictionary<string, string>
2972var expectedMetadata = new Dictionary<string, string>
3026var expectedMetadataX = new Dictionary<string, string>
3031var expectedMetadataA = new Dictionary<string, string>
3038var expectedMetadataB = new Dictionary<string, string>
3072var expectedMetadataA = new Dictionary<string, string>
3079var expectedMetadataB = new Dictionary<string, string>
3086var expectedMetadataC = new Dictionary<string, string>
3138? new Dictionary<string, string>
3142: new Dictionary<string, string>
3166var expectedMetadataA = new Dictionary<string, string>
3185var expectedMetadataA = new Dictionary<string, string>
3212var expectedMetadataA = new Dictionary<string, string>
3252var expectedMetadataX = new Dictionary<string, string>
3260var expectedMetadata2 = new Dictionary<string, string>
3268var expectedMetadataCCC = new Dictionary<string, string>
3276var expectedMetadata1 = new Dictionary<string, string>
3285var expectedMetadataD = new Dictionary<string, string>
3293var expectedMetadataY = new Dictionary<string, string>
3343var expectedMetadataB = new Dictionary<string, string>
3348var expectedMetadataA = new Dictionary<string, string>()
3353var expectedMetadataC = new Dictionary<string, string>();
3408var expectedInitialMetadata = new Dictionary<string, string>
3414var expectedUpdatedMetadata = new Dictionary<string, string>
3450var expected_i1 = new Dictionary<string, string>
3456var expected_i2_a = new Dictionary<string, string>
3462var expected_i2_y = new Dictionary<string, string>
3499var expectedInitial = new Dictionary<string, string>
3505var expectedUpdated = new Dictionary<string, string>
3534var expectedUpdated = new Dictionary<string, string>
3549new Dictionary<string, string> {{"m", "contents"}},
3550new Dictionary<string, string> {{"m", "updated"}}
3618new Dictionary<string, string> {{"m", "contents"}},
3619new Dictionary<string, string> {{"m", "contents"}},
3620new Dictionary<string, string> {{"m", "contents"}},
3621new Dictionary<string, string> {{"m", "updated"}}
3658return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
3687var expectedUpdated = new Dictionary<string, string>
3754var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Microsoft.Build.Engine.UnitTests (485)
BackEnd\AssemblyTaskFactory_Tests.cs (8)
60taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
72taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
84taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
96taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
110taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
124taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
722factoryParameters ??= new Dictionary<string, string>();
725_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BuildManager_Tests.cs (41)
178new Dictionary<int, int[]>
201new Dictionary<string, string>(),
496ItemFilters = new Dictionary<string, List<string>>
650var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
703var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
773var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
833var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
900var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
931var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
1098BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1108GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1118BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1128GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1152var globalProperties = new Dictionary<string, string>();
1217BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1230GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1246new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1880var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
2411var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2472var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2530var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2578var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2667var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices());
2737var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2834var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2934var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3020var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3089var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3374var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services);
3382data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services);
3513BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services);
3705var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3729var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3799new Dictionary<string, string>(),
3856var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion,
3956new Dictionary<string, string>(),
4045var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null);
4101var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4102var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4344var graph = Helpers.CreateProjectGraph(env: _env, dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } });
4353new 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)
330BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
361BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
389BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
442BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
448BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (10)
23BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
44BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
92BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
114BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
144BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
181BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
197BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
214BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
238BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
258BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
76configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
77configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
98configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
127configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
149configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
157configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
193configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
211configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
212configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
223configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13"));
224configCache2.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)
60BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
86BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
102BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
111data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
116data = 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)
3957BuildRequestEntry 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"));
3987var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
3992var 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)
81BuildSubmissionStartedEventArgs buildSubmissionStarted = new(new Dictionary<string, string> { { "Value1", "Value2" } }, ["Path1"], ["TargetName"], BuildRequestDataFlags.ReplaceExistingProjectInstance, 123);
176return new Dictionary<string, string>
296ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
302ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
308ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
314ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
320ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
BackEnd\Scheduler_Tests.cs (2)
551BuildRequest request1 = CreateProxyBuildRequest(1, 1, new ProxyTargets(new Dictionary<string, string> { { "foo", "bar" } }), null);
738BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null);
BackEnd\TargetEntry_Tests.cs (6)
86BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
101BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
115BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
767new Dictionary<string, string>(),
917BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
935BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskHostConfiguration_Tests.cs (8)
234IDictionary<string, object> parameters = new Dictionary<string, object>();
261IDictionary<string, object> parameters2 = new Dictionary<string, object>();
332var expectedGlobalProperties = new Dictionary<string, string>
455taskParameters: new Dictionary<string, object>(),
456globalParameters: new Dictionary<string, string>(),
483IDictionary<string, object> parameters = new Dictionary<string, object>();
533IDictionary<string, object> parameters = new Dictionary<string, object>();
581IDictionary<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)
28GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
55GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
62new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })),
93GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } },
100new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })),
104new 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)
1665IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1727Dictionary<string, string> globalProperties = new Dictionary<string, string>();
1778IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1796IDictionary<string, string> globalProperties = new Dictionary<string, string>();
1913IDictionary<string, string> globalProperties = new Dictionary<string, string>();
2104Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2202Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2290Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2367Dictionary<string, string> globalProperties = new Dictionary<string, string>();
2549var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } };
2790Dictionary<string, string> globalProperties = new Dictionary<string, string>();
Definition\Toolset_Tests.cs (9)
107subToolsets, "c:\\foo", "4.0", new Dictionary<string, ProjectImportPathMatch>
245IDictionary<string, string> globalProperties = new Dictionary<string, string>();
297IDictionary<string, string> globalProperties = new Dictionary<string, string>();
317IDictionary<string, string> globalProperties = new Dictionary<string, string>();
325IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
345IDictionary<string, string> globalProperties = new Dictionary<string, string>();
388IDictionary<string, string> globalProperties = new Dictionary<string, string>();
433IDictionary<string, string> globalProperties = new Dictionary<string, string>();
441IDictionary<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" } } }));
Evaluation\SdkResultEvaluation_Tests.cs (4)
454Dictionary<string, string> propertiesToAdd = new Dictionary<string, string>()
459Dictionary<string, SdkResultItem> itemsToAdd = new Dictionary<string, SdkResultItem>()
463new SdkResultItem(itemSpec: "ItemValue" + specialString, new Dictionary<string, string>()
503factory.IndicateSuccess(Path.Combine(_testFolder, "Sdk"), "1.0.0", null, null, null, environmentVariablesToAdd: new Dictionary<string, string>
Graph\GraphLoadedFromSolution_tests.cs (33)
95new Dictionary<int, int[]>()
100new Dictionary<int, int[]>
108new Dictionary<int, int[]>
117new Dictionary<int, int[]>
125new Dictionary<int, int[]>
134new Dictionary<int, int[]>
142new Dictionary<int, int[]>
151new Dictionary<int, int[]>
161new Dictionary<int, int[]>
228Projects = new Dictionary<string, string>
233ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>>
236"1", new Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>
264new Dictionary<int, int[]> // graph nodes and ProjectReference edges
276new Dictionary<int, int[]>
288new Dictionary<int, int[]>
303new Dictionary<int, int[]>
318new Dictionary<int, int[]>
333new Dictionary<int, int[]>
344new Dictionary<int, int[]>
355new Dictionary<int, int[]>
366new Dictionary<int, int[]>
381new Dictionary<int, int[]>
396new Dictionary<int, int[]>
411new Dictionary<int, int[]>
426new Dictionary<int, int[]>
439new Dictionary<int, int[]>
452new Dictionary<int, int[]>
465new Dictionary<int, int[]>
486new Dictionary<string, string>()
590new Dictionary<int, int[]>()
609Projects = new Dictionary<string, string>
674? new Dictionary<string, string>
680: 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)
182new Dictionary<int, int[]>
190new Dictionary<int, int[]>
199new Dictionary<int, int[]>
207new Dictionary<int, int[]>
216new Dictionary<int, int[]>
225new Dictionary<int, int[]>
233new Dictionary<int, int[]>
243new Dictionary<int, int[]>
253new Dictionary<int, int[]>
262new Dictionary<int, int[]>
271new Dictionary<int, int[]>
296var expectedOutput = new ExpectedNodeBuildOutput();
298var outputCaches = new OutputCacheDictionary();
338dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
343var expectedOutput = new ExpectedNodeBuildOutput();
345var outputCaches = new OutputCacheDictionary();
376dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
381var expectedOutput = new ExpectedNodeBuildOutput();
383var outputCaches = new OutputCacheDictionary();
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (3)
70new FakeProjectItemLink(project, "Compile", "File1.cs", @"Q:\FakeFolder\Project\Project.proj", new Dictionary<string, string> { { "Metadata1", "Value1" } }),
71new FakeProjectItemLink(project, "Compile", "File2.cs", @"Q:\FakeFolder\Project\a.props", new Dictionary<string, string> { { "Metadata2", "Value2" } })
105new FakeProjectItemLink(project, "Compile", "File1.cs", @"Q:\FakeFolder\Project\Project.proj", new Dictionary<string, string> { { "Metadata1", "Value1" } }),
ProjectCache\ProjectCacheTests.cs (39)
123NonCacheMissResults = nonCacheMissResults ?? new Dictionary<int, CacheResult>();
137new Dictionary<string, string>
154new Dictionary<string, string>
356new Dictionary<int, int[]?>
362new Dictionary<int, int[]?>
366new Dictionary<int, CacheResult>
372new Dictionary<int, int[]?>
376new Dictionary<int, CacheResult>
382new Dictionary<int, int[]?>
388new Dictionary<int, int[]?>
392new Dictionary<int, CacheResult>
398new Dictionary<int, int[]?>
402new Dictionary<int, CacheResult>
408new Dictionary<int, int[]?>
412new Dictionary<int, CacheResult>
419new Dictionary<int, int[]?>
514var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
546new Dictionary<int, int[]?>
550extraContentPerProjectNumber: new Dictionary<int, string>()
566var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
606new Dictionary<string, string>
685graphEdges: new Dictionary<int, int[]?>
705var globalProperties = new Dictionary<string, string>
749new Dictionary<int, int[]?>
753new Dictionary<int, CacheResult>
929new Dictionary<int, int[]?>
960new Dictionary<int, int[]?>
984new Dictionary<int, int[]?>
988new Dictionary<int, CacheResult>
1000new Dictionary<string, string>
1042new Dictionary<int, int[]?>
1074dependencyEdges: new Dictionary<int, int[]?>
1078extraContentPerProjectNumber: new Dictionary<int, string>
1250new Dictionary<int, int[]?>
1381new Dictionary<int, int[]?>
1474new Dictionary<int, int[]?>
1504new Dictionary<string, string>
1537new Dictionary<int, int[]?>
1624new ProxyTargets(new Dictionary<string, string> { { proxyTarget, cacheHitTarget } })));
TerminalLogger_Tests.cs (5)
210return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>())
347Properties = properties?.ToDictionary(k => k.Item1, v => v.Item2) ?? new Dictionary<string, string>(),
611new Dictionary<string, string?>() { { "displayName", "testName1" }, { "localizedResult", "passed" } }));
616new Dictionary<string, string?>() { { "displayName", "testName2" }, { "localizedResult", "skipped" } }));
621new Dictionary<string, string?>() { { "total", "10" }, { "passed", "7" }, { "skipped", "2" }, { "failed", "1" } }));
Microsoft.Build.Framework (21)
Microsoft.Build.Framework.UnitTests (13)
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.Sdk (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (4)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (58)
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 (25)
Microsoft.Build.Tasks.UnitTests (41)
ResolveSDKReference_Tests.cs (13)
332Dictionary<string, string> dict = new Dictionary<string, string>();
3815IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
3824targetResults = new Dictionary<string, TargetResult>();
3958IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
3967targetResults = new Dictionary<string, TargetResult>();
4067IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
4076targetResults = new Dictionary<string, TargetResult>();
4164IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
4175targetResults = new Dictionary<string, TargetResult>();
4198SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2");
4200new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
4333IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
Microsoft.Build.UnitTests.Shared (9)
ObjectModelHelpers.cs (8)
124return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
259expectedDirectMetadata = new Dictionary<string, string>();
469expected ??= new Dictionary<string, string>();
1018BuildRequestData data = new BuildRequestData(projectFileFullPath, globalProperties ?? new Dictionary<string, string>(), null, targets, null);
1440new Dictionary<string, string>(),
1767var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>();
1816globalProperties ?? new Dictionary<string, string>(),
2121globalProperties ?? new Dictionary<string, string>(),
Microsoft.Build.Utilities.Core (10)
Microsoft.Build.Utilities.UnitTests (7)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (67)
Emit\EditAndContinue\EmitBaseline.cs (15)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(),
177typesAdded: new Dictionary<Cci.ITypeDefinition, int>(),
178eventsAdded: new Dictionary<Cci.IEventDefinition, int>(),
179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(),
180methodsAdded: new Dictionary<Cci.IMethodDefinition, int>(),
181firstParamRowMap: new Dictionary<MethodDefinitionHandle, int>(),
182propertiesAdded: new Dictionary<Cci.IPropertyDefinition, int>(),
183eventMapAdded: new Dictionary<int, int>(),
184propertyMapAdded: new Dictionary<int, int>(),
185methodImplsAdded: new Dictionary<MethodImplKey, int>(),
186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(),
195methodsAddedOrChanged: new Dictionary<int, AddedOrChangedMethodInfo>(),
503var result = new Dictionary<int, int>();
518var result = new Dictionary<int, int>();
533var result = new Dictionary<MethodImplKey, int>();
MetadataReader\PEModule.cs (4)
50private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>();
51private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>();
676Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?>();
3881typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
Microsoft.CodeAnalysis.Analyzers (26)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
Microsoft.CodeAnalysis.BannedApiAnalyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.CodeStyle (13)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.CSharp (49)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
CommandLineTests.cs (28)
481var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>()
595patterns: new Dictionary<string, string[]>()
599recursivePatterns: new Dictionary<string, string[]>()
2437var expectedEmbeddedMap = new Dictionary<string, string>();
9871Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } }));
9875Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } }));
13932ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true);
13973ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true);
14014ValidateEmbeddedSources_Portable(new Dictionary<string, string>
14098ValidateWrittenSources(new()
14100{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { expectedFileName, generatedSource } } }
14124ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } });
14131ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } });
14161ValidateWrittenSources(new()
14163{ generator1Prefix, new() { { source1Name, source1 } } },
14164{ generator2Prefix, new() { { source2Name, source2 } } }
14200ValidateWrittenSources(new()
14202{ Path.Combine(generatedDir.Path, generatorPrefix, expectedDir), new() { { generatedFileName, generatedSource } } }
14252ValidateWrittenSources(new()
14255{ Path.Combine(generatedDir.Path, "generator", "TestGenerator"), new() { { "generatedSource.cs", "//from version 2.0.0.0" } } }
14273ValidateWrittenSources(new() { { generatedDir.Path, new() } });
14317ValidateWrittenSources(new() { { Path.Combine(generatedDir.Path, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } });
14629ValidateWrittenSources(new()
14631{ generatorPrefix, new() { { "Generated.cs", generatedSource } } },
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
MoveToNamespace\MoveToNamespaceTests.cs (27)
106expectedSymbolChanges: new Dictionary<string, string>()
133expectedSymbolChanges: new Dictionary<string, string>()
160expectedSymbolChanges: new Dictionary<string, string>()
187expectedSymbolChanges: new Dictionary<string, string>()
215expectedSymbolChanges: new Dictionary<string, string>()
293expectedSymbolChanges: new Dictionary<string, string>()
361expectedSymbolChanges: new Dictionary<string, string>()
441expectedSymbolChanges: new Dictionary<string, string>()
467expectedSymbolChanges: new Dictionary<string, string>()
503expectedSymbolChanges: new Dictionary<string, string>()
541expectedSymbolChanges: new Dictionary<string, string>()
577expectedSymbolChanges: new Dictionary<string, string>()
615expectedSymbolChanges: new Dictionary<string, string>()
662expectedSymbolChanges: new Dictionary<string, string>()
709expectedSymbolChanges: new Dictionary<string, string>()
756expectedSymbolChanges: new Dictionary<string, string>()
803expectedSymbolChanges: new Dictionary<string, string>()
870expectedSymbolChanges: new Dictionary<string, string>()
927expectedSymbolChanges: new Dictionary<string, string>()
1048expectedSymbolChanges: new Dictionary<string, string>()
1105expectedSymbolChanges: new Dictionary<string, string>()
1162expectedSymbolChanges: new Dictionary<string, string>()
1259expectedSymbolChanges: new Dictionary<string, string>()
1307expectedSymbolChanges: new Dictionary<string, string>()
1480expectedSymbolChanges: new Dictionary<string, string>()
1524expectedSymbolChanges: new Dictionary<string, string>()
1554expectedSymbolChanges: new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Attributes\AttributeTests_MarshalAs.cs (21)
230var blobs = new Dictionary<string, byte[]>
327var blobs = new Dictionary<string, byte[]>
374var blobs = new Dictionary<string, byte[]>
461var blobs = new Dictionary<string, byte[]>
486var expectedBlobs = new Dictionary<string, byte[]>();
594var blobs = new Dictionary<string, byte[]>
632var expectedBlobs = new Dictionary<string, byte[]>();
760var blobs = new Dictionary<string, byte[]>
800var blobs = new Dictionary<string, byte[]>
832var cciBlobs = new Dictionary<string, byte[]>
913var blobs = new Dictionary<string, byte[]>
1032var blobs = new Dictionary<string, byte[]>
1140var blobs = new Dictionary<string, byte[]>()
1185var blobs = new Dictionary<string, byte[]>()
1220var blobs = new Dictionary<string, byte[]>()
1251CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1278CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1299CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1321CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1349CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>()
1493CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>
Diagnostics\DiagnosticAnalyzerTests.cs (11)
317var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
332specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
344specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
459var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
531var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
540specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1141var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1283specificOptions = specificOptions ?? new Dictionary<string, ReportDiagnostic>();
1303var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } };
1324var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
1347var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
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 (44)
Diagnostics\DiagnosticTest.cs (26)
574IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
618IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
678IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
729IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
785IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
841IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
899IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
957IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1016IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1086IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1157IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1222IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1275IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1329IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1379IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1430var warnings = new Dictionary<string, ReportDiagnostic>();
1486IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1503warnings = new Dictionary<string, ReportDiagnostic>();
1553IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1603IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1659IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1706IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1743IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1776IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>();
1825var warnings = new Dictionary<string, ReportDiagnostic>();
2249var warnings = new Dictionary<string, ReportDiagnostic>();
LexicalAndXml\XmlDocCommentTests.cs (13)
1731VerifyXmlAttributes(xmlElement.StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1768VerifyXmlAttributes((firstComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
1771VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1814VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } });
1849VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
1884VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
1919VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
1954VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
2065VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
2097VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
2131VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } });
2267new Dictionary<string, string>() { { "attr1", "a" }, { "attr2", "b" }, { "attr3", "test" } });
2309VerifyXmlAttributes(thirdLevelTrivia.StartTag.Attributes, new Dictionary<string, string>() { { "attr", "a" } });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>();
61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>();
68Compile = new Dictionary<string, ProjectAssetsTargetLibraryCompile>() { { Path.ChangeExtension(reference.ItemSpecification, "dll"), new ProjectAssetsTargetLibraryCompile() } },
74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } };
98Frameworks = new Dictionary<string, ProjectAssetsProjectFramework>() { { targetFramework, new ProjectAssetsProjectFramework() } }
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (46)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
31new()
Copilot\ICopilotChangeAnalysisService.cs (10)
181var idToCount = new Dictionary<string, int>();
182var categoryToCount = new Dictionary<string, int>();
183var severityToCount = new Dictionary<DiagnosticSeverity, int>();
243var diagnosticIdToCount = new Dictionary<string, int>();
244var diagnosticIdToApplicationTime = new Dictionary<string, TimeSpan>();
245var diagnosticIdToProviderName = new Dictionary<string, HashSet<string>>();
246var providerNameToApplicationTime = new Dictionary<string, TimeSpan>();
247var providerNameToHasConflict = new Dictionary<string, bool>();
248var providerNameToTotalCount = new Dictionary<string, int>();
249var providerNameToSuccessCount = new Dictionary<string, int>();
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
25new()
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (5)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (21)
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.Test.Utilities (18)
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
140builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } });
151.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
Collections\ImmutableSegmentedDictionaryTest.cs (5)
80ImmutableSegmentedDictionary<int, string?> dictionary = new Dictionary<int, string?>
92IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "b" } };
115IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "B" } };
269ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
280ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
Microsoft.CodeAnalysis.VisualBasic (16)
Microsoft.CodeAnalysis.Workspaces (38)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (28)
Options\EditorConfigNamingStyleParserTests.cs (19)
21var dictionary = new Dictionary<string, string>()
69var dictionary = new Dictionary<string, string>()
90var dictionary = new Dictionary<string, string>()
132var dictionary = new Dictionary<string, string>()
149var dictionary = new Dictionary<string, string>()
197var dictionary = new Dictionary<string, string>()
239var dictionary = new Dictionary<string, string>()
282var dictionary = new Dictionary<string, string>()
321var dictionary = new Dictionary<string, string>()
346var rule = new Dictionary<string, string>()
377var rule = new Dictionary<string, string>()
397var charpRule = new Dictionary<string, string>()
405var vbRule = new Dictionary<string, string>()
426var rule = new Dictionary<string, string>()
483var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
519var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
555var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>()
580var dictionary = new Dictionary<string, string>()
649var dictionary = new Dictionary<string, string>()
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (9)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>();
55new Dictionary<KeyPair<CType, int>, ArrayType>();
58new Dictionary<KeyPair<CType, bool>, ParameterModifierType>();
61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>();
62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (3)
Microsoft.Data.Analysis.Interactive.Tests (1)
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.cs (7)
1120df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true);
1124ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false);
1129df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true);
1136ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false);
1144df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true);
1150ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false);
1172Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.DotNet.ApiCompat.IntegrationTests (5)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.ApiDiff (1)
Microsoft.DotNet.ApiDiff.Tests (15)
Diff.Disk.Tests.cs (9)
73private readonly Dictionary<string, string[]> DefaultBeforeAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [BeforeCode] } };
74private readonly Dictionary<string, string[]> DefaultAfterAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [AfterCode] } };
75private readonly Dictionary<string, string> DefaultExpectedAssemblyMarkdowns = new() { { DefaultAssemblyName, DefaultExpectedMarkdown } };
184Dictionary<string, string[]> beforeAssemblyAndCodeFiles = new()
190Dictionary<string, string[]> afterAssemblyAndCodeFiles = new()
196Dictionary<string, string> expectedAssemblyMarkdowns = new()
362Dictionary<string, string[]> beforeAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [beforeCode1, beforeCode2] } };
363Dictionary<string, string[]> afterAssemblyAndCodeFiles = new() { { DefaultAssemblyName, [afterCode1, afterCode2] } };
364Dictionary<string, string> expectedAssemblyMarkdowns = new() { { DefaultAssemblyName, expectedMarkdown } };
Microsoft.DotNet.ApiSymbolExtensions (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }),
22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }),
23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }),
24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }),
25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.Build.Manifest (3)
Microsoft.DotNet.Build.Manifest.Tests (20)
BuildModelFactoryTests.cs (20)
111new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
118new TaskItem(bopSnupkg, new Dictionary<string, string>
127new TaskItem(zipArtifact, new Dictionary<string, string>
133new TaskItem(localPackagePath, new Dictionary<string, string>()
141new TaskItem(pdbArtifact, new Dictionary<string, string>
232new TaskItem(localPackagePath, new Dictionary<string, string>()
285new TaskItem(zipArtifact, new Dictionary<string, string>
321new TaskItem(pdbArtifact, new Dictionary<string, string>
354new TaskItem(localPackagePath, new Dictionary<string, string>
391new TaskItem(localPackagePath, new Dictionary<string, string>
445new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
452new TaskItem(bopSnupkg, new Dictionary<string, string>
461new TaskItem(zipArtifact, new Dictionary<string, string>
467new TaskItem(localPackagePath, new Dictionary<string, string>()
475new TaskItem(pdbArtifact, new Dictionary<string, string>
592new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
603new TaskItem(zipArtifact, new Dictionary<string, string>
609new TaskItem(localPackagePath, new Dictionary<string, string>()
618new TaskItem(pdbArtifact, new Dictionary<string, string>
694new TaskItem("missingKindArtifact.nupkg", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Feed (11)
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
DownloadFileTests.cs (5)
70Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
139Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
215Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
340Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
414Dictionary<string, IEnumerable<HttpResponseMessage>> fakeHttpResponses = new Dictionary<string, IEnumerable<HttpResponseMessage>>
PushToBuildStorageTests.cs (18)
46new TaskItem(PACKAGE_A, new Dictionary<string, string>
53new TaskItem(PACKAGE_B, new Dictionary<string, string>
59new TaskItem(BLOB_A, new Dictionary<string, string>
291new TaskItem(PDB_A, new Dictionary<string, string>
296new TaskItem(PDB_B, new Dictionary<string, string>
346new TaskItem(PDB_A, new Dictionary<string, string>
351new TaskItem(PDB_B, new Dictionary<string, string>
477new TaskItem(PACKAGE_A, new Dictionary<string, string>
482new TaskItem(PACKAGE_B, new Dictionary<string, string>
486new TaskItem(BLOB_A, new Dictionary<string, string>
492new TaskItem(PDB_A, new Dictionary<string, string>
593new TaskItem(PACKAGE_A, new Dictionary<string, string>
598new TaskItem(PACKAGE_B, new Dictionary<string, string>
602new TaskItem(BLOB_A, new Dictionary<string, string>
608new TaskItem(PDB_A, new Dictionary<string, string>
766new TaskItem(PDB_A, new Dictionary<string, string>
807new TaskItem(PDB_A, new Dictionary<string, string>
812new TaskItem(PDB_B, new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Packaging (30)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (9)
NugetPropertyStringProviderTests.cs (6)
18var expectedDictionary = new Dictionary<string, string>{ {"a", "b"} };
26var expectedDictionary = new Dictionary<string, string> { { "a", "=b=" } };
35var expectedDictionary = new Dictionary<string, string> { { "a", multiLineString } };
38expectedDictionary = new Dictionary<string, string> { { multiLineString, "b" } };
41expectedDictionary = new Dictionary<string, string> { { multiLineString, multiLineString } };
54var expectedDictionary = new Dictionary<string, string>();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }),
22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }),
23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character
24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character
25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads (15)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
Microsoft.DotNet.GenAPI.Task (1)
Microsoft.DotNet.GenAPI.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.HotReload.Client.Tests (2)
Microsoft.DotNet.MSBuildSdkResolver (20)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.PackageInstall.Tests (4)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SignCheckLibrary (8)
Microsoft.DotNet.SignTool (15)
Microsoft.DotNet.SignTool.Tests (170)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.TemplateLocator (14)
Microsoft.DotNet.Tools.Tests.ComponentMocks (5)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XliffTasks.Tests (8)
Microsoft.DotNet.XUnitAssert.Tests (111)
CollectionAssertsTests.cs (60)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1306 var expected = new Dictionary<string, int>
1315 var actual = new Dictionary<string, int>
1340 var expected = new Dictionary<string, IEnumerable<string>>
1345 var actual = new Dictionary<string, IEnumerable<string>>
1358 var expected = new Dictionary<string, IEnumerable<string>>
1363 var actual = new Dictionary<string, IEnumerable<string>>
1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
1421 var expected = new Dictionary<string, object>()
1423 ["key"] = new Dictionary<string, object>()
1427 new Dictionary<string, object>()
1434 var actual = new Dictionary<string, object>()
1436 ["key"] = new Dictionary<string, object>()
1440 new Dictionary<string, object>()
1454 var expected = new Dictionary<string, object>()
1456 ["key"] = new Dictionary<string, object>()
1460 new Dictionary<string, object>()
1467 var actual = new Dictionary<string, object>()
1469 ["key"] = new Dictionary<string, object>()
1473 new Dictionary<string, object>()
1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1981 var expected = new Dictionary<string, int>
1990 var actual = new Dictionary<string, int>
2007 var expected = new Dictionary<string, IEnumerable<string>>
2012 var actual = new Dictionary<string, IEnumerable<string>>
2033 var expected = new Dictionary<string, IEnumerable<string>>
2038 var actual = new Dictionary<string, IEnumerable<string>>
2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
2088 var expected = new Dictionary<string, object>()
2090 ["key"] = new Dictionary<string, object>()
2094 new Dictionary<string, object>()
2101 var actual = new Dictionary<string, object>()
2103 ["key"] = new Dictionary<string, object>()
2107 new Dictionary<string, object>()
2129 var expected = new Dictionary<string, object>()
2131 ["key"] = new Dictionary<string, object>()
2135 new Dictionary<string, object>()
2142 var actual = new Dictionary<string, object>()
2144 ["key"] = new Dictionary<string, object>()
2148 new Dictionary<string, object>()
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1192 var expected = new Dictionary<string, int?> { { "two", null } };
1193 var actual = new Dictionary<string, int?> { { "two", null } };
1201 var expected = new Dictionary<string, int?> { { "two", null } };
1202 var actual = new Dictionary<string, int?> { { "two", 1 } };
3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3421 var expected = new Dictionary<string, int?> { { "two", null } };
3422 var actual = new Dictionary<string, int?> { { "two", null } };
3438 var expected = new Dictionary<string, int?> { { "two", null } };
3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (28)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 };
1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } };
1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } };
1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1185 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 42 } };
1186 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } };
1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } };
1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1245 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } };
1246 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1274 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } };
1275 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 };
1317 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } };
1318 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } };
1334 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } };
1335 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 } };
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (18)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Safety (10)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (24)
OpenAIChatClientTests.cs (11)
174Assert.Equal(new Dictionary<string, long>
848Assert.Equal(new Dictionary<string, long>
945Assert.Equal(new Dictionary<string, long>
1043Assert.Equal(new Dictionary<string, long>
1155Assert.Equal(new Dictionary<string, long>
1168AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1239Assert.Equal(new Dictionary<string, long>
1348AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1355Assert.Equal(new Dictionary<string, long>
1496Assert.Equal(new Dictionary<string, long>
1611Assert.Equal(new Dictionary<string, long>
OpenAIConversionTests.cs (13)
166new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?>
207Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?>
235new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?>
263Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?>
438new FunctionCallContent("call123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" })
527var complexArgs = new Dictionary<string, object?>
533["nestedObject"] = new Dictionary<string, object?>
726var functionCallContent = new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?>
764var functionCall1 = new FunctionCallContent("call-1", "Function1", new Dictionary<string, object?> { ["param1"] = "value1" });
765var functionCall2 = new FunctionCallContent("call-2", "Function2", new Dictionary<string, object?> { ["param2"] = "value2" });
798new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }),
1040new FunctionCallContent("call-123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" })
1075new FunctionCallContent("call-456", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })
Microsoft.Extensions.AI.Tests (83)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
51Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?>
254new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }),
265Contents = [new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" })],
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (40)
41new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
49new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
77new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
85new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
121new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
129new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
156new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
161new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
168new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
179new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
210new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
218new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
226new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" },
238new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" },
266new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
271new FunctionApprovalResponseContent("callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
278new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
293new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
325new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
330new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
337new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
349new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
357new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
389new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
394new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
401new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
407new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })]),
412new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
416new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } }))
443new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
448new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
465new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
536new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
543new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
554new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
582new FunctionApprovalResponseContent("callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
598new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
649new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
725new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
ChatCompletion\FunctionInvokingChatClientTests.cs (34)
95new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
97new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
129new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
131new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
162new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
164new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
194new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }),
195new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }),
205new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }),
253new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
254new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
297new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
298new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
331new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
333new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
529arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } }));
554new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
556new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
611new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
668new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
710JsonSerializer.Serialize(new Dictionary<string, object?> { ["arg1"] = "value1" }, AIJsonUtilities.DefaultOptions),
760new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] },
761new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] }
862new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]),
864new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]),
872new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]),
933new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }),
1018new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
1048new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }),
1049new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }),
1101new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }),
1102new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 })
1120new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }),
1121new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 })
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
Microsoft.Extensions.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
26var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } };
81var inputMetadata = new Dictionary<string, string>
141var inputMetadata = new Dictionary<string, string>
201var inputMetadata = new Dictionary<string, string>
263var inputMetadata1 = new Dictionary<string, string>
267var inputMetadata2 = new Dictionary<string, string>
308var inputMetadata1 = new Dictionary<string, string>
313var inputMetadata2 = new Dictionary<string, string>
354var inputMetadata = new Dictionary<string, string>
418var inputMetadata = new Dictionary<string, string>
479var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
480var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } };
481var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (60)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
83var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
109var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
155var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
175var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
200var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
227var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
277var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
293var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
307var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
328var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
345var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
360var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
364var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (28)
87var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
111var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
128var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
146var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
161var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
177var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
188f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
204var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
230var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
248var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
273var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
290var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
308var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
323var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
349var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
364var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
390var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
404var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
420var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
439var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
460var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
477var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
494var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
512var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
528var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
545var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
559var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
563var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (14)
Latency\Internal\HttpRequestLatencyListener.cs (10)
114private static readonly Dictionary<string, string> _socketMap = new()
120private static readonly Dictionary<string, string> _nameResolutionMap = new()
126private static readonly Dictionary<string, string> _httpMap = new()
140private static readonly Dictionary<string, string> _httpMeasureMap = new()
150Dictionary<string, CheckpointToken> socket = new();
156Dictionary<string, CheckpointToken> nameResolution = new();
162Dictionary<string, CheckpointToken> http = new();
168Dictionary<string, MeasureToken> httpMeasures = new();
174_eventToCheckpointTokenMap = new Dictionary<string, FrozenDictionary<string, CheckpointToken>>
181_eventToMeasureTokenMap = new Dictionary<string, FrozenDictionary<string, MeasureToken>>
Microsoft.Extensions.Http.Diagnostics.Tests (51)
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 } },
297ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
298RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
406ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
407RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
503ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
504RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
618ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
619RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
889ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } },
890RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpRequestReaderTest.cs (20)
64RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } },
65ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } },
194RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
195ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
269RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
270ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
344RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
403RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
404ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
476RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
477ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
545RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } },
546ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
600RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
645RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>() // No data classification
672RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
703RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
740RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
793RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
834RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
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.Telemetry.Abstractions.Tests (4)
Microsoft.Extensions.Telemetry.Tests (27)
Http\HttpParserTests.cs (11)
21Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
38Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
57Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
77Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
123Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
155Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
226Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
280Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } };
347Dictionary<string, DataClassification> parametersToRedact = new()
391Dictionary<string, DataClassification> parametersToRedact = new()
437Dictionary<string, DataClassification> parametersToRedact = new()
Http\HttpRouteFormatterTests.cs (13)
20var parametersToRedact = new Dictionary<string, DataClassification>();
93Dictionary<string, DataClassification> parametersToRedact = new()
136Dictionary<string, DataClassification> parametersToRedact = new()
157Dictionary<string, DataClassification> parametersToRedact = new()
218Dictionary<string, DataClassification> parametersToRedact = new()
239Dictionary<string, DataClassification> parametersToRedact = new()
257Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
324Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } };
353Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
373Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } };
415Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
435Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
451Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
Microsoft.Extensions.Validation.Tests (16)
ValidatableTypeInfoTests.cs (13)
40var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
141ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
193ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
258ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
309ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
340var validationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
392ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
427ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
474ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
515ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
543ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
565context.ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
612ValidationOptions = new TestValidationOptions(new Dictionary<Type, ValidatableTypeInfo>
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (42)
LogPropertiesTests.cs (14)
33P7 = new Dictionary<string, int>
231var expectedState = new Dictionary<string, string?>
305var expectedState = new Dictionary<string, string?>
325var expectedState = new Dictionary<string, string?>
345var expectedState = new Dictionary<string, string?>
368var expectedState = new Dictionary<string, string?>
392var expectedState = new Dictionary<string, string?>
422var expectedState = new Dictionary<string, string?>
451var expectedState = new Dictionary<string, string?>
477var expectedState = new Dictionary<string, string?>
504var expectedState = new Dictionary<string, string?>
528var expectedState = new Dictionary<string, string?>
553var expectedState = new Dictionary<string, string?>
579var expectedState = new Dictionary<string, string?>
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?>
60var expectedState = new Dictionary<string, string?>
87var expectedState = new Dictionary<string, string?>
110var expectedState = new Dictionary<string, string?>
142var expectedState = new Dictionary<string, string?>
211var expectedState = new Dictionary<string, string?>
230var expectedState = new Dictionary<string, string?>
250var expectedState = new Dictionary<string, string?>
272var expectedState = new Dictionary<string, string?>
293var expectedState = new Dictionary<string, string?>
313var expectedState = new Dictionary<string, string?>
334var expectedState = new Dictionary<string, string?>
361var expectedState = new Dictionary<string, string?>
399var expectedState = new Dictionary<string, string?>
424var expectedState = new Dictionary<string, string?>
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (6)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (2)
Microsoft.JSInterop.Tests (2)
Microsoft.Maui (9)
Microsoft.Maui.Controls (27)
Microsoft.Maui.Controls.Build.Tasks (14)
XamlCache.cs (7)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new();
15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new();
16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new();
17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new();
18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new();
19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new();
20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (6)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Resizetizer (3)
Microsoft.ML.AutoML (21)
Microsoft.ML.AutoML.Tests (9)
Microsoft.ML.CodeGenerator (15)
CodeGenerator\CSharp\TrainerGenerators.cs (13)
24new Dictionary<string, string>()
95new Dictionary<string, string>()
126new Dictionary<string, string>()
238new Dictionary<string, string>()
265new Dictionary<string, string>()
324new Dictionary<string, string>()
358new Dictionary<string, string>()
388new Dictionary<string, string>()
418new Dictionary<string, string>()
489new Dictionary<string, string>()
522new Dictionary<string, string>()
600new Dictionary<string, string>();
619new Dictionary<string, string>()
Microsoft.ML.CodeGenerator.Tests (65)
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>()
58var elementProperties = new Dictionary<string, object>()
79var elementProperties = new Dictionary<string, object>()
102var elementProperties = new Dictionary<string, object>();
119var elementProperties = new Dictionary<string, object>()
139var elementProperties = new Dictionary<string, object>();
156var elementProperties = new Dictionary<string, object>()
176var elementProperties = new Dictionary<string, object>();
193var elementProperties = new Dictionary<string, object>()
213var elementProperties = new Dictionary<string, object>();
230var elementProperties = new Dictionary<string, object>()
250var elementProperties = new Dictionary<string, object>();
267var elementProperties = new Dictionary<string, object>()
286var elementProperties = new Dictionary<string, object>();
300var elementProperties = new Dictionary<string, object>()
327var elementProperties = new Dictionary<string, object>();
344var elementProperties = new Dictionary<string, object>()
364var elementProperties = new Dictionary<string, object>();
381var elementProperties = new Dictionary<string, object>()
401var elementProperties = new Dictionary<string, object>();
418var elementProperties = new Dictionary<string, object>()
438var elementProperties = new Dictionary<string, object>();
455var elementProperties = new Dictionary<string, object>()
475var elementProperties = new Dictionary<string, object>();
492var elementProperties = new Dictionary<string, object>()
512var elementProperties = new Dictionary<string, object>();
529var elementProperties = new Dictionary<string, object>()
550var elementProperties = new Dictionary<string, object>();
567var elementProperties = new Dictionary<string, object>()
588var elementProperties = new Dictionary<string, object>();
605var elementProperties = new Dictionary<string, object>()
626var elementProperties = new Dictionary<string, object>();
643var elementProperties = new Dictionary<string, object>()
664var elementProperties = new Dictionary<string, object>();
680var elementProperties = new Dictionary<string, object>()
701var elementProperties = new Dictionary<string, object>();
718var elementProperties = new Dictionary<string, object>()
739var elementProperties = new Dictionary<string, object>();
756var elementProperties = new Dictionary<string, object>()
774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical
39var elementProperties = new Dictionary<string, object>();//categorical
53var elementProperties = new Dictionary<string, object>();
67var elementProperties = new Dictionary<string, object>();
81var elementProperties = new Dictionary<string, object>();//nume to num feature 2
95var elementProperties = new Dictionary<string, object>();
109var elementProperties = new Dictionary<string, object>();//numeric feature
123var elementProperties = new Dictionary<string, object>();
137var elementProperties = new Dictionary<string, object>();
151var elementProperties = new Dictionary<string, object>();
165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (12)
Microsoft.ML.Core.Tests (5)
Microsoft.ML.CpuMath.UnitTests (2)
Microsoft.ML.Data (58)
Data\Conversion.cs (8)
105_delegatesStd = new Dictionary<(Type src, Type dst), Delegate>();
106_delegatesAll = new Dictionary<(Type src, Type dst), Delegate>();
107_isNADelegates = new Dictionary<Type, Delegate>();
108_hasNADelegates = new Dictionary<Type, Delegate>();
109_isDefaultDelegates = new Dictionary<Type, Delegate>();
110_hasZeroDelegates = new Dictionary<Type, Delegate>();
111_getNADelegates = new Dictionary<Type, Delegate>();
112_tryParseDelegates = new Dictionary<Type, Delegate>();
Microsoft.ML.DataView (2)
Microsoft.ML.EntryPoints (41)
CrossValidationMacro.cs (13)
179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
180var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
185var outputMap = new Dictionary<string, string>();
208var mapping = new Dictionary<string, string>();
239inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
240inputMap = new Dictionary<ParameterBinding, VariableBinding>();
247outputMap = new Dictionary<string, string>();
255inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
256inputMap = new Dictionary<ParameterBinding, VariableBinding>();
266outputMap = new Dictionary<string, string>();
318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>();
319var combineInputMap = new Dictionary<ParameterBinding, VariableBinding>();
337var combineOutputMap = new Dictionary<string, string>();
TrainTestMacro.cs (15)
168inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
169inputMap = new Dictionary<ParameterBinding, VariableBinding>();
179outputMap = new Dictionary<string, string>();
191inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
192inputMap = new Dictionary<ParameterBinding, VariableBinding>();
203outputMap = new Dictionary<string, string>();
225inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
226inputMap = new Dictionary<ParameterBinding, VariableBinding>();
237outputMap = new Dictionary<string, string>();
248inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
249inputMap = new Dictionary<ParameterBinding, VariableBinding>();
255outputMap = new Dictionary<string, string>();
270inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
271inputMap = new Dictionary<ParameterBinding, VariableBinding>();
277outputMap = new Dictionary<string, string>();
Microsoft.ML.Fairlearn (4)
Microsoft.ML.FastTree (10)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.GenAI.Core.Tests (2)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (3)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.LightGbm (6)
Microsoft.ML.NugetPackageVersionUpdater (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.OnnxTransformerTest (9)
Microsoft.ML.ResultProcessor (9)
ResultProcessor.cs (9)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>();
70SameHeaderValues = new Dictionary<string, object>();
162return new Dictionary<string, string>();
792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>();
890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>();
892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>();
927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>();
938metricDict = new Dictionary<int, float>();
985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
Microsoft.ML.Samples (27)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (10)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
48Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
54Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
60Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
66Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
72Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
78Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
84Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
90Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (13)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object>
56Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
62Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
68Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
74Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
80Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
86Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
92Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
98Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
104Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
110Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
116Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (5)
Microsoft.ML.Sweeper (3)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.Tests (94)
OnnxConversionTest.cs (92)
1247pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, int> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1248pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, long> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1249pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, short> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1250pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, uint> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1251pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ushort> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1252pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ulong> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1253pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, string> { { 3, "True" }, { 23, "False" } }, "Keys", treatValuesAsKeyType));
1254pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, float> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType));
1255pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, double> { { 3, 698 }, { 23, 7908 } }, "Keys", treatValuesAsKeyType));
1256pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, bool> { { 3, false }, { 23, true } }, "Keys", treatValuesAsKeyType));
1260pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1261pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1262pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1263pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1264pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1265pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, float> { { 3, 6 }, { 23, 46 } }, "Keys"));
1266pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, long> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1267pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, double> { { 3, 698 }, { 23, 7908 } }, "Keys"));
1268pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, bool> { { 3, true }, { 23, false } }, "Keys"));
1272pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, int> { { true, 6 }, { false, 46 } }, "Keys"));
1273pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, short> { { true, 6 }, { false, 46 } }, "Keys"));
1274pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, uint> { { true, 6 }, { false, 46 } }, "Keys"));
1275pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ushort> { { true, 6 }, { false, 46 } }, "Keys"));
1276pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ulong> { { true, 6 }, { false, 46 } }, "Keys"));
1277pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, string> { { true, "True" }, { false, "False" } }, "Keys"));
1278pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, float> { { true, 6 }, { false, 46 } }, "Keys"));
1279pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, long> { { true, 698 }, { false, 7908 } }, "Keys"));
1280pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, double> { { true, 698 }, { false, 7908 } }, "Keys"));
1281pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, bool> { { false, true }, { true, false } }, "Keys"));
1285pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, int> { { "3", 3 }, { "23", 23 } }, "Keys"));
1286pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, short> { { "3", 3 }, { "23", 23 } }, "Keys"));
1287pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, uint> { { "3", 6 }, { "23", 46 } }, "Keys"));
1288pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ushort> { { "3", 6 }, { "23", 46 } }, "Keys"));
1289pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ulong> { { "3", 6 }, { "23", 46 } }, "Keys"));
1290pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, float> { { "3", 6 }, { "23", 23 } }, "Keys"));
1291pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, double> { { "3", 6 }, { "23", 23 } }, "Keys"));
1292pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, long> { { "3", 3 }, { "23", 23 } }, "Keys"));
1293pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, bool> { { "3", true }, { "23", false } }, "Keys"));
1297pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1298pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1299pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1300pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1301pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1302pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1303pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1304pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1305pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1309pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1310pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1311pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1312pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1313pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1314pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1315pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1316pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1317pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1321pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1322pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1323pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1324pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1325pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1326pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1327pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1328pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1329pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1333pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1334pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1335pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1336pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1337pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1338pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1339pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1340pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1341pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1345pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1346pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1347pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1348pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1349pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1350pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1351pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1352pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1353pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1357pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, short> { { 3, 6 }, { 23, 46 } }, "Keys"));
1358pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, int> { { 3, 6 }, { 23, 46 } }, "Keys"));
1359pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, long> { { 3, 6 }, { 23, 46 } }, "Keys"));
1360pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ushort> { { 3, 6 }, { 23, 46 } }, "Keys"));
1361pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, uint> { { 3, 6 }, { 23, 46 } }, "Keys"));
1362pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ulong> { { 3, 6 }, { 23, 46 } }, "Keys"));
1363pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, string> { { 3, "True" }, { 23, "False" } }, "Keys"));
1364pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
1365pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
Microsoft.ML.TimeSeries (9)
Microsoft.ML.TimeSeries.Tests (30)
TimeSeriesDirectApi.cs (30)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
1015expectedDim = new Dictionary<string, Object>();
1047Dictionary<string, object> expectedDim = new Dictionary<string, object>
1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
1164Dictionary<string, Object> dim = new Dictionary<string, Object>();
1197Dictionary<string, int> expectedDim = new Dictionary<string, int>
1231Dictionary<string, object> dic1 = new Dictionary<string, object>();
1237Dictionary<string, object> dic2 = new Dictionary<string, object>();
1243Dictionary<string, object> dic3 = new Dictionary<string, object>();
1249Dictionary<string, object> dic4 = new Dictionary<string, object>();
1255Dictionary<string, object> dic5 = new Dictionary<string, object>();
1261Dictionary<string, object> dic6 = new Dictionary<string, object>();
1267Dictionary<string, object> dic7 = new Dictionary<string, object>();
1273Dictionary<string, object> dic8 = new Dictionary<string, object>();
1279Dictionary<string, object> dic9 = new Dictionary<string, object>();
1285Dictionary<string, object> dic10 = new Dictionary<string, object>();
1291Dictionary<string, object> dic11 = new Dictionary<string, object>();
1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (27)
Model\TiktokenTokenizer.cs (8)
1164new Dictionary<string, int>
1198new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 },
1201new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } },
1205return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName);
1208return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName);
1211return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName);
1214return (new Dictionary<string, int>
1218return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Microsoft.ML.Tokenizers.Tests (20)
BpeTests.cs (14)
27new Dictionary<string, int>() { { UnknownToken, 0 }, { "!", 5 }, { ",", 6 }, { ".", 7 }, { "B", 8 }, { "H", 9 }, { "T", 10 }, { "W", 11 }, { "a", 12 }, { "b", 13 }, { "c", 14 }, { "d", 15 }, { "e", 16 },
53new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
68new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
83new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } },
98new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
113new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} },
128new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} },
143new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } },
158new Dictionary<string, int>(){ { UnknownToken, 0} },
173new Dictionary<string, int>(){ { UnknownToken, 0} },
188new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 },
525IReadOnlyDictionary<string, int> specialTokens = new Dictionary<string, int>()
898SpecialTokens = new Dictionary<string, int> // SpecialTokens not part of the original vocab.json
1077Dictionary<string, int> specialTokens = new Dictionary<string, int>();
Microsoft.ML.TorchSharp (10)
Microsoft.ML.Transforms (18)
Microsoft.ML.Vision (4)
Microsoft.NET.Build.Containers (1)
Microsoft.NET.Build.Containers.IntegrationTests (14)
FullFramework\CreateNewImageToolTaskTests.cs (14)
218new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}),
219new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}),
220new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}),
221new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}),
222new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }})
264new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}),
265new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}),
266new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}),
267new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}),
268new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }})
496new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "udp" }}),
497new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "tcp" }}),
498new TaskItem("1502", new Dictionary<string, string>() {{ "Type", "tcp" }}),
499new TaskItem("1503", new Dictionary<string, string>() {{ "Type", "" }})
Microsoft.NET.Build.Containers.UnitTests (8)
AuthHandshakeMessageHandlerTests.cs (7)
94queryParameters: new())
101formParameters: new()
116formParameters: new()
131formParameters: new()
144queryParameters: new()
203=> ServerWithBearerAuth(authenticateParameters, requestUri, HttpMethod.Get, queryParameters, new(), new AuthenticationHeaderValue("Basic", GetUserPasswordBase64(username, password)));
206=> ServerWithBearerAuth(authenticateParameters, requestUri, HttpMethod.Post, new(), formParameters, null);
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Extensions.Tasks.UnitTests (2)
Microsoft.NET.Build.Tasks (39)
Microsoft.NET.Build.Tasks.UnitTests (90)
GivenADependencyContextBuilder.cs (14)
109new Dictionary<string, string>
116new Dictionary<string, string>
234new MockTaskItem($"/usr/Path/{reference}.dll", new Dictionary<string, string> {
252Dictionary<string, SingleProjectInfo> referenceProjectInfos = new();
277[new MockTaskItem($"{kvp.Key}.resource", new Dictionary<string, string>() {
308DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() {
321DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() {
334DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>() {
349DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>()
364DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>()
381DependencyContext dependencyContext = BuildDependencyContextFromDependenciesWithResources(new Dictionary<string, List<string>>()
416new Dictionary<string, string>
424new Dictionary<string, string>
432new Dictionary<string, string>
GivenAResolveTargetingPackAssetsTask.cs (5)
59new MockTaskItem("RuntimeFramework1", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}),
60new MockTaskItem("RuntimeFramework2", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}),
159new Dictionary<string, string>()
171new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
307runtimeFrameworks: new[] { new MockTaskItem("RuntimeFramework1", new Dictionary<string, string>()) },
ProcessFrameworkReferencesTests.cs (31)
82additionalMetadata: new Dictionary<string, string> {
98var metadata = new Dictionary<string, string>
121return new MockTaskItem("Microsoft.DotNet.ILCompiler", new Dictionary<string, string>
219ToolsetInfo.CurrentTargetFramework, "1.9.5", additionalMetadata: new Dictionary<string, string>
231FrameworkReferences = new[] { new MockTaskItem("Microsoft.AspNetCore.App", new Dictionary<string, string>()) },
254FrameworkReferences = new[] { new MockTaskItem("Microsoft.AspNetCore.App", new Dictionary<string, string>()) },
270additionalMetadata: new Dictionary<string, string> {
283FrameworkReferences = new[] { new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) },
327new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()),
328new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
361new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()),
362new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
401FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
437FrameworkReferences = new[] { new MockTaskItem("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) },
468new Dictionary<string, string> {
473var nativeAOTRuntimePack = new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>
483var ilLinkPack = new MockTaskItem("Microsoft.NET.ILLink.Tasks", new Dictionary<string, string>
489var ilCompilerPack = new MockTaskItem("Microsoft.DotNet.ILCompiler", new Dictionary<string, string>
517new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" }),
518new MockTaskItem("Microsoft.macOS", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" })
553FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
583FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
609FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
635new Dictionary<string, string> { ["Profile"] = "iOS" });
646new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()),
647new MockTaskItem("Microsoft.iOS", new Dictionary<string, string>())
676FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
700new Dictionary<string, string> {
714new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()),
715new MockTaskItem($"Microsoft.{platformId}", new Dictionary<string, string>())
751FrameworkReferences = new[] { new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>()) },
Microsoft.NET.Build.Tests (21)
GivenFrameworkReferences.cs (6)
1176var trimInfo = new Dictionary<string, List<(string asset, string isTrimmable)>>();
1192public Dictionary<string, string> RuntimeFramework { get; } = new Dictionary<string, string>();
1193public Dictionary<string, string> PackageDownload { get; } = new Dictionary<string, string>();
1194public Dictionary<string, string> TargetingPack { get; } = new Dictionary<string, string>();
1195public Dictionary<string, string> RuntimePack { get; } = new Dictionary<string, string>();
1196public Dictionary<string, string> AppHostPack { get; } = new Dictionary<string, string>();
Microsoft.NET.Publish.Tests (3)
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (4)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (6)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks.Tests (9)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (15)
Data\ContentTypeProvider.cs (1)
14new()
Microsoft.NET.Sdk.StaticWebAssets.Tests (107)
StaticWebAssets\ApplyCssScopesTest.cs (30)
27new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
28new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
56new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
57new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
86new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
87new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" })
115new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
116new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" })
143new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
144new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
145new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }),
171new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
172new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
173new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }),
198new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string>
227new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string>
257new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
258new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
259new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string>
289new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
290new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
291new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string>
325new TaskItem("TestFiles/Pages/Home.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }),
326new TaskItem("TestFiles/Pages/_Host.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }),
327new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
328new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
364new TaskItem("TestFiles/Pages/Home.razor.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }),
365new TaskItem("TestFiles/Pages/_Host.razor.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }),
366new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
367new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
StaticWebAssets\DiscoverStaticWebAssetsTest.cs (8)
92task.FingerprintPatterns = [new TaskItem("CssFile", new Dictionary<string, string> { ["Pattern"] = "*.css", ["Expression"] = expression })];
187FingerprintPatterns = [new TaskItem("JsModule", new Dictionary<string, string> { ["Pattern"] = "*.lib.module.js", ["Expression"] = expression })],
708new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}),
710new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"})
748new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}),
750new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"})
787new Dictionary<string,string>{ ["Integrity"] = "integrity", ["Fingerprint"] = "fingerprint"}),
847return new TaskItem(itemSpec, new Dictionary<string, string>
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (7)
76new TaskItem("Property", new Dictionary<string,string>{
112new TaskItem("Header", new Dictionary<string,string>{
146new TaskItem("Standalone", new Dictionary<string,string>{ })
182new TaskItem("Selector", new Dictionary<string,string>{
219new TaskItem("Header", new Dictionary<string,string>{
223new TaskItem("Property", new Dictionary<string,string>{
263return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\GenerateStaticWebAssetsPropsFileTest.cs (12)
30CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
63CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
96CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
129CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
162CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
206CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
222CreateItem(Path.Combine("wwwroot","css","site.css"), new Dictionary<string,string>
267CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
283CreateItem(Path.Combine("wwwroot","css","site.css"), new Dictionary<string,string>
350CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
451CreateItem(Path.Combine("wwwroot","js","sample.js"), new Dictionary<string,string>
472CreateItem(Path.Combine("wwwroot","App.styles.css"), new Dictionary<string,string>
StaticWebAssets\GenerateV1StaticWebAssetsManifestTest.cs (7)
29CreateItem(Path.Combine("wwwroot", "sample.js"), new Dictionary<string,string>
59CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
92CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
98CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string>
180CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
225CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
233CreateItem(Path.Combine("wwwroot, site.css"), new Dictionary<string,string>
StaticWebAssets\ResolveAllScopedCssAssetsTest.cs (8)
19new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string>
23new TaskItem("site.css", new Dictionary<string,string>
47new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string>
51new TaskItem("site.css", new Dictionary<string,string>
75new TaskItem("Folder/Project.bundle.scp.css", new Dictionary<string,string>
79new TaskItem("site.css", new Dictionary<string,string>
103new TaskItem("Folder/Project.styles.css", new Dictionary<string,string>
107new TaskItem("site.css", new Dictionary<string,string>
StaticWebAssets\ValidateStaticWebAssetsUniquePathsTest.cs (11)
29CreateItem(Path.Combine("wwroot", "js", "project-transitive-dep.js"), new Dictionary<string,string>
39CreateItem(Path.Combine("wwwroot", "_content", "ClassLibrary", "js", "project-transitive-dep.js"), new Dictionary<string,string>
70CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
77CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string>
103CreateItem(Path.Combine("wwwroot","sample.js"), new Dictionary<string,string>
110CreateItem(Path.Combine("wwwroot", "otherLib.js"), new Dictionary<string,string>
142CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string>
147CreateItem(Path.Combine(".", "Library", "bin", "dist", "sample.js"), new Dictionary<string,string>
176CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string>
181CreateItem(Path.Combine(".", "Library", "wwwroot", "sample.js"), new Dictionary<string,string>
189CreateItem(Path.Combine(".", "App", "wwwroot", "sample.js"), new Dictionary<string,string>
Microsoft.NET.Sdk.WorkloadManifestReader (14)
Microsoft.NET.Sdk.WorkloadManifestReader.Tests (2)
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.NET.TestFramework (10)
ProjectConstruction\TestProject.cs (5)
71public Dictionary<string, string> SourceFiles { get; } = new Dictionary<string, string>();
73public Dictionary<string, string> EmbeddedResources { get; } = new Dictionary<string, string>();
78public Dictionary<string, string> AdditionalProperties { get; } = new Dictionary<string, string>();
481AddItem(itemName, new Dictionary<string, string>() { { attributeName, attributeValue } });
500var propertyValues = new Dictionary<string, string>();
Microsoft.NET.ToolPack.Tests (3)
Microsoft.TemplateEngine.Cli (30)
Microsoft.TemplateEngine.Cli.UnitTests (74)
HostDataLoaderTests.cs (8)
119var symbolInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>()
123new Dictionary<string, string>()
132new Dictionary<string, string>()
141new Dictionary<string, string>()
162var symbolInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>()
166new Dictionary<string, string>()
175new Dictionary<string, string>()
184new Dictionary<string, string>()
PostActionTests\AddJsonPropertyPostActionTests.cs (12)
37Args = new Dictionary<string, string>
78Args = new Dictionary<string, string>
255Args = new Dictionary<string, string>
287Args = new Dictionary<string, string>
321Args = new Dictionary<string, string>
450new Dictionary<string, string>
465new Dictionary<string, string>
480new Dictionary<string, string>
502new Dictionary<string, string>
527new Dictionary<string, string>
541new Dictionary<string, string>
555new Dictionary<string, string>()
TelemetryHelperTests.cs (17)
22Dictionary<string, string?> parameterValues = new()
40Dictionary<string, string?> parameterValues = new()
56choices: new Dictionary<string, ParameterChoice>()
65Dictionary<string, string?> parameterValues = new()
81choices: new Dictionary<string, ParameterChoice>()
90Dictionary<string, string?> parameterValues = new()
106choices: new Dictionary<string, ParameterChoice>()
114Dictionary<string, string?> parameterValues = new()
130choices: new Dictionary<string, ParameterChoice>()
140Dictionary<string, string?> parameterValues = new()
164Dictionary<string, string?> parameterValues = new()
180choices: new Dictionary<string, ParameterChoice>()
190Dictionary<string, string?> parameterValues = new()
206choices: new Dictionary<string, ParameterChoice>()
216Dictionary<string, string?> parameterValues = new()
232choices: new Dictionary<string, ParameterChoice>()
242Dictionary<string, string?> parameterValues = new()
TemplateSearchCoordinatorTests.cs (8)
511Dictionary<string, PackToTemplateEntry> packToTemplateMap = new();
532Dictionary<string, object> additionalData = new();
536Dictionary<string, string> frameworkParamSymbolInfo = new()
543new Dictionary<string, IReadOnlyDictionary<string, string>>()
549Dictionary<string, HostSpecificTemplateData> cliHostData = new()
567Dictionary<string, string> frameworkParamSymbolInfo = new()
574new Dictionary<string, IReadOnlyDictionary<string, string>>()
580Dictionary<string, object> additionalData = new()
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Microsoft.WebTools.AspireService.Tests (1)
MSBuild (6)
MSBuildTaskHost (10)
OpenIdConnectSample (1)
PresentationBuildTasks (17)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>();
909_knownNamespaces = new Dictionary<string, object>();
1835_ignorables = new Dictionary<string, object>();
1845_processContents = new Dictionary<string, ProcessContentSet>();
1862_preserveElements = new Dictionary<string, PreserveItemSet>();
1879_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2050_names = new Dictionary<string, string>();
2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (32)
PresentationFramework (85)
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
490Dictionary<string, string> writtenAttributes = new Dictionary<string, string>();
1390_uriToPrefix = new Dictionary<string, string>();
1392_prefixToUri = new Dictionary<string, string>();
1550private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>();
1551private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>();
1564namespaceToUri = new Dictionary<string, string>();
PresentationUI (8)
Publishers.AppHost (1)
RazorBuildWebSite (1)
ReachFramework (71)
packaging\XpsDigitalSignature.cs (5)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>();
315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>();
364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>();
380relHash = new Dictionary<string, int>();
422_optionalSignedTypes = new Dictionary<string, string>();
Roslyn.Diagnostics.Analyzers (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (13)
Services\SolutionServiceTests.cs (11)
546var map = new Dictionary<Checksum, object>();
587var map = new Dictionary<Checksum, object>();
629var map = new Dictionary<Checksum, object>();
662var map = new Dictionary<Checksum, object>();
704var map = new Dictionary<Checksum, object>();
744var map = new Dictionary<Checksum, object>();
782var map = new Dictionary<Checksum, object>();
815var map = new Dictionary<Checksum, object>();
870var map = new Dictionary<Checksum, object>();
939var map = new Dictionary<Checksum, object>();
1274var map = new Dictionary<Checksum, object>();
RunTests (2)
rzc (1)
Sample (4)
Endpoints\MapSchemasEndpoints.cs (2)
29schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } });
30schemas.MapGet("/frozen-dictionary-of-ints", () => ImmutableDictionary.CreateRange(new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }));
ScenarioTests.Common.Tests (1)
Shared.Tests (5)
SimpleWebSite (1)
SocialSample (1)
SocialWeather (2)
Sockets.FunctionalTests (1)
Swaggatherer (1)
System.CodeDom (1)
System.ComponentModel.Annotations (4)
System.ComponentModel.Composition (20)
System.ComponentModel.Composition.Registration (3)
System.ComponentModel.TypeConverter (5)
System.Composition.Convention (3)
System.Composition.Hosting (3)
System.Composition.Runtime (1)
System.Composition.TypedParts (10)
System.Configuration.ConfigurationManager (1)
System.Data.Common (5)
System.Data.Odbc (3)
System.Diagnostics.DiagnosticSource (4)
System.Diagnostics.Process (2)
System.Drawing.Common (1)
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 (6)
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 (47)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (13)
2687commandArgs.Arguments ??= new Dictionary<string, string?>();
3172eventData = new Dictionary<int, EventMetadata>();
3664eventsByName ??= new Dictionary<string, string>();
3916private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>();
3918private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
4526Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
5340opcodeTab = new Dictionary<int, string>();
5341stringTab = new Dictionary<string, string>();
5343perEventByteArrayArgIndices = new Dictionary<string, List<int>>();
5379taskTab ??= new Dictionary<int, string>();
5402keywordTab ??= new Dictionary<ulong, string>();
5546mapsTab ??= new Dictionary<string, Type>();
5944taskTab ??= new Dictionary<int, string>();
System.Private.CoreLib.Generators (4)
System.Private.DataContractSerialization (33)
System.Private.Xml (73)
System\Xml\Schema\SchemaInfo.cs (8)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>();
39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>();
42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
74_generalEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>();
77_parameterEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>();
101_notations ??= new Dictionary<string, SchemaNotation>();
System\Xml\Xsl\Xslt\Compiler.cs (5)
55public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>();
56public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>();
57public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>();
58public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>();
60private 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 (11)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (11)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives (33)
System.ServiceModel.Primitives.Tests (2)
System.ServiceModel.Syndication (4)
System.Text.Encoding.CodePages (4)
System.Text.Json (8)
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (15)
System.Text.RegularExpressions.Generator (6)
System.Threading.Tasks.Dataflow (3)
System.Windows.Controls.Ribbon (8)
System.Windows.Forms (2)
System.Windows.Forms.Analyzers.CSharp.Tests (7)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (56)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (42)
System.Windows.Input.Manipulations (1)
System.Xaml (38)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>();
909_knownNamespaces = new Dictionary<string, object>();
1835_ignorables = new Dictionary<string, object>();
1845_processContents = new Dictionary<string, ProcessContentSet>();
1862_preserveElements = new Dictionary<string, PreserveItemSet>();
1879_preserveAttributes = new Dictionary<string, PreserveItemSet>();
2050_names = new Dictionary<string, string>();
2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System.Xaml.Tests (15)
TaskUsageLogger (4)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (4)
Test.Utilities (1)
Text.Analyzers (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
UnitTests.Common (1)
VBCSCompiler.UnitTests (30)
CompilerServerTests.cs (30)
129var resetVariables = new Dictionary<string, string>();
329var files = new Dictionary<string, string> { { "hello.cs", "♕" } };
471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } };
486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } };
544new Dictionary<string, string> {
572new Dictionary<string, string> {
638new Dictionary<string, string> {
680new Dictionary<string, string> {
710new Dictionary<string, string> {
740new Dictionary<string, string> {
761files = new Dictionary<string, string> {
780files = new Dictionary<string, string> {
798new Dictionary<string, string> {
818files = new Dictionary<string, string> {
860new Dictionary<string, string> {
876files = new Dictionary<string, string> {
896files = new Dictionary<string, string> {
913new Dictionary<string, string> {
932files = new Dictionary<string, string> {
1000var filesInDirectory = new Dictionary<string, string>()
1051new Dictionary<string, string> {
1072files = new Dictionary<string, string> {
1081additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1100new Dictionary<string, string> {
1123files = new Dictionary<string, string> {
1133additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1251new Dictionary<string, string> {
1274files = new Dictionary<string, string> {
1403additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
1437additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
Wasm.Performance.TestApp (2)
WindowsBase.Tests (30)
System\Windows\DependencyPropertyTests.cs (24)
64yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
116yield return new object?[] { "Register_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 };
176yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
375yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
429yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
489yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
651yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
707yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 2 };
771yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
944yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
1002yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>(), 1 };
1066yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData22", typeof(Dictionary<string, int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new Dictionary<string, int>() }, new Dictionary<string, int>() };
WindowsFormsIntegration (4)
WinFormsControlsTest (1)
XmlFileLogger (1)
xunit.assert (4)
xunit.console (3)
Xunit.NetCore.Extensions (3)