147 references to TaskItem
Microsoft.Build.Engine.UnitTests (6)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (23)
GenerateMSBuildEditorConfigTests.cs (7)
233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } });
311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
MapSourceRootTests.cs (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string>
43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
89new TaskItem(@"****/", new Dictionary<string, string>
93new TaskItem(@"****\|||:;\", new Dictionary<string, string>
161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string>
166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string>
250new TaskItem(path1, new Dictionary<string, string>
255new TaskItem(path2, new Dictionary<string, string>
293new TaskItem(path1, new Dictionary<string, string>
302new TaskItem(path1, new Dictionary<string, string>
311new TaskItem(path2, new Dictionary<string, string>
316new TaskItem(path2, new Dictionary<string, string>
365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
427new TaskItem(path1, new Dictionary<string, string>
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Tasks.UnitTests (9)
ResolveSDKReference_Tests.cs (2)
4199SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2");
4201new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }),
22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }),
23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }),
24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }),
25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.Build.Tasks.Feed.Tests (29)
BuildModelFactoryTests.cs (20)
117new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
124new TaskItem(bopSnupkg, new Dictionary<string, string>
133new TaskItem(zipArtifact, new Dictionary<string, string>
139new TaskItem(localPackagePath, new Dictionary<string, string>()
147new TaskItem(pdbArtifact, new Dictionary<string, string>
238new TaskItem(localPackagePath, new Dictionary<string, string>()
291new TaskItem(zipArtifact, new Dictionary<string, string>
327new TaskItem(pdbArtifact, new Dictionary<string, string>
360new TaskItem(localPackagePath, new Dictionary<string, string>
397new TaskItem(localPackagePath, new Dictionary<string, string>
451new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
458new TaskItem(bopSnupkg, new Dictionary<string, string>
467new TaskItem(zipArtifact, new Dictionary<string, string>
473new TaskItem(localPackagePath, new Dictionary<string, string>()
481new TaskItem(pdbArtifact, new Dictionary<string, string>
598new TaskItem(bopSymbolsNupkg, new Dictionary<string, string>
609new TaskItem(zipArtifact, new Dictionary<string, string>
615new TaskItem(localPackagePath, new Dictionary<string, string>()
624new TaskItem(pdbArtifact, new Dictionary<string, string>
700new TaskItem("missingKindArtifact.nupkg", new Dictionary<string, string>
PushToBuildStorageTests.cs (9)
34new TaskItem(PACKAGE_A, new Dictionary<string, string>
41new TaskItem(PACKAGE_B, new Dictionary<string, string>
48new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string>
60new TaskItem(PACKAGE_A, new Dictionary<string, string>
67new TaskItem(PACKAGE_B, new Dictionary<string, string>
74new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string>
87new TaskItem(PACKAGE_A, new Dictionary<string, string>
94new TaskItem(PACKAGE_B, new Dictionary<string, string>
101new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }),
22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }),
23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character
24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character
25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (36)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.Extensions.ApiDescription.Client.Tests (16)
GetOpenApiReferenceMetadataTest.cs (13)
25Inputs = new[] { new TaskItem(identity, inputMetadata) },
83Inputs = new[] { new TaskItem(identity, inputMetadata) },
141Inputs = new[] { new TaskItem(identity, inputMetadata) },
199Inputs = new[] { new TaskItem(identity, inputMetadata) },
266new TaskItem(identity1, inputMetadata1),
267new TaskItem(identity2, inputMetadata2),
312new TaskItem(identity, inputMetadata1),
313new TaskItem(identity, inputMetadata2),
349Inputs = new[] { new TaskItem(identity, inputMetadata) },
412Inputs = new[] { new TaskItem(identity, inputMetadata) },
476new TaskItem(identity12, inputMetadata1),
477new TaskItem(identity12, inputMetadata2),
478new TaskItem(identity3, inputMetadata3),
Microsoft.Maui.Resizetizer (1)