5793 references to Dictionary
aspire (59)
Aspire.Acquisition.Tests (1)
Aspire.Azure.AI.OpenAI.Tests (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Cli.EndToEnd.Tests (9)
McpDocsE2ETests.cs (8)
95new Dictionary<string, object?> { ["query"] = "redis" },
116new Dictionary<string, object?> { ["query"] = "aspire", ["topK"] = 3 },
137new Dictionary<string, object?> { ["query"] = "redis" },
154new Dictionary<string, object?> { ["slug"] = slug },
172new Dictionary<string, object?> { ["query"] = "" },
203new Dictionary<string, object?> { ["slug"] = slug },
221new Dictionary<string, object?> { ["slug"] = "nonexistent-doc-that-does-not-exist" },
252new Dictionary<string, object?>
Aspire.Cli.Tests (610)
Acquisition\IdentityResolverTests.cs (15)
31environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "pr-12345" });
89environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = string.Empty });
125environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = "99.0.0-test" });
140environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version });
159environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version });
186environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit });
202environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit });
215environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url });
230environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url });
244environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "totally-made-up" },
273environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://env/v3/index.json" },
314environmentVariables: new Dictionary<string, string?> { [IdentityResolver.PackagesEnvVar] = "/env/packages" },
371var sidecar = new Dictionary<string, string>
380environmentVariables = new Dictionary<string, string?>
456environmentVariables: new Dictionary<string, string?>
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (14)
133var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
174var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
222var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
253var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
281var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
305var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
331var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
371var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
405var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
440var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
476var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
767var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
797var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
864var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
Agents\AspireSkillsBundleTests.cs (13)
36await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
63await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
95await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
124await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
311await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
366await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
395await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
466await CreateBundleAsync(bundleDirectory, new Dictionary<string, string>
491new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() },
731new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() },
754new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() },
777new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() },
800new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() });
Commands\ExportCommandTests.cs (12)
43telemetryEndpoints: new Dictionary<string, string>
120telemetryEndpoints: new Dictionary<string, string>
323telemetryEndpoints: new Dictionary<string, string>
443telemetryEndpoints: new Dictionary<string, string>
500telemetryEndpoints: new Dictionary<string, string>
558telemetryEndpoints: new Dictionary<string, string>
608telemetryEndpoints: new Dictionary<string, string>
652telemetryEndpoints: new Dictionary<string, string>
696telemetryEndpoints: new Dictionary<string, string>
738telemetryEndpoints: new Dictionary<string, string>
774telemetryEndpoints: new Dictionary<string, string>
821telemetryEndpoints: new Dictionary<string, string>(),
Commands\ResourceCommandTests.cs (8)
994options: new Dictionary<string, string?>
1030options: new Dictionary<string, string?>
1285options: new Dictionary<string, string?>
1736options: new Dictionary<string, string?>
1857CreateArgument("item", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["banana"] = "Banana" }),
1866CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }),
1898CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }),
2252options: new Dictionary<string, string?>
Commands\RunCommandTests.cs (7)
3522env: new Dictionary<string, string>(),
3566env: new Dictionary<string, string>(),
3614env: new Dictionary<string, string>(),
3657env: new Dictionary<string, string>(),
3701env: new Dictionary<string, string>(),
3745env: new Dictionary<string, string>(),
3790env: new Dictionary<string, string>(),
Commands\VsCodeExtensionCheckTests.cs (12)
18var environment = new TestEnvironment(new Dictionary<string, string?>());
34var environment = new TestEnvironment(new Dictionary<string, string?>
64var environment = new TestEnvironment(new Dictionary<string, string?>
93var environment = new TestEnvironment(new Dictionary<string, string?>
118var environment = new TestEnvironment(new Dictionary<string, string?>
139var environment = new TestEnvironment(new Dictionary<string, string?>
160var environment = new TestEnvironment(new Dictionary<string, string?>());
174var environment = new TestEnvironment(new Dictionary<string, string?>());
190var environment = new TestEnvironment(new Dictionary<string, string?>
209var environment = new TestEnvironment(new Dictionary<string, string?>
231var environment = new TestEnvironment(new Dictionary<string, string?>
252var environment = new TestEnvironment(new Dictionary<string, string?>
DotNet\DotNetCliRunnerTests.cs (34)
79env: new Dictionary<string, string>(),
197new Dictionary<string, string>(),
238new Dictionary<string, string>(),
299env: new Dictionary<string, string> { ["AspireCliBundlePath"] = "bundle-path" },
447configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
540.AddInMemoryCollection(new Dictionary<string, string?>
577.AddInMemoryCollection(new Dictionary<string, string?>
633env: new Dictionary<string, string>(),
674env: new Dictionary<string, string>(),
708var existingEnv = new Dictionary<string, string>
772env: new Dictionary<string, string>(),
825env: new Dictionary<string, string>
911env: new Dictionary<string, string>(),
953env: new Dictionary<string, string>(),
989var userEnv = new Dictionary<string, string>
1058env: new Dictionary<string, string>
1125env: new Dictionary<string, string>
1163env: new Dictionary<string, string>
1205env: new Dictionary<string, string>
1597env: new Dictionary<string, string>(),
1643env: new Dictionary<string, string>(),
1678env: new Dictionary<string, string>(),
1715env: new Dictionary<string, string>(),
1757env: new Dictionary<string, string>(),
1802env: new Dictionary<string, string>(),
1854env: new Dictionary<string, string>(),
1903env: new Dictionary<string, string>(),
1951env: new Dictionary<string, string>(),
2562env: new Dictionary<string, string>(),
2600env: new Dictionary<string, string>(),
2639env: new Dictionary<string, string>(),
2679env: new Dictionary<string, string>(),
2716env: new Dictionary<string, string>(),
2738?? new Dictionary<string, string?>();
Mcp\ExcludeFromMcpTests.cs (15)
43Properties = new Dictionary<string, JsonNode?>
58Properties = new Dictionary<string, JsonNode?>
73Properties = new Dictionary<string, JsonNode?>
88Properties = new Dictionary<string, JsonNode?>
118Properties = new Dictionary<string, JsonNode?>
151Properties = new Dictionary<string, JsonNode?>
183Properties = new Dictionary<string, JsonNode?>
194var arguments = new Dictionary<string, JsonElement>
228var arguments = new Dictionary<string, JsonElement>
255Properties = new Dictionary<string, JsonNode?>
286var arguments = new Dictionary<string, JsonElement>
323var arguments = new Dictionary<string, JsonElement>
360var arguments = new Dictionary<string, JsonElement>
409var arguments = new Dictionary<string, JsonElement>
449Properties = new Dictionary<string, JsonNode?>
Mcp\ListConsoleLogsToolTests.cs (13)
22var arguments = new Dictionary<string, JsonElement>
61var arguments = new Dictionary<string, JsonElement>
96var arguments = new Dictionary<string, JsonElement>
130var arguments = new Dictionary<string, JsonElement>
160var arguments = new Dictionary<string, JsonElement>
189var arguments = new Dictionary<string, JsonElement>
220var arguments = new Dictionary<string, JsonElement>
254var arguments = new Dictionary<string, JsonElement>
286var arguments = new Dictionary<string, JsonElement>
320var arguments = new Dictionary<string, JsonElement>
355var arguments = new Dictionary<string, JsonElement>
392var arguments = new Dictionary<string, JsonElement>
429var arguments = new Dictionary<string, JsonElement>
Packaging\PackagingServiceTests.cs (33)
64.AddInMemoryCollection(new Dictionary<string, string?>
274.AddInMemoryCollection(new Dictionary<string, string?>
363var settings = new Dictionary<string, string?>();
429.AddInMemoryCollection(new Dictionary<string, string?>
461.AddInMemoryCollection(new Dictionary<string, string?>
491.AddInMemoryCollection(new Dictionary<string, string?>
517.AddInMemoryCollection(new Dictionary<string, string?>
544.AddInMemoryCollection(new Dictionary<string, string?>
571.AddInMemoryCollection(new Dictionary<string, string?>
597.AddInMemoryCollection(new Dictionary<string, string?>
638.AddInMemoryCollection(new Dictionary<string, string?>
668.AddInMemoryCollection(new Dictionary<string, string?>
723.AddInMemoryCollection(new Dictionary<string, string?>
847.AddInMemoryCollection(new Dictionary<string, string?>
890.AddInMemoryCollection(new Dictionary<string, string?>
922.AddInMemoryCollection(new Dictionary<string, string?>
954.AddInMemoryCollection(new Dictionary<string, string?>
984.AddInMemoryCollection(new Dictionary<string, string?>
1014.AddInMemoryCollection(new Dictionary<string, string?>
1044.AddInMemoryCollection(new Dictionary<string, string?>
1074.AddInMemoryCollection(new Dictionary<string, string?>
1101.AddInMemoryCollection(new Dictionary<string, string?>
1159.AddInMemoryCollection(new Dictionary<string, string?>
1250.AddInMemoryCollection(new Dictionary<string, string?>
1285.AddInMemoryCollection(new Dictionary<string, string?>
1321.AddInMemoryCollection(new Dictionary<string, string?>
1356.AddInMemoryCollection(new Dictionary<string, string?>
1400.AddInMemoryCollection(new Dictionary<string, string?>
1432.AddInMemoryCollection(new Dictionary<string, string?>
1462.AddInMemoryCollection(new Dictionary<string, string?>
1822.AddInMemoryCollection(new Dictionary<string, string?>
1874.AddInMemoryCollection(new Dictionary<string, string?>
1925.AddInMemoryCollection(new Dictionary<string, string?>
Projects\DotNetAppHostProjectTests.cs (74)
219var env = new Dictionary<string, string>();
224inheritedEnvironmentVariables: new Dictionary<string, string?>());
235var env = new Dictionary<string, string>();
240inheritedEnvironmentVariables: new Dictionary<string, string?>());
251var env = new Dictionary<string, string>();
256inheritedEnvironmentVariables: new Dictionary<string, string?>(),
284var env = new Dictionary<string, string>();
289inheritedEnvironmentVariables: new Dictionary<string, string?>());
302var env = new Dictionary<string, string>();
307inheritedEnvironmentVariables: new Dictionary<string, string?>
352EnvironmentVariables = new Dictionary<string, string>()
393EnvironmentVariables = new Dictionary<string, string>()
488EnvironmentVariables = new Dictionary<string, string>()
537EnvironmentVariables = new Dictionary<string, string>
557var environment = new TestEnvironment(new Dictionary<string, string?>
596EnvironmentVariables = new Dictionary<string, string>()
620var environmentVariables = new Dictionary<string, string>
659EnvironmentVariables = useExplicitOverlay ? environmentVariables : new Dictionary<string, string>()
703EnvironmentVariables = new Dictionary<string, string>()
749EnvironmentVariables = new Dictionary<string, string>()
809EnvironmentVariables = new Dictionary<string, string>()
872EnvironmentVariables = new Dictionary<string, string>()
930EnvironmentVariables = new Dictionary<string, string>()
984EnvironmentVariables = new Dictionary<string, string>
1084EnvironmentVariables = new Dictionary<string, string>
1168EnvironmentVariables = new Dictionary<string, string>
1223EnvironmentVariables = new Dictionary<string, string>()
1257EnvironmentVariables = new Dictionary<string, string>()
1299EnvironmentVariables = new Dictionary<string, string>()
1340EnvironmentVariables = new Dictionary<string, string>()
1390EnvironmentVariables = new Dictionary<string, string>()
1434EnvironmentVariables = new Dictionary<string, string>()
1488EnvironmentVariables = new Dictionary<string, string>()
1545EnvironmentVariables = new Dictionary<string, string>()
1699EnvironmentVariables = new Dictionary<string, string>()
1754EnvironmentVariables = new Dictionary<string, string>()
1809EnvironmentVariables = new Dictionary<string, string>()
1874EnvironmentVariables = new Dictionary<string, string>()
1935EnvironmentVariables = new Dictionary<string, string>()
2000EnvironmentVariables = new Dictionary<string, string>()
2057EnvironmentVariables = new Dictionary<string, string>()
2123EnvironmentVariables = new Dictionary<string, string>()
2184EnvironmentVariables = new Dictionary<string, string>()
2224EnvironmentVariables = new Dictionary<string, string>()
2269EnvironmentVariables = new Dictionary<string, string>(),
2318EnvironmentVariables = new Dictionary<string, string>(),
2379EnvironmentVariables = new Dictionary<string, string>()
2417EnvironmentVariables = new Dictionary<string, string>()
2472EnvironmentVariables = new Dictionary<string, string>()
2513EnvironmentVariables = new Dictionary<string, string>(),
2540var env = new Dictionary<string, string>();
2545inheritedEnvironmentVariables: new Dictionary<string, string?>());
2574var env = new Dictionary<string, string>();
2579inheritedEnvironmentVariables: new Dictionary<string, string?>());
2608var env = new Dictionary<string, string>();
2613inheritedEnvironmentVariables: new Dictionary<string, string?>());
2639var env = new Dictionary<string, string>();
2644inheritedEnvironmentVariables: new Dictionary<string, string?>());
2669var env = new Dictionary<string, string>();
2674inheritedEnvironmentVariables: new Dictionary<string, string?>());
2713var env = new Dictionary<string, string>();
2718inheritedEnvironmentVariables: new Dictionary<string, string?>());
2733var env = new Dictionary<string, string>();
2738inheritedEnvironmentVariables: new Dictionary<string, string?>());
2760var env = new Dictionary<string, string>();
2765inheritedEnvironmentVariables: new Dictionary<string, string?>());
2785var env = new Dictionary<string, string>();
2790inheritedEnvironmentVariables: new Dictionary<string, string?>());
2800var env = new Dictionary<string, string>();
2805inheritedEnvironmentVariables: new Dictionary<string, string?>());
2828var env = new Dictionary<string, string>();
2833inheritedEnvironmentVariables: new Dictionary<string, string?>(),
2920EnvironmentVariables = new Dictionary<string, string>()
4500var properties = new Dictionary<string, string?>
Projects\ExtensionGuestLauncherTests.cs (7)
38new Dictionary<string, string>(),
71new Dictionary<string, string> { ["PATH"] = effectivePath },
100await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
115await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "npx"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
130var envVars = new Dictionary<string, string>
150var (exitCode, output) = await launcher.LaunchAsync(Path.Combine(Path.GetTempPath(), "cmd"), [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
167await launcher.LaunchAsync(command, [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
Projects\GuestAppHostProjectTests.cs (41)
254Packages = new Dictionary<string, string>
277Packages = new Dictionary<string, string>
317Packages = new Dictionary<string, string>
340Packages = new Dictionary<string, string>
362Packages = new Dictionary<string, string>
423Packages = new Dictionary<string, string>
481inheritedEnvironmentVariables: new Dictionary<string, string?>());
491launchProfileEnvironmentVariables: new Dictionary<string, string>
501inheritedEnvironmentVariables: new Dictionary<string, string?>());
515launchProfileEnvironmentVariables: new Dictionary<string, string>
523inheritedEnvironmentVariables: new Dictionary<string, string?>(),
554new Dictionary<string, string>
559new Dictionary<string, string>
578contextEnvironmentVariables: new Dictionary<string, string>(),
579launchProfileEnvironmentVariables: new Dictionary<string, string>
590inheritedEnvironmentVariables: new Dictionary<string, string?>());
604contextEnvironmentVariables: new Dictionary<string, string>(),
606inheritedEnvironmentVariables: new Dictionary<string, string?>(),
618contextEnvironmentVariables: new Dictionary<string, string>(),
620inheritedEnvironmentVariables: new Dictionary<string, string?>(),
630contextEnvironmentVariables: new Dictionary<string, string>(),
631launchProfileEnvironmentVariables: new Dictionary<string, string>
638inheritedEnvironmentVariables: new Dictionary<string, string?>(),
650contextEnvironmentVariables: new Dictionary<string, string>(),
653inheritedEnvironmentVariables: new Dictionary<string, string?>
666contextEnvironmentVariables: new Dictionary<string, string>
672inheritedEnvironmentVariables: new Dictionary<string, string?>());
683contextEnvironmentVariables: new Dictionary<string, string>
689inheritedEnvironmentVariables: new Dictionary<string, string?>());
699var files = new Dictionary<string, string>
1107.AddInMemoryCollection(new Dictionary<string, string?>
1169EnvironmentVariables = new Dictionary<string, string>()
1230EnvironmentVariables = new Dictionary<string, string>(),
1587var envVars = new Dictionary<string, string>();
1609var envVars = new Dictionary<string, string>
1631var envVars = new Dictionary<string, string>
1662var envVars = new Dictionary<string, string>
1685var envVars = new Dictionary<string, string>();
1716var environment = TestEnvironment.CreateWindows(new Dictionary<string, string?>
1721var envVars = new Dictionary<string, string>
1781var envVars = new Dictionary<string, string>
Projects\GuestRuntimeTests.cs (59)
127var envVars = new Dictionary<string, string>();
147await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None);
168var (exitCode, _) = await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None);
189await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
209new Dictionary<string, string>(),
239new Dictionary<string, string>(),
285await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
335new Dictionary<string, string>(),
364new Dictionary<string, string>(),
387await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None);
404await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None);
425await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None);
451new Dictionary<string, string>(),
480new Dictionary<string, string>(),
501await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), null, launcher, cancellationToken: CancellationToken.None);
513EnvironmentVariables = new Dictionary<string, string> { ["SPEC_VAR"] = "spec_value" }
519var envVars = new Dictionary<string, string> { ["CALLER_VAR"] = "caller_value" };
534EnvironmentVariables = new Dictionary<string, string> { ["SHARED_VAR"] = "from_spec" }
540var envVars = new Dictionary<string, string> { ["SHARED_VAR"] = "from_caller" };
558var envVars = new Dictionary<string, string>
579var commandEnvironment = new Dictionary<string, string> { ["PATH"] = effectivePath };
608new Dictionary<string, string> { ["PATH"] = Path.GetDirectoryName(ambientJava)! },
644await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
663await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
681await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--extra", "arg"], launcher, cancellationToken: CancellationToken.None);
701await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
739new Dictionary<string, string>(),
758new Dictionary<string, string>(),
806EnvironmentVariables = new Dictionary<string, string>
815EnvironmentVariables = new Dictionary<string, string>
824new Dictionary<string, string>
854EnvironmentVariables = new Dictionary<string, string> { ["PATH"] = string.Empty }
860new Dictionary<string, string>(),
887EnvironmentVariables = new Dictionary<string, string> { ["PATH"] = string.Empty }
895new Dictionary<string, string>(),
926new Dictionary<string, string>(),
983new Dictionary<string, string>(),
1051new Dictionary<string, string>(),
1103new Dictionary<string, string>(),
1153MigrationFiles = new Dictionary<string, string>
1168await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1201MigrationFiles = new Dictionary<string, string>
1212await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1232await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1246await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1262await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1278await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1300await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1323await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1348await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1370await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1399await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1423await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1464await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1489await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1533await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1561await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1592await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None);
1686public IDictionary<string, string> LastEnvironmentVariables { get; private set; } = new Dictionary<string, string>();
Projects\ProcessGuestLauncherTests.cs (6)
40new Dictionary<string, string>(),
67new Dictionary<string, string>(),
125new Dictionary<string, string>(),
178new Dictionary<string, string>(),
232new Dictionary<string, string>(),
292new Dictionary<string, string>(),
Telemetry\CIEnvironmentDetectorTests.cs (12)
38.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value })
54.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value })
65.AddInMemoryCollection(new Dictionary<string, string?>
80.AddInMemoryCollection(new Dictionary<string, string?>
94.AddInMemoryCollection(new Dictionary<string, string?>
108.AddInMemoryCollection(new Dictionary<string, string?>
123.AddInMemoryCollection(new Dictionary<string, string?>
137.AddInMemoryCollection(new Dictionary<string, string?>
152.AddInMemoryCollection(new Dictionary<string, string?>
169.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value })
182.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value })
193.AddInMemoryCollection(new Dictionary<string, string?>
Telemetry\InternalMicrosoftDetectorTests.cs (12)
530environmentVariables: new Dictionary<string, string?> { ["CI"] = "true" });
593environmentVariables: new Dictionary<string, string?>
614environmentVariables: new Dictionary<string, string?>
647environmentVariables: new Dictionary<string, string?>
684environmentVariables: new Dictionary<string, string?>
715environmentVariables: new Dictionary<string, string?>
1056environmentVariables: new Dictionary<string, string?>
1081var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
1112var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
1312environmentVariables: new Dictionary<string, string?>
1365environmentVariables: new Dictionary<string, string?>
1846?? new Dictionary<string, string?>();
Utils\CliHostEnvironmentTests.cs (19)
53.AddInMemoryCollection(new Dictionary<string, string?>
82.AddInMemoryCollection(new Dictionary<string, string?>
102.AddInMemoryCollection(new Dictionary<string, string?>
125.AddInMemoryCollection(new Dictionary<string, string?>
142.AddInMemoryCollection(new Dictionary<string, string?>
164.AddInMemoryCollection(new Dictionary<string, string?>
182.AddInMemoryCollection(new Dictionary<string, string?>
226.AddInMemoryCollection(new Dictionary<string, string?>
244.AddInMemoryCollection(new Dictionary<string, string?>
262.AddInMemoryCollection(new Dictionary<string, string?>
280.AddInMemoryCollection(new Dictionary<string, string?>
299.AddInMemoryCollection(new Dictionary<string, string?>
318.AddInMemoryCollection(new Dictionary<string, string?>
337.AddInMemoryCollection(new Dictionary<string, string?>
356.AddInMemoryCollection(new Dictionary<string, string?>
375.AddInMemoryCollection(new Dictionary<string, string?>
393.AddInMemoryCollection(new Dictionary<string, string?>
414.AddInMemoryCollection(new Dictionary<string, string?>
432.AddInMemoryCollection(new Dictionary<string, string?>
Utils\DevCertsCheckTests.cs (16)
341var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
376var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
422var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
466var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
517var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
572var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
622var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
681var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
738var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
779var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
823var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
869var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
915var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
961var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
1004var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
1040var environment = TestEnvironment.CreateMacOS(new Dictionary<string, string?>
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (39)
Aspire.Dashboard.Components.Tests (18)
Pages\ResourcesTests.cs (3)
562new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } },
564new Dictionary<string, bool> { { "Running", true }, { "Finished", false } },
566new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (82)
ResourceOutgoingPeerResolverTests.cs (29)
37var resources = new Dictionary<string, ResourceViewModel>
50var resources = new Dictionary<string, ResourceViewModel>
63var resources = new Dictionary<string, ResourceViewModel>
76var resources = new Dictionary<string, ResourceViewModel>
95var resources = new Dictionary<string, ResourceViewModel>
109var resources = new Dictionary<string, ResourceViewModel>
123var resources = new Dictionary<string, ResourceViewModel>
138var resources = new Dictionary<string, ResourceViewModel>
158var resources = new Dictionary<string, ResourceViewModel>
171var resources = new Dictionary<string, ResourceViewModel>
192var resources = new Dictionary<string, ResourceViewModel>
217var resources = new Dictionary<string, ResourceViewModel>
240var resources = new Dictionary<string, ResourceViewModel>
255var resources = new Dictionary<string, ResourceViewModel>
268var resources = new Dictionary<string, ResourceViewModel>
437var resources = new Dictionary<string, ResourceViewModel>
451var resources = new Dictionary<string, ResourceViewModel>
483var resources = new Dictionary<string, ResourceViewModel>
498var resources = new Dictionary<string, ResourceViewModel>
512var resources = new Dictionary<string, ResourceViewModel>
527var resources = new Dictionary<string, ResourceViewModel>
540var resources = new Dictionary<string, ResourceViewModel>
554var resources = new Dictionary<string, ResourceViewModel>
569var resources = new Dictionary<string, ResourceViewModel>
581var properties = new Dictionary<string, ResourcePropertyViewModel>
617var properties = new Dictionary<string, ResourcePropertyViewModel>
639var resources = new Dictionary<string, ResourceViewModel>
654var resources = new Dictionary<string, ResourceViewModel>
671var resources = new Dictionary<string, ResourceViewModel>
Aspire.Deployment.EndToEnd.Tests (55)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (44)
Aspire.Hosting.Azure (6)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ConnectorNamespace (1)
Aspire.Hosting.Azure.Kubernetes (1)
Aspire.Hosting.Azure.Kubernetes.Tests (2)
Aspire.Hosting.Azure.Kusto.Tests (1)
Aspire.Hosting.Azure.Sandboxes (2)
Aspire.Hosting.Azure.Tests (87)
AzureDeployerTests.cs (32)
143string name when name.StartsWith("env-acr") => new Dictionary<string, object>
148string name when name.StartsWith("env") => new Dictionary<string, object>
206string name when name.StartsWith("env-acr") => new Dictionary<string, object>
211string name when name.StartsWith("env") => new Dictionary<string, object>
265string name when name.StartsWith("env-acr") => new Dictionary<string, object>
270string name when name.StartsWith("env") => new Dictionary<string, object>
325string name when name.StartsWith("env-acr") => new Dictionary<string, object>
330string name when name.StartsWith("env") => new Dictionary<string, object>
391string name when name.StartsWith("env-acr") => new Dictionary<string, object>
396string name when name.StartsWith("env") => new Dictionary<string, object>
457string name when name.StartsWith("env-acr") => new Dictionary<string, object>
462string name when name.StartsWith("env") => new Dictionary<string, object>
513string name when name.StartsWith("env-acr") => new Dictionary<string, object>
518string name when name.StartsWith("env") => new Dictionary<string, object>
576string name when name.StartsWith("aca-env-acr") => new Dictionary<string, object>
581string name when name.StartsWith("aca-env") => new Dictionary<string, object>
590string name when name.StartsWith("aas-env-acr") => new Dictionary<string, object>
595string name when name.StartsWith("aas-env") => new Dictionary<string, object>
864string name when name.StartsWith("env-acr") => new Dictionary<string, object>
869string name when name.StartsWith("env") => new Dictionary<string, object>
928string name when name.StartsWith("env-acr") => new Dictionary<string, object>
933string name when name.StartsWith("env") => new Dictionary<string, object>
1094string name when name.StartsWith("env-acr") => new Dictionary<string, object>
1099string name when name.StartsWith("env") => new Dictionary<string, object>
1108string name when name.StartsWith("funcstorage") => new Dictionary<string, object>
1116string name when name.StartsWith("hoststorage") => new Dictionary<string, object>
1124string name when name.StartsWith("funcapp-identity") => new Dictionary<string, object>
1130string name when name.StartsWith("funcapp-containerapp") => new Dictionary<string, object>
1137string name when name.StartsWith("funcapp") => new Dictionary<string, object>
1214string name when name.StartsWith("env") => new Dictionary<string, object>
1222string name when name.StartsWith("kv") => new Dictionary<string, object>
1628Profiles = 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.Blazor (1)
Aspire.Hosting.Blazor.Tests (28)
GatewayConfigurationBuilderTests.cs (20)
23var env = new Dictionary<string, object>();
46var env = new Dictionary<string, object>();
68var env = new Dictionary<string, object>();
95var env = new Dictionary<string, object>();
121var env = new Dictionary<string, object>();
141var env = new Dictionary<string, object>();
167var env = new Dictionary<string, object>();
192var env = new Dictionary<string, object>();
215var env = new Dictionary<string, object>
247var env = new Dictionary<string, object>();
268var env = new Dictionary<string, object>();
294var env = new Dictionary<string, object>();
318var env = new Dictionary<string, object>();
341var env = new Dictionary<string, object>();
366var env = new Dictionary<string, object>();
397var env = new Dictionary<string, object>();
456var env = new Dictionary<string, object>();
485var env = new Dictionary<string, object>();
504Environment = new Dictionary<string, string>
530var env = new Dictionary<string, object>();
Aspire.Hosting.Browsers (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.CodeGeneration.Go (1)
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Python (14)
Aspire.Hosting.CodeGeneration.Rust (1)
Aspire.Hosting.CodeGeneration.TypeScript (7)
Aspire.Hosting.Containers.Tests (6)
Aspire.Hosting.DevTunnels.Tests (1)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Docker.Tests (5)
Aspire.Hosting.Dotnet (1)
Aspire.Hosting.Dotnet.Tests (7)
Aspire.Hosting.EntityFrameworkCore (6)
EFCoreOperationExecutor.cs (6)
540return await ExecuteEfCommandAsync("database", "drop", new Dictionary<string, string?>
568var args = new Dictionary<string, string?>
589return await ExecuteEfCommandAsync("migrations", "remove", new Dictionary<string, string?>
600var result = await ExecuteEfCommandAsync("migrations", "list", new Dictionary<string, string?>
701var args = new Dictionary<string, string?>();
732var args = new Dictionary<string, string?>();
Aspire.Hosting.Foundry (7)
Aspire.Hosting.Foundry.Tests (13)
FoundryToolboxReconcilerTests.cs (13)
124new FoundryToolboxVersionState("1", new Dictionary<string, string>())
170new FoundryToolboxVersionState("1", new Dictionary<string, string>()),
199new FoundryToolboxVersionState("4", new Dictionary<string, string>()),
311new Dictionary<string, string>
320new Dictionary<string, string>
372new Dictionary<string, string>()));
436new FoundryToolboxVersionState("3", new Dictionary<string, string>())
456new FoundryToolboxVersionState("2", new Dictionary<string, string>()),
457new FoundryToolboxVersionState("3", new Dictionary<string, string>())
485new FoundryToolboxVersionState("3", new Dictionary<string, string>())
505new Dictionary<string, string>());
514new Dictionary<string, string>());
528new Dictionary<string, string>
Aspire.Hosting.Java.Tests (2)
Aspire.Hosting.JavaScript (1)
Aspire.Hosting.JavaScript.Tests (15)
AddViteAppTests.cs (10)
570var env = new Dictionary<string, object>();
630var env = new Dictionary<string, object>();
682var env = new Dictionary<string, object>();
728var env = new Dictionary<string, object>();
777var env = new Dictionary<string, object>();
839var env = new Dictionary<string, object>();
908var configPaths = new Dictionary<string, string>();
919EnvironmentVariables = new Dictionary<string, object>(),
1017var env = new Dictionary<string, object>();
1115EnvironmentVariables = new Dictionary<string, object>(),
Aspire.Hosting.Kubernetes (11)
KubernetesPublishingContext.cs (6)
27private readonly Dictionary<string, Dictionary<string, object>> _helmValues = new()
29[HelmExtensions.ParametersKey] = new Dictionary<string, object>(),
30[HelmExtensions.SecretsKey] = new Dictionary<string, object>(),
31[HelmExtensions.ConfigKey] = new Dictionary<string, object>(),
178resourceSection = new Dictionary<string, object>();
265var paramValues = new Dictionary<string, object>();
Aspire.Hosting.Kubernetes.Tests (8)
Aspire.Hosting.Maui (5)
Aspire.Hosting.Maui.Tests (18)
MauiPlatformExtensionsTests.cs (9)
50new Dictionary<string, string> { ["OpenArguments"] = "-W" }),
59new Dictionary<string, string> { ["AdbTarget"] = "-d" }),
68new Dictionary<string, string> { ["AdbTarget"] = "-e" }),
77new Dictionary<string, string> { ["RuntimeIdentifier"] = "ios-arm64" }),
371Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s abc12345" }, launchConfiguration.MsBuildProperties);
394Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s Pixel_5_API_33" }, launchConfiguration.MsBuildProperties);
418Assert.Equal(new Dictionary<string, string>
445Assert.Equal(new Dictionary<string, string>
1440configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.MongoDB.Tests (1)
Aspire.Hosting.MySql.Tests (6)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Orleans.Tests (1)
Aspire.Hosting.PostgreSQL.Tests (5)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Radius (11)
Publishing\RadiusInfrastructureBuilder.cs (10)
246var instanceParents = new Dictionary<RadiusResourceTypeConstruct, (ProvisionableResource? Env, ProvisionableResource App)>();
268var containerConnectionTargets = new Dictionary<RadiusContainerConstruct, Dictionary<string, RadiusResourceTypeConstruct>>();
637var resolved = new Dictionary<IResource, (string ResourceType, string ApiVersion)>();
2003bicepAuth[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef };
2006gitPat[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef };
2009envSecrets[consumer.Selector!] = new Dictionary<string, object>
2024recipeConfig["bicep"] = new Dictionary<string, object> { ["authentication"] = bicepAuth };
2029recipeConfig["terraform"] = new Dictionary<string, object>
2031["authentication"] = new Dictionary<string, object>
2033["git"] = new Dictionary<string, object> { ["pat"] = gitPat },
Aspire.Hosting.Radius.Tests (4)
Aspire.Hosting.Redis.Tests (8)
Aspire.Hosting.RemoteHost (13)
AtsCapabilityScanner.cs (13)
51public Dictionary<string, MethodInfo> Methods { get; init; } = new();
57public Dictionary<string, PropertyInfo> Properties { get; init; } = new();
147var allMethods = new Dictionary<string, MethodInfo>();
148var allProperties = new Dictionary<string, PropertyInfo>();
149var seenCapabilities = new Dictionary<string, AtsCapabilityInfo>(); // Track capability ID -> first capability for duplicate detection
306var methods = new Dictionary<string, MethodInfo>();
307var properties = new Dictionary<string, PropertyInfo>();
311var discoveredResourceTypes = new Dictionary<string, Type>();
873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>();
1527public Dictionary<string, MethodInfo> Methods { get; init; } = new();
1532public Dictionary<string, PropertyInfo> Properties { get; init; } = new();
1543var methods = new Dictionary<string, MethodInfo>();
1544var properties = new Dictionary<string, PropertyInfo>();
Aspire.Hosting.RemoteHost.Tests (22)
Aspire.Hosting.Rust.Tests (19)
CargoMetadataTests.cs (15)
100var environment = new Dictionary<string, string>
117var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = " secret " };
129var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = Secret };
142var resourceEnvironment = new Dictionary<string, string>();
143var inheritedEnvironment = new Dictionary<string, string?>
160var inheritedEnvironment = new Dictionary<string, string?>
167new Dictionary<string, string>(),
183var inheritedEnvironment = new Dictionary<string, string?>
190new Dictionary<string, string>(),
201var inheritedEnvironment = new Dictionary<string, string?>
208new Dictionary<string, string>(),
217var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" };
227var environment = new Dictionary<string, string>
241var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" };
257new Dictionary<string, string>());
Aspire.Hosting.Sdk.Tests (20)
AppHostSdkTargetsTests.cs (20)
147new Dictionary<string, string>
238environment: new Dictionary<string, string>
257environment: new Dictionary<string, string>
277new Dictionary<string, string>
313new Dictionary<string, string> { ["AspireCliPath"] = aspireCliPath });
338new Dictionary<string, string>
408? new Dictionary<string, string> { [SuppressCliRunHookEnvironmentVariable] = suppressionValue }
430var environment = new Dictionary<string, string>
467var environment = new Dictionary<string, string>
507var environment = new Dictionary<string, string>
548var environment = new Dictionary<string, string>
600var environment = new Dictionary<string, string>
649var environment = new Dictionary<string, string>
682var environment = new Dictionary<string, string>
709var environment = new Dictionary<string, string>
737var environment = new Dictionary<string, string>
763var environment = new Dictionary<string, string>
823new Dictionary<string, string>
929var environment = new Dictionary<string, string>
1780return new Dictionary<string, string>
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Testing (3)
Aspire.Hosting.Tests (279)
AddParameterTests.cs (14)
50appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
79appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
131appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
217appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
287appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
618InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?>
623[nameof(InteractionInput.Options)] = new Dictionary<string, string>
679InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?>
685[nameof(InteractionInput.Options)] = new Dictionary<string, string>()
703foreach (var (propertyName, value) in properties ?? new Dictionary<string, object?>())
721appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
744appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
768appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
794appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (9)
26.AddInMemoryCollection(new Dictionary<string, string?>
72.AddInMemoryCollection(new Dictionary<string, string?>
90.AddInMemoryCollection(new Dictionary<string, string?>
944.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>()))
1001.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>()))
1205.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, resource, new Dictionary<string, object>()))
2221.AddInMemoryCollection(new Dictionary<string, string?>
2818.AddInMemoryCollection(new Dictionary<string, string?>
2858.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (14)
33builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
99builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
198builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
233builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
269var config = new Dictionary<string, string?>
304builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
369builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
411builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
447builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
484builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
532builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
579builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
613builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
807var config = new Dictionary<string, string?>
Dcp\DcpExecutorTests.cs (105)
192configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?>
294var configDict = new Dictionary<string, string?>
877var configDict = new Dictionary<string, string?>
913var configDict = new Dictionary<string, string?>
957var configDict = new Dictionary<string, string?>
1157.AddInMemoryCollection(new Dictionary<string, string?>
1236var configDict = new Dictionary<string, string?>
1274var configDict = new Dictionary<string, string?>
1312var configDict = new Dictionary<string, string?>
1433var configDict = new Dictionary<string, string?>
1474.AddInMemoryCollection(new Dictionary<string, string?>
3593var configDict = new Dictionary<string, string?>
3631var configDict = new Dictionary<string, string?>
4366configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4401configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4446configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4478configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4514configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4554configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4585configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4616configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4646configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4675configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
4727.AddInMemoryCollection(new Dictionary<string, string?>
4774var configDict = new Dictionary<string, string?>
4825var configDict = new Dictionary<string, string?>
4967configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
5007.AddInMemoryCollection(new Dictionary<string, string?>
5047.AddInMemoryCollection(new Dictionary<string, string?>
5091.AddInMemoryCollection(new Dictionary<string, string?>
5144.AddInMemoryCollection(new Dictionary<string, string?>
5179configBuilder.AddInMemoryCollection(new Dictionary<string, string?>
5209var configDict = new Dictionary<string, string?>
5325.AddInMemoryCollection(new Dictionary<string, string?>
5362var configDict = new Dictionary<string, string?>
5415var configDict = new Dictionary<string, string?>
5466var configDict = new Dictionary<string, string?>
5689var configDict = new Dictionary<string, string?>
5728var configDict = new Dictionary<string, string?>
5767var configDict = new Dictionary<string, string?>
5803var configDict = new Dictionary<string, string?>
5845var configDict = new Dictionary<string, string?>
5887var configDict = new Dictionary<string, string?>
5929var configDict = new Dictionary<string, string?>
5966var configDict = new Dictionary<string, string?>
6003var configDict = new Dictionary<string, string?>
6045var configDict = new Dictionary<string, string?>
6079var configDict = new Dictionary<string, string?>
6118var configDict = new Dictionary<string, string?>
6160var configDict = new Dictionary<string, string?>
6197var configDict = new Dictionary<string, string?>
6243var configDict = new Dictionary<string, string?>
6300var configDict = new Dictionary<string, string?>
6354var configDict = new Dictionary<string, string?>
6454MsBuildProperties = new Dictionary<string, string>
6467var configDict = new Dictionary<string, string?>
6569.AddInMemoryCollection(new Dictionary<string, string?>
6704.AddInMemoryCollection(new Dictionary<string, string?>
6803.AddInMemoryCollection(new Dictionary<string, string?>
6893.AddInMemoryCollection(new Dictionary<string, string?>
7008.AddInMemoryCollection(new Dictionary<string, string?>
7061.AddInMemoryCollection(new Dictionary<string, string?>
7107var configDict = new Dictionary<string, string?>
7193var configDict = new Dictionary<string, string?>
7234var configDict = new Dictionary<string, string?>
7290var configDict = new Dictionary<string, string?>
7332var configDict = new Dictionary<string, string?>
7412var configDict = new Dictionary<string, string?>
7444var configDict = new Dictionary<string, string?>
7490var configDict = new Dictionary<string, string?>
7531var configDict = new Dictionary<string, string?>
7570var configDict = new Dictionary<string, string?>
7613var configDict = new Dictionary<string, string?>
7813var configDict = new Dictionary<string, string?>
7885var configDict = new Dictionary<string, string?>
7924var configDict = new Dictionary<string, string?>
7958var configDict = new Dictionary<string, string?>
8022var configDict = new Dictionary<string, string?>
8053var configDict = new Dictionary<string, string?>
8085var configDict = new Dictionary<string, string?>
8147var configDict = new Dictionary<string, string?>
8202var configDict = new Dictionary<string, string?>
8253var configDict = new Dictionary<string, string?>
8306var configDict = new Dictionary<string, string?>
8383var configDict = new Dictionary<string, string?>
8418var configDict = new Dictionary<string, string?>
8473var configDict = new Dictionary<string, string?>
8515var configDict = new Dictionary<string, string?>
8552var configDict = new Dictionary<string, string?>
8587var configDict = new Dictionary<string, string?>
8663var configDict = new Dictionary<string, string?>
8746var configDict = new Dictionary<string, string?>
8808var configDict = new Dictionary<string, string?>
8859var configDict = new Dictionary<string, string?>
8902var configDict = new Dictionary<string, string?>
8952var configDict = new Dictionary<string, string?>
9337var configDict = new Dictionary<string, string?>
9390var configDict = new Dictionary<string, string?>
9760var configDict = new Dictionary<string, string?>
9807var configDict = new Dictionary<string, string?>
9851var configDict = new Dictionary<string, string?>
9900var configDict = new Dictionary<string, string?>
10179builder.AddInMemoryCollection(new Dictionary<string, string?>
10473EnvironmentVariables = new Dictionary<string, string>
10483EnvironmentVariables = new Dictionary<string, string>
MSBuildTests.cs (10)
341new Dictionary<string, string>
460BuildProject(appHostDirectory, new Dictionary<string, string> { ["ASPIRE_HOME"] = bundle.LayoutRoot });
481BuildProject(appHostDirectory, new Dictionary<string, string>
519new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome });
548new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome });
577new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome });
605BuildProject(appHostDirectory, new Dictionary<string, string>
637var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string>
659BuildProject(appHostDirectory, new Dictionary<string, string>
796var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string>
ResourceCommandServiceTests.cs (9)
600new Dictionary<string, string?> { ["message"] = "hello" },
640new Dictionary<string, string?> { ["message"] = "hello" },
795var argumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" };
827var argumentValues = new Dictionary<string, string?> { ["saveToUserSecrets"] = "true" };
868var argumentValues = new Dictionary<string, string?> { ["item"] = "banana" };
1029ArgumentValues = new Dictionary<string, string?>
1119ArgumentValues = new Dictionary<string, string?>
1194ArgumentValues = new Dictionary<string, string?>
1245ArgumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" },
Aspire.Hosting.TestUtilities (5)
Aspire.Hosting.Valkey.Tests (3)
Aspire.Hosting.Yarp.Tests (11)
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>();
280.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Managed.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
178resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } },
186resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
191resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } },
204resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }),
206resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } },
213resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } },
219resourceEndpoints: new() {
228resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
233resourceEndpoints: new() {
247resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } },
254resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } },
260resourceEndpoints: new() { { "api", ["/alive", "/health"] } },
267resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } },
273resourceEndpoints: new() {
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.Templates.Tests (2)
Aspire.TypeSystem (2)
blazor-devserver (1)
cdac-build-tool (11)
ConfigurationSchemaGenerator (3)
ConfigurationSchemaGenerator.Tests (2)
crossgen2 (6)
Crossgen2Tasks (1)
dotnet-aot (37)
parent\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
48return new()
dotnet-format (3)
dotnet-openapi (2)
dotnet-svcutil-lib (190)
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 (7)
dotnet-user-secrets (2)
dotnet-watch (3)
DotNetWatchTasks (1)
GenerateDocumentationAndConfigFiles (22)
src\roslyn\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>()
HelixTestTasks (1)
ILAssembler (19)
EntityRegistry.cs (6)
17private readonly Dictionary<TableIndex, List<EntityBase>> _seenEntities = new();
18private readonly Dictionary<(TypeDefinitionEntity? ContainingType, string Namespace, string Name), TypeDefinitionEntity> _seenTypeDefs = new();
19private readonly Dictionary<(EntityBase ResolutionScope, string Namespace, string Name), TypeReferenceEntity> _seenTypeRefs = new();
21private readonly Dictionary<string, ModuleReferenceEntity> _seenModuleRefs = new();
24private readonly Dictionary<string, FileEntity> _seenFiles = new();
26private readonly Dictionary<(ExportedTypeEntity? ContainingType, string Namespace, string Name), ExportedTypeEntity> _seenExportedTypes = new();
ilc (5)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (123)
Compiler\ILScanner.cs (6)
296private readonly Dictionary<TypeDesc, MethodDesc[]> _vtableSlices = new Dictionary<TypeDesc, MethodDesc[]>();
339private Dictionary<TypeSystemEntity, (GenericLookupResult[] Slots, GenericLookupResult[] DiscardedSlots)> _layouts = new();
462private Dictionary<TypeDesc, HashSet<TypeDesc>> _implementators = new();
480var vtables = new Dictionary<TypeDesc, List<MethodDesc>>();
857private readonly Dictionary<MethodDesc, TypeSystemException> _importationErrors = new Dictionary<MethodDesc, TypeSystemException>();
901Dictionary<MetadataType, int> offsets = new Dictionary<MetadataType, int>();
Compiler\Logger.cs (1)
78: this(writer, ilProvider, isVerbose, Array.Empty<int>(), singleWarn: false, Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>(), false, new Dictionary<int, bool>(), disableGeneratedCodeHeuristics)
Compiler\TypePreinit.cs (7)
42private readonly Dictionary<FieldDesc, Value> _fieldValues = new Dictionary<FieldDesc, Value>();
43private readonly Dictionary<string, StringInstance> _internedStrings = new Dictionary<string, StringInstance>();
44private readonly Dictionary<TypeDesc, RuntimeTypeValue> _internedTypes = new Dictionary<TypeDesc, RuntimeTypeValue>();
45private readonly Dictionary<AllocationSite, ForeignTypeInstance> _foreignInstances = new Dictionary<AllocationSite, ForeignTypeInstance>();
46private readonly Dictionary<MetadataType, NestedPreinitResult> _nestedPreinitResults = new Dictionary<MetadataType, NestedPreinitResult>();
47private readonly Dictionary<EcmaField, byte[]> _rvaFieldDatas = new Dictionary<EcmaField, byte[]>();
3793_fieldValues = new Dictionary<FieldDesc, ISerializableValue>();
Compiler\UserDefinedTypeDescriptor.cs (11)
863private Dictionary<TypeDesc, uint> _knownTypes = new Dictionary<TypeDesc, uint>();
864private Dictionary<TypeDesc, uint> _completeKnownTypes = new Dictionary<TypeDesc, uint>();
865private Dictionary<TypeDesc, uint> _knownReferenceWrappedTypes = new Dictionary<TypeDesc, uint>();
866private Dictionary<TypeDesc, uint> _knownStateMachineThisTypes = new Dictionary<TypeDesc, uint>();
867private Dictionary<TypeDesc, uint> _pointerTypes = new Dictionary<TypeDesc, uint>();
868private Dictionary<TypeDesc, uint> _enumTypes = new Dictionary<TypeDesc, uint>();
869private Dictionary<TypeDesc, uint> _byRefTypes = new Dictionary<TypeDesc, uint>();
870private Dictionary<TypeDesc, uint> _thisTypes = new Dictionary<TypeDesc, uint>();
871private Dictionary<TypeDesc, uint> _primitiveTypes = new Dictionary<TypeDesc, uint>();
872private Dictionary<MethodDesc, uint> _methodIndices = new Dictionary<MethodDesc, uint>();
873private Dictionary<MethodDesc, uint> _methodIdIndices = new Dictionary<MethodDesc, uint>();
parent\parent\Common\Compiler\NativeAotNameMangler.cs (5)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>();
467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>();
468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>();
626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>();
684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>();
24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>();
25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>();
26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>();
27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
ILCompiler.DependencyAnalysisFramework (3)
ILCompiler.Diagnostics (2)
ILCompiler.MetadataTransform (6)
ILCompiler.ReadyToRun (92)
Compiler\CallChainProfile.cs (5)
66var resolvedProfileData = new Dictionary<MethodDesc, Dictionary<MethodDesc, int>>();
67Dictionary<string, MethodDesc> nameToMethodDescMap = new Dictionary<string, MethodDesc>();
86resolvedProfileData.Add(resolvedKeyMethod, new Dictionary<MethodDesc, int>());
247Dictionary<string, Dictionary<string, int>> profileData = new Dictionary<string, Dictionary<string, int>>();
282profileData.Add(keyParts, new Dictionary<string, int>());
parent\parent\Common\Compiler\NativeAotNameMangler.cs (5)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>();
467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>();
468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>();
626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>();
684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
parent\parent\Common\JitInterface\CorInfoImpl.cs (8)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>();
237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>();
238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>();
663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>();
865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>();
2457private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>();
2624private Dictionary<TypeDesc, uint> _classNumInstanceFields = new();
4087private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>();
24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>();
25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>();
26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>();
27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
TypeSystem\Mutable\MutableModule.cs (5)
23Dictionary<ModuleDesc, EntityHandle> _moduleRefs = new Dictionary<ModuleDesc, EntityHandle>();
96Dictionary<MetadataType, string> result = new Dictionary<MetadataType, string>();
207public Dictionary<int, object> Entities = new Dictionary<int, object>();
208public Dictionary<object, int> ExistingEntities = new Dictionary<object, int>();
369private Dictionary<ModuleDesc, string> _moduleToModuleRefString = new Dictionary<ModuleDesc, string>();
ILCompiler.RyuJit (15)
parent\parent\Common\JitInterface\CorInfoImpl.cs (8)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>();
237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>();
238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>();
663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>();
865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>();
2457private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>();
2624private Dictionary<TypeDesc, uint> _classNumInstanceFields = new();
4087private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
ILCompiler.TypeSystem (1)
illink (64)
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>>();
592slots = new Dictionary<IMetadataTokenProvider, object>();
ILLink.RoslynAnalyzer (18)
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)
Infrastructure.Tests (65)
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (21)
330new Dictionary<string, string>
335new Dictionary<string, string>
448pullRequestsByHead = new Dictionary<string, object[]>
500pullRequestsByHeadPages = new Dictionary<string, object[][]>
569pullRequestsByHead = new Dictionary<string, object[]>
810issueStatesByNumber = new Dictionary<string, string>
814commentHtmlUrlByNumber = new Dictionary<string, string>
881Dictionary<string, string[]> expectations = new()
1055issueStatesByNumber = new Dictionary<string, string>
1059commentHtmlUrlByNumber = new Dictionary<string, string>
1147issueStatesByNumber = new Dictionary<string, string>
1183issueStatesByNumber = new Dictionary<string, string>
1225issueStatesByNumber = new Dictionary<string, string>
1569new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." },
1570new Dictionary<string, string> { ["1"] = "Process failed with 0xC0000142" },
1595new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." },
1596new Dictionary<string, string> { ["1"] = "Some unrelated failure" },
1620new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." },
1621new Dictionary<string, string> { ["1"] = "0xC0000142" },
2194: new Dictionary<string, string> { [job.Id.ToString()] = jobLogText };
2198new Dictionary<string, string> { [job.Id.ToString()] = annotationsOrText },
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (15)
87runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() },
104runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() },
124runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() },
143runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun(updatedAt: MinutesAgo(30)) },
165runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() },
185runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() },
206runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun(updatedAt: MinutesAgo(30)) },
227runsByFile = new Dictionary<string, object>
250runsByFile = new Dictionary<string, object>
274runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() },
295runsByFile = new Dictionary<string, object>
319runsByFile = new Dictionary<string, object>
348runsByFile = new Dictionary<string, object> { ["deployment-tests.yml"] = StartupFailureRun() },
367runsByFile = new Dictionary<string, object> { [workflowFile] = StartupFailureRun(updatedAt: MinutesAgo(30)) },
383runsByFile = new Dictionary<string, object> { ["tests-outerloop.yml"] = FailingRun() },
Microsoft.Analyzers.Extra (4)
Microsoft.Analyzers.Local (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.Components (18)
Microsoft.AspNetCore.Components.AI.SourceGenerators (4)
Microsoft.AspNetCore.Components.Analyzers (3)
Microsoft.AspNetCore.Components.Endpoints (27)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.Server (10)
Microsoft.AspNetCore.Components.Testing (7)
Microsoft.AspNetCore.Components.Testing.Tasks (2)
Microsoft.AspNetCore.Components.Web (7)
Microsoft.AspNetCore.Components.WebAssembly (6)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (4)
Microsoft.AspNetCore.Components.WebView (5)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (20)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (9)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Abstractions (5)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (16)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Microsoft.AspNetCore.OpenApi (29)
Services\OpenApiDocumentService.cs (15)
280var operations = new Dictionary<HttpMethod, OpenApiOperation>();
284operation.Metadata ??= new Dictionary<string, object>();
428Content = new Dictionary<string, IOpenApiMediaType>()
434var schemasByContentType = new Dictionary<string, OpenApiResponseContentSchemas>();
536Properties = new Dictionary<string, IOpenApiSchema>
677actualSchema.Metadata ??= new Dictionary<string, object>();
731Content = new Dictionary<string, IOpenApiMediaType>()
734var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
777Properties = new Dictionary<string, IOpenApiSchema>
785schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
817Properties = new Dictionary<string, IOpenApiSchema>
837schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
847var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() };
875schema.Properties ??= new Dictionary<string, IOpenApiSchema>();
927Content = new Dictionary<string, IOpenApiMediaType>(),
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Razor.Runtime (5)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.Build (80)
Microsoft.Build.Framework (24)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.Core (21)
Microsoft.Build.Tasks.Git (2)
Microsoft.Build.Utilities.Core (7)
Microsoft.CodeAnalysis (66)
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>?>();
3903typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
Microsoft.CodeAnalysis.Analyzers (26)
src\roslyn\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 (10)
Microsoft.CodeAnalysis.CodeStyle (13)
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\roslyn\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.Features (4)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (49)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
33new()
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.ExternalAccess (1)
Microsoft.CodeAnalysis.NetAnalyzers (31)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (3)
193return parameter.Locations.CreateDiagnostic(DefaultRule, new Dictionary<string, string?> { { "case", AddAccessorCase } }.ToImmutableDictionary(), parameter.Name, attributeType.Name);
199return property.GetMethod!.Locations.CreateDiagnostic(IncreaseVisibilityRule, new Dictionary<string, string?> { { "case", MakePublicCase } }.ToImmutableDictionary(), property.Name, parameter.Name);
205return property.SetMethod!.Locations.CreateDiagnostic(RemoveSetterRule, new Dictionary<string, string?> { { "case", RemoveSetterCase } }.ToImmutableDictionary(), property.Name, parameter.Name);
Microsoft.CodeAnalysis.Razor.Compiler (11)
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.VisualBasic (63)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.Features (9)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces (36)
src\roslyn\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 (4)
Microsoft.CSharp (16)
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.Diagnostics.DataContractReader (4)
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Microsoft.Diagnostics.DataContractReader.Contracts (13)
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.ApiSymbolExtensions (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (3)
Microsoft.DotNet.Build.Tasks.Packaging (29)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.Cli.CommandLine (1)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Telemetry (1)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
Microsoft.DotNet.HotReload.Watch (5)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.PackageTesting (5)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.TemplateLocator (17)
Microsoft.DotNet.XliffTasks (3)
Microsoft.Extensions.AI.Abstractions.Tests (40)
Contents\AIContentTests.cs (3)
72new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } }),
77new ToolApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
78new ToolApprovalResponseContent("request123", approved: true, new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\FunctionCallContentTests.cs (4)
87var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" })
164var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) { Exception = ex };
187["d"] = new ReadOnlyDictionary<string, string>((new Dictionary<string, string>
414Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\ToolApprovalRequestContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }),
25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolApprovalResponseContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }),
25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (10)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
Microsoft.Extensions.AI.Evaluation.Safety (10)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.OpenAI.Tests (35)
OpenAIChatClientTests.cs (11)
178Assert.Equal(new Dictionary<string, long>
852Assert.Equal(new Dictionary<string, long>
949Assert.Equal(new Dictionary<string, long>
1047Assert.Equal(new Dictionary<string, long>
1159Assert.Equal(new Dictionary<string, long>
1170AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1244Assert.Equal(new Dictionary<string, long>
1351AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
1360Assert.Equal(new Dictionary<string, long>
1501Assert.Equal(new Dictionary<string, long>
1621Assert.Equal(new Dictionary<string, long>
OpenAIConversionTests.cs (21)
245var webSearchTool = new HostedWebSearchToolWithProperties(new Dictionary<string, object?>
316var fileSearchTool = new HostedFileSearchTool(new Dictionary<string, object?>
420var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
455var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?>
503Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer test-token" }
521Headers = new Dictionary<string, string>
638Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer connector-token" }
731new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?>
772Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?>
800new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?>
828Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?>
1220new FunctionCallContent("call123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" })
1489var mcpToolCall = new McpServerToolCallContent("call_123", "get_weather", "weather_server") { Arguments = new Dictionary<string, object?> { ["city"] = "Seattle" } };
1575var complexArgs = new Dictionary<string, object?>
1581["nestedObject"] = new Dictionary<string, object?>
1774var functionCallContent = new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?>
1812var functionCall1 = new FunctionCallContent("call-1", "Function1", new Dictionary<string, object?> { ["param1"] = "value1" });
1813var functionCall2 = new FunctionCallContent("call-2", "Function2", new Dictionary<string, object?> { ["param2"] = "value2" });
1846new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }),
2087new FunctionCallContent("call-123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" })
2122new FunctionCallContent("call-456", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })
Microsoft.Extensions.AI.Stabilization.Tests (3)
Microsoft.Extensions.AI.Tests (130)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
52Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?>
255new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }),
266Contents = [new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" })],
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (63)
41new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
49new ToolApprovalRequestContent("ficc_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 ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
137new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
176new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
185new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
260new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
265new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
272new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
283new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
312new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
317new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
325new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
336new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
367new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
375new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
383new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" },
395new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" },
423new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
428new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
435new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), 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 } })]),
482new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
487new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
494new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
506new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
514new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
546new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
554new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
564new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
579new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
612new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })),
613new ToolApprovalRequestContent("ficc_callId3", new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }))
618new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })),
619new ToolApprovalResponseContent("ficc_callId3", true, new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }))
629new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }),
630new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })
650new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }),
651new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })
667new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }),
668new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })
762new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
767new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
774new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
780new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })]),
785new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
789new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } }))
816new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
821new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
823new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
838new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1040new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1049new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1059new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1117new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
1124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1135new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1163new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
1179new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
1488new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
1567new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
ChatCompletion\FunctionInvokingChatClientTests.cs (35)
96new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
98new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
130new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
132new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
163new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
165new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
195new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }),
196new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }),
206new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }),
254new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
255new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
298new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }),
299new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }),
332new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
334new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]),
961arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } }));
986new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]),
988new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
1043new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
1100new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
1142JsonSerializer.Serialize(new Dictionary<string, object?> { ["arg1"] = "value1" }, AIJsonUtilities.DefaultOptions),
1192new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] },
1193new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] }
1294new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]),
1296new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]),
1304new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]),
1365new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }),
1450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]),
1480new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }),
1481new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }),
1533new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }),
1534new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 })
1552new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }),
1553new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 })
1885new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "secret" })]),
ChatCompletion\ImageGeneratingChatClientTests.cs (8)
317[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]);
360[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]);
405"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
408new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })],
410new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
480"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
483new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })],
485new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
ChatCompletion\OpenTelemetryChatClientTests.cs (5)
408new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }),
424yield return new() { Contents = [new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })] };
665new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } },
690yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] };
838Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
ChatReduction\SummarizingChatReducerTests.cs (2)
188new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" }), new TestInputRequestContent("uir2")]),
193new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call2", "get_weather", new Dictionary<string, object?> { ["location"] = "New York" })]),
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
Microsoft.Extensions.AmbientMetadata.Build.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (3)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics (4)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (64)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
87var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
114var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
134var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
162var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
183var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
208var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
235var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
257var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
287var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
304var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
318var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
339var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
357var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
373var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
377var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (28)
91var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
116var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
134var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
152var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
168var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
185var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
196f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
212var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
239var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
258var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
283var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
300var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
320var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
340var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
354var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
380var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
396var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
423var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
438var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
454var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
473var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
494var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
512var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
530var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
549var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
567var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
581var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
585var 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 (57)
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 } },
635RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
680RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>() // No data classification
707RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
738RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
775RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
828RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
869RequestQueryParametersDataClasses = 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.Logging.Generators (1)
Microsoft.Extensions.Options (2)
StartupValidatorOptions.cs (2)
14public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>();
18public Dictionary<(Type, string), Func<CancellationToken, Task>> _asyncValidators { get; } = new Dictionary<(Type, string), Func<CancellationToken, Task>>();
Microsoft.Extensions.Options.SourceGeneration (4)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (10)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (11)
YarpServiceDiscoveryTests.cs (11)
39var destinationConfigs = new Dictionary<string, DestinationConfig>
57var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
70var destinationConfigs = new Dictionary<string, DestinationConfig>
88var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
100var destinationConfigs = new Dictionary<string, DestinationConfig>
120var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
134var destinationConfigs = new Dictionary<string, DestinationConfig>
200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
218var destinationConfigs = new Dictionary<string, DestinationConfig>
244var destinationConfigs = new Dictionary<string, DestinationConfig>
293var destinationConfigs = new Dictionary<string, DestinationConfig>
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Microsoft.Extensions.Telemetry.Tests (30)
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 (1)
Microsoft.Extensions.VectorData.Abstractions (2)
Microsoft.Extensions.VectorData.ConformanceTests (14)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
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.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 (30)
Model\TiktokenTokenizer.cs (8)
1178new Dictionary<string, int>
1212new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 },
1215new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } },
1219return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName);
1222return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName);
1225return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName);
1228return (new Dictionary<string, int>
1232return (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 (10)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (42)
Microsoft.NET.HostModel (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (8)
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetGroup.cs (1)
67return new();
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (22)
Data\ContentTypeProvider.cs (1)
14new()
Microsoft.NET.Sdk.WorkloadManifestReader (17)
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
Microsoft.NET.StringTools (1)
Microsoft.TemplateEngine.Abstractions (2)
Microsoft.TemplateEngine.Cli (28)
Microsoft.TemplateEngine.Core (8)
Microsoft.TemplateEngine.Edge (37)
Settings\TemplateInfo.cs (7)
170Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>();
173tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value);
177IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>();
194Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
226public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>();
229public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>();
266localizedChoices = new Dictionary<string, ParameterChoice>();
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (37)
RunnableProjectConfig.ITemplate.cs (4)
91Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>();
94tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value);
98IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>();
110Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
RunnableProjectGenerator.cs (4)
507Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>();
510tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value);
514IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>();
526Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
Microsoft.TemplateEngine.Utils (7)
Microsoft.TemplateSearch.Common (24)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (15)
48TagsCollection = templateInfo.TagsCollection ?? new Dictionary<string, string>();
49BaselineInfo = templateInfo.BaselineInfo ?? new Dictionary<string, IBaselineInfo>();
118public IReadOnlyDictionary<string, ICacheTag> Tags { get; private set; } = new Dictionary<string, ICacheTag>();
122public IReadOnlyDictionary<string, ICacheParameter> CacheParameters { get; private set; } = new Dictionary<string, ICacheParameter>();
135public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>();
141public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>();
179Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>();
187DefaultOverrides = item.Value?.ToStringDictionary(propertyName: nameof(IBaselineInfo.DefaultOverrides)) ?? new Dictionary<string, string>()
225Dictionary<string, string> tags = new Dictionary<string, string>();
238Dictionary<string, ICacheTag> legacyTags = new Dictionary<string, ICacheTag>();
246choicesAndDescriptions: new Dictionary<string, string>()
284Dictionary<string, ICacheParameter> legacyParams = new Dictionary<string, ICacheParameter>();
312public IReadOnlyDictionary<string, string> DefaultOverrides { get; set; } = new Dictionary<string, string>();
334Choices = new Dictionary<string, ParameterChoice>();
464public IReadOnlyDictionary<string, ParameterChoice> Choices => new Dictionary<string, ParameterChoice>();
Microsoft.TestPlatform.Build (3)
Microsoft.TestPlatform.CommunicationUtilities (14)
Microsoft.TestPlatform.CoreUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (29)
Microsoft.TestPlatform.PlatformAbstractions (3)
Microsoft.TestPlatform.TestHostRuntimeProvider (6)
Microsoft.TestPlatform.Utilities (2)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualBasic.Forms (2)
Microsoft.VisualStudio.TestPlatform.Common (15)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (3)
Microsoft.VisualStudio.TestPlatform.ObjectModel (23)
Microsoft.Web.XmlTransform (2)
Microsoft.Win32.SystemEvents (1)
Mono.Cecil (13)
Mono.Cecil.Mdb (9)
Mono.Cecil.Pdb (10)
MSBuild (3)
NuGet.Build.Tasks (10)
NuGet.Build.Tasks.Console (1)
NuGet.Build.Tasks.Pack (6)
NuGet.CommandLine.XPlat (3)
NuGet.Commands (18)
NuGet.Common (4)
NuGet.Configuration (8)
NuGet.DependencyResolver.Core (2)
NuGet.Frameworks (9)
NuGet.LibraryModel (1)
NuGet.PackageManagement (10)
NuGet.Packaging (18)
NuGet.ProjectModel (3)
NuGet.Protocol (8)
NuGet.Resolver (1)
PresentationBuildTasks (17)
src\wpf\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)
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\roslyn\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.Diagnostics.VisualBasic.Analyzers (2)
rzc (1)
ScenarioTests.Common.Tests (1)
sdk-tasks (3)
SelectTests (1)
Shared.Tests (5)
Stress.AppHost (5)
System.CodeDom (1)
System.CommandLine (3)
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 (4)
System.Data.Odbc (2)
System.Data.OleDb (3)
System.Diagnostics.DiagnosticSource (4)
System.Diagnostics.EventLog (1)
System.Diagnostics.PerformanceCounter (4)
System.Diagnostics.Process (2)
System.DirectoryServices.AccountManagement (9)
System.Formats.Nrbf (1)
System.Formats.Tar (7)
System.IO.Compression (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.Http.WinHttpHandler (1)
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 (46)
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.InteropServices.JavaScript (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?>());
941return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>());
1001DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>());
1634Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.AccessControl (2)
System.Security.Claims (2)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives (33)
System.ServiceModel.Primitives.Tests (2)
System.ServiceModel.Syndication (4)
System.ServiceProcess.ServiceController (1)
System.Speech (11)
System.Text.Encoding.CodePages (1)
System.Text.Json (16)
System.Text.Json.SourceGeneration (5)
System.Text.RegularExpressions (14)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (6)
40private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new();
47internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new();
95internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new();
103internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new();
111internal readonly Dictionary<SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>> _stripEffectsCache = new();
119internal readonly Dictionary<(SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>), bool> _subsumptionCache = new();
System.Text.RegularExpressions.Generator (8)
System.Threading.Tasks.Dataflow (3)
System.Windows.Controls.Ribbon (8)
System.Windows.Forms (2)
System.Windows.Forms.Design (2)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Input.Manipulations (1)
System.Xaml (38)
src\wpf\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>();
UnitTests.Common (1)
vstest.console (7)
vstest.console.arm64 (7)
WindowsFormsIntegration (4)