1290 references to TaskItem
Crossgen2Tasks (2)
ResolveReadyToRunCompilers.cs (2)
124CrossgenTool = new TaskItem(_crossgenTool.ToolPath); 168Crossgen2Tool = new TaskItem(_crossgen2Tool.ToolPath);
Microsoft.Build.BuildCheck.UnitTests (2)
TaskInvocationAnalysisDataTests.cs (2)
167var item1 = new TaskItem("item1"); 177var item2 = new TaskItem("item2");
Microsoft.Build.Engine.UnitTests (27)
BackEnd\ItemCreationTask.cs (2)
65CreatedOutputItems[0] = new TaskItem("Foo"); 66CreatedOutputItems[1] = new TaskItem("Bar");
BackEnd\MSBuild_Tests.cs (4)
1294new TaskItem(project1), new TaskItem(project2) 1616new TaskItem(project1) 1798new TaskItem(projectFile2)
BackEnd\TaskHostConfiguration_Tests.cs (7)
266parameters2.Add("MyITaskItem", new TaskItem("ABC")); 267parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") }); 536parameters.Add("TaskItemValue", new TaskItem("Foo")); 584parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
BackEnd\TaskHostTaskComplete_Tests.cs (7)
84parameters2.Add("MyITaskItem", new TaskItem("ABC")); 85parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") }); 187parameters.Add("TaskItemValue", new TaskItem("Foo")); 213parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
TaskParameter_Tests.cs (7)
192TaskParameter t = new TaskParameter(new TaskItem("foo")); 216TaskItem baseItem = new TaskItem("foo"); 248TaskParameter t = new TaskParameter(new ITaskItem[] { new TaskItem("foo"), new TaskItem("bar") }); 277TaskParameter t = new TaskParameter(new TaskItem("foo%3bbar")); 302TaskParameter t = new TaskParameter(new TaskItem("foo%253bbar")); 338TaskParameter t = new TaskParameter(new TaskItem("foo;bar"));
Microsoft.Build.Tasks.CodeAnalysis (2)
ManagedCompiler.cs (1)
844OutputAssembly = new TaskItem(Path.GetFileNameWithoutExtension(Sources[0].ItemSpec));
ManagedToolTask.cs (1)
162items[i] = new TaskItem(commandLineArgs[i]);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (16)
GenerateMSBuildEditorConfigTests.cs (1)
367FileName = new TaskItem(fileName)
MapSourceRootTests.cs (15)
37new TaskItem(@"c:\packages\SourcePackage1\"), 38new TaskItem(@"/packages/SourcePackage2/"), 88new TaskItem(@"!@#:;$%^&*()_+|{}\"), 133new TaskItem(@"C:\"), 134new TaskItem(@"C:/"), 135new TaskItem(@"C:"), 136new TaskItem(@"C"), 160new TaskItem(@"c:\MyProjects\MyProject\"), 211new TaskItem(@"c:\packages\SourcePackage1\"), 212new TaskItem(@"C:\packages\SourcePackage1\"), 213new TaskItem(@"c:\packages\SourcePackage2\"), 260new TaskItem(path3), 321new TaskItem(path3), 364new TaskItem(@"c:\MyProjects\MYPROJECT\"), 394new TaskItem(@"c:\MyProjects\MyProject\"),
Microsoft.Build.Tasks.Core (39)
AssemblyDependency\ReferenceTable.cs (5)
2746ITaskItem item = new TaskItem(reference.FullPathWithoutExtension + relatedFileExtension); 2757ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, satelliteFile)); 2770ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, serializationAssemblyFile)); 2781ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, scatterFile)); 2811ITaskItem item = new TaskItem(reference.ImplementationAssembly);
AssemblyDependency\ResolveAssemblyReference.cs (1)
2584_filesWritten.Add(new TaskItem(_stateFile));
Copy.cs (3)
740DestinationFiles[i] = new TaskItem(EscapingUtilities.Escape(destinationFile)); 782var item = new TaskItem(EscapingUtilities.Escape(sourceFile)); 786item = new TaskItem(EscapingUtilities.Escape(destinationFile));
DownloadFile.cs (2)
187DownloadedFile = new TaskItem(destinationFile.FullName); 215DownloadedFile = new TaskItem(destinationFile.FullName);
Exec.cs (1)
398_nonEmptyOutput.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
FileIO\ReadLinesFromFile.cs (1)
61nonEmptyLines.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
GenerateLauncher.cs (1)
101OutputEntryPoint = new TaskItem(Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile));
GenerateManifestBase.cs (1)
607OutputManifest = new TaskItem(GetDefaultFileName());
GenerateResource.cs (3)
1448ITaskItem item = new TaskItem(outputFileName); 2068OutputResources[i] = new TaskItem(Path.ChangeExtension(Sources[i].ItemSpec, ".resources")); 2707ITaskItem newOutputFile = new TaskItem(escapedOutputFile);
GetAssemblyIdentity.cs (1)
77ITaskItem newItem = new TaskItem(an.FullName);
GetInstalledSDKLocations.cs (1)
167var item = new TaskItem(sdk.Value.Item1);
GetSDKReferenceFiles.cs (3)
455var outputItem = new TaskItem(reference.AssemblyLocation); 518var item = new TaskItem(xmlFile); 538var outputItem = new TaskItem(file.RedistFile);
LC.cs (1)
173OutputLicense = new TaskItem(outputPath);
Move.cs (1)
145DestinationFiles[i] = new TaskItem(destinationFile);
ResolveManifestFiles.cs (4)
259ITaskItem outputItem = new TaskItem(item.ItemSpec); 282ITaskItem outputItem = new TaskItem(item.ItemSpec); 323ITaskItem outputItem = new TaskItem(item.ItemSpec); 667var outputEntryPoint = new TaskItem(entryPoint.ItemSpec);
ResolveNonMSBuildProjectOutput.cs (1)
171resolvedPath = new TaskItem(projectOutputPath);
ResolveProjectBase.cs (1)
180var item = new TaskItem(path);
ResolveSDKReference.cs (1)
1170ResolvedItem = new TaskItem(ResolvedPath);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
586items = hasInvalidReference ? null : resolvedAssemblyReferences.Select(i => (ITaskItem)new TaskItem(i)).ToArray(); 738managedCompiler.OutputAssembly = new TaskItem(assemblyPath); 740managedCompiler.Sources = [new TaskItem(sourceCodePath)];
WriteCodeFragment.cs (2)
111OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, OutputFile.ItemSpec)); 114OutputFile ??= new TaskItem(FileUtilities.GetTemporaryFile(OutputDirectory.ItemSpec, null, extension));
XmlPeek.cs (1)
153Result[i++] = new TaskItem(EscapingUtilities.Escape(item));
XmlPoke.cs (1)
58Value = new TaskItem(string.Empty);
Microsoft.Build.Tasks.UnitTests (1057)
AddToWin32Manifest_Tests.cs (1)
49task.ApplicationManifest = new TaskItem(Path.Combine(TestAssetsRootPath, manifestName));
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
3001t.InstalledAssemblyTables = new ITaskItem[] { new TaskItem(redistListPath) }; 3157t.InstalledAssemblyTables = new TaskItem[] { new TaskItem(redistFile) };
AssemblyDependency\SuggestedRedirects.cs (20)
53new TaskItem("A"), 54new TaskItem("B") 97new TaskItem("A"), new TaskItem("B") 147new TaskItem("A"), new TaskItem("B") 187new TaskItem("B"), 188new TaskItem("A"), 189new TaskItem("D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa") 230new TaskItem("B"), 231new TaskItem("A"), 232new TaskItem("D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa") 283new TaskItem("Microsoft.Office.Interop.Excel"), 284new TaskItem("MS.Internal.Test.Automation.Office.Excel") 322new TaskItem("A"), 323new TaskItem("B") 401new TaskItem("A"), 402new TaskItem("B") 444new TaskItem("A"), 445new TaskItem("B")
AssignCulture_Tests.cs (14)
26ITaskItem i = new TaskItem("MyResource.fr.resx"); 45ITaskItem i = new TaskItem("MyResource.fr.resx"); 67ITaskItem i = new TaskItem("MyResource.fr.resx"); 88ITaskItem i = new TaskItem("MyResource.fr.resx"); 111ITaskItem i = new TaskItem("MyResource.resx"); 130ITaskItem i = new TaskItem("MyResource"); 150ITaskItem i = new TaskItem("MyResource..resx"); 171ITaskItem i = new TaskItem("MyResource.fr.resx"); 196ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 218ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 236ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 253ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 273ITaskItem i = new TaskItem("MyResource.fr.resx"); 294ITaskItem i = new TaskItem("MyResource.fr.resx");
AssignLinkMetadata_Tests.cs (1)
159ITaskItem item = new TaskItem(Path.Combine("SubFolder", "a.cs"));
AssignTargetPath_Tests.cs (4)
24{ new TaskItem(NativeMethodsShared.IsWindows ? @"c:\bin2\abc.efg" : "/bin2/abc.efg") }; 39{ new TaskItem(NativeMethodsShared.IsWindows ? @"c:\f1\f2\file.txt" : "/f1/f2/file.txt") }; 54new TaskItem( 75new TaskItem(
CallTarget_Tests.cs (1)
186targetOutputsTaskItems.Add(new TaskItem(item.EvaluatedInclude));
CombinePath_Tests.cs (22)
33t.Paths = new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) }; 62? new ITaskItem[] { new TaskItem(path1), new TaskItem(path2), new TaskItem(path3) } 63: new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) }; 83t.Paths = new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) }; 111? new ITaskItem[] { new TaskItem(path1), new TaskItem(path2), new TaskItem(path3) } 112: new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) }; 131t.Paths = new ITaskItem[] { new TaskItem(@"jkl\mno.txt") }; 139t.Paths = new ITaskItem[] { new TaskItem("jkl/mno.txt") }; 160t.Paths = new ITaskItem[] { new TaskItem(@"jkl\mno.txt"), new TaskItem(@"c:\abc\def\ghi.txt") }; 196t.Paths = new ITaskItem[] { new TaskItem("") }; 214t.Paths = new ITaskItem[] { new TaskItem("ghi.txt"), new TaskItem("|.txt"), new TaskItem("jkl.txt") };
ConvertToAbsolutePath_Tests.cs (4)
35t.Paths = new ITaskItem[] { new TaskItem(@"file.temp") }; 67t.Paths = new ITaskItem[] { new TaskItem(@"file%253A.temp") }; 97t.Paths = new ITaskItem[] { new TaskItem(fileName) }; 120t.Paths = new ITaskItem[] { new TaskItem("RandomFileThatDoesntExist.txt") };
Copy_Tests.cs (143)
150SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 151DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 175SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 176DestinationFolder = new TaskItem(destinationFolder.Path), 218SourceFolders = new ITaskItem[] { new TaskItem(s0Folder.Path), new TaskItem(s1Folder.Path) }, 219DestinationFolder = new TaskItem(destinationFolder.Path), 244DestinationFolder = new TaskItem(destinationFolder.Path), 273SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 274SourceFolders = new ITaskItem[] { new TaskItem(sourceFolder.Path) }, 275DestinationFolder = new TaskItem(destinationFolder.Path), 299DestinationFolder = new TaskItem(destinationFolder.Path), 323DestinationFolder = new TaskItem(destinationFolder.Path), 346SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 370SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 371DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 372DestinationFolder = new TaskItem(destinationFolder.Path), 394SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 395SourceFolders = new ITaskItem[] { new TaskItem(sourceFolder.Path) }, 396DestinationFiles = new ITaskItem[] { new TaskItem("destination0.txt"), new TaskItem("destination1.txt") }, 417SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 418DestinationFiles = new ITaskItem[] { new TaskItem("destination0.txt"), new TaskItem("destination1.txt") }, 442SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 443DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 468SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 469DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 496ITaskItem f = new TaskItem(file); 543ITaskItem sourceItem = new TaskItem(source); 544ITaskItem destinationItem = new TaskItem(destination); 603ITaskItem sourceItem = new TaskItem(source); 604ITaskItem destinationItem = new TaskItem(destination); 655ITaskItem sourceItem = new TaskItem(source); 656ITaskItem destinationItem = new TaskItem(destination); 712ITaskItem sourceItem = new TaskItem(source); 713ITaskItem destinationItem = new TaskItem(destination); 779ITaskItem sourceItem = new TaskItem(source); 780ITaskItem destinationItem = new TaskItem(destination); 846ITaskItem sourceItem = new TaskItem(source); 847ITaskItem destinationItem = new TaskItem(destination); 913ITaskItem sourceItem = new TaskItem(source); 914ITaskItem destinationItem = new TaskItem(destination); 987ITaskItem sourceItem1 = new TaskItem(source1); 988ITaskItem sourceItem2 = new TaskItem(source2); 996DestinationFolder = new TaskItem(destinationFolder), 1054ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1055ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1117SourceFiles = new[] { new TaskItem(sourceFile) }, 1118DestinationFiles = new[] { new TaskItem(destinationFile) }, 1187ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1188ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1227ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1228ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1272ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1273ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1319ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1320ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1365ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1373DestinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }, 1491ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1499DestinationFolder = new TaskItem(destinationFile), 1537ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1538ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1604ITaskItem i1 = new TaskItem(inFile1); 1607t.SourceFiles = new[] { new TaskItem(inFile2), i1 }; 1609ITaskItem o1 = new TaskItem(validOutFile); 1612t.DestinationFiles = new[] { new TaskItem(invalidFile), o1 }; 1682SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1683DestinationFiles = new ITaskItem[] { new TaskItem(file) }, 1701SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1702DestinationFiles = new ITaskItem[] { new TaskItem(file) }, 1753SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1754DestinationFiles = new ITaskItem[] { new TaskItem(filename.ToLowerInvariant()) }, 1807SourceFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(invalidFile) }, 1808DestinationFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(dest2) }, 1861ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1869DestinationFolder = new TaskItem(destFolder), 1934ITaskItem[] sourceFiles = { new TaskItem(sourceFileEscaped) }; 1941DestinationFolder = new TaskItem(destFolder), 1985new TaskItem(Path.Combine(tempPath, "a.cs")), 1986new TaskItem(Path.Combine(tempPath, "b.cs")), 1987new TaskItem(Path.Combine(tempPath, "a.cs")), 1988new TaskItem(Path.Combine(tempPath, "a.cs")), 2006DestinationFolder = new TaskItem(Path.Combine(tempPath, "foo")), 2042new TaskItem(Path.Combine(tempPath, "a.cs")), 2043new TaskItem(Path.Combine(tempPath, "b.cs")), 2044new TaskItem(Path.Combine(tempPath, "a.cs")), 2045new TaskItem(Path.Combine(tempPath, "a.cs")), 2046new TaskItem(Path.Combine(tempPath, "a.cs")), 2059new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs 2060new TaskItem(Path.Combine(tempPath, @"xa.cs")), // b.cs -> xa.cs should copy because it's a different source 2061new TaskItem(Path.Combine(tempPath, @"xb.cs")), // a.cs -> xb.cs should copy because it's a different destination 2062new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should copy because it's a different source from the b.cs copy done previously 2063new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should not copy because it's the same source 2141SourceFiles = new ITaskItem[] { new TaskItem(inFile1), new TaskItem(inFile2) }, 2142DestinationFiles = new ITaskItem[] { new TaskItem(outFile1) }, 2182ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2183ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 2220ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2221ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 2253SourceFiles = new ITaskItem[] { new TaskItem("foo | bar") }, 2254DestinationFolder = new TaskItem("dest"), 2277SourceFiles = new ITaskItem[] { new TaskItem("foo") }, 2278DestinationFolder = new TaskItem("here | there"), 2301SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2302DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2322SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2323DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2347SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2348DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2414SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2415DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2441SourceFiles = new ITaskItem[] { new TaskItem("c:\\source"), new TaskItem("c:\\source2") }, 2442DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination"), new TaskItem("c:\\destination2") }, 2473SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2474DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2502SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2503DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2537SourceFiles = new ITaskItem[] { new TaskItem(source) }, 2538DestinationFiles = new ITaskItem[] { new TaskItem(existing) }, 2562ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2570DestinationFolder = new TaskItem(destFolder), 2650new TaskItem(sourceFile1), 2651new TaskItem(sourceFile2) 2661DestinationFolder = new TaskItem(destFolder), 2738ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2747DestinationFolder = new TaskItem(destFolder), 2817ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2825DestinationFolder = new TaskItem(destFolder), 2881ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2891DestinationFolder = new TaskItem(destFolder), 2918SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2919DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") }, 2948ITaskItem[] sourceFiles = { new TaskItem(sourceFile1.Path) }; 2949ITaskItem[] destinationFiles = { new TaskItem(destFile) }; 2967sourceFiles = new TaskItem[] { new TaskItem(sourceFile2.Path) }; 2988destinationFiles = new TaskItem[] { new TaskItem(
CreateCSharpManifestResourceName_Tests.cs (12)
362ITaskItem i = new TaskItem("SR1.resx"); 389ITaskItem i = new TaskItem(resXFile.Path); 425ITaskItem i = new TaskItem(ResourceFileName); 462ITaskItem i = new TaskItem(@"SR1\SR1.resx"); 492ITaskItem i = new TaskItem(Path.GetFileName(resXFile.Path)); 527ITaskItem i = new TaskItem(resXFile.Path); 557ITaskItem i = new TaskItem(Path.GetFileName(resXFile.Path)); 591ITaskItem i = new TaskItem(resXFile.Path); 797ITaskItem i = new TaskItem("strings.resx"); 822ITaskItem i = new TaskItem("pic.bmp"); 847ITaskItem i = new TaskItem("pic.bmp"); 873ITaskItem i = new TaskItem("strings.resx");
CreateItem_Tests.cs (13)
58t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 59t.Exclude = new ITaskItem[] { new TaskItem("MyFile.txt") }; 76t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 77t.Exclude = new ITaskItem[] { new TaskItem("MyFileOther.txt") }; 95t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 114t.Exclude = new ITaskItem[] { new TaskItem("MyFile.txt") }; 147t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 148t.Exclude = new ITaskItem[] { new TaskItem("myfile.tXt") }; 230t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 248TaskItem item = new TaskItem("MyFile.txt"); 271TaskItem item = new TaskItem("MyFile.txt"); 306Include = new ITaskItem[] { new TaskItem(itemSpec) }, 358Include = new ITaskItem[] { new TaskItem(itemSpec) },
Delete_Tests.cs (2)
29ITaskItem i = new TaskItem("MyFiles.nonexistent"); 58ITaskItem sourceItem = new TaskItem(source);
DownloadFile_Tests.cs (8)
37DestinationFolder = new TaskItem(folder.Path), 66DestinationFolder = new TaskItem(folder.Path), 114DestinationFolder = new TaskItem(folder.Path), 115DestinationFileName = new TaskItem(filename), 144DestinationFolder = new TaskItem(folder.Path), 145DestinationFileName = new TaskItem(filename), 209DestinationFolder = new TaskItem(folder.Path), 322DestinationFolder = new TaskItem(folder.Path),
Exec_Tests.cs (2)
830ITaskItem[] items = { new TaskItem("hi"), new TaskItem("ho") };
FindAppConfigFile_Tests.cs (22)
21f.PrimaryList = new ITaskItem[] { new TaskItem("app.config"), new TaskItem("xxx") }; 34f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") }; 35f.SecondaryList = new ITaskItem[] { new TaskItem("app.config"), new TaskItem("xxx") }; 47f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") }; 48f.SecondaryList = new ITaskItem[] { new TaskItem("foo\\app.config"), new TaskItem("xxx") }; 60f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") }; 61f.SecondaryList = new ITaskItem[] { new TaskItem("iii"), new TaskItem("xxx") }; 72f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") }; 73f.SecondaryList = new ITaskItem[] { new TaskItem("|||"), new TaskItem(@"foo\\app.config"), new TaskItem(@"!@#$@$%|"), new TaskItem("uuu") }; 86ITaskItem item1 = new TaskItem("app.config"); 88ITaskItem item2 = new TaskItem("app.config");
FindInList_Tests.cs (17)
23f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("b.cs") }; 35f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("a.cs") }; 47f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("b.cs") }; 58ITaskItem item1 = new TaskItem("a.cs"); 60ITaskItem item2 = new TaskItem("a.cs"); 78ITaskItem item1 = new TaskItem("a.cs"); 80ITaskItem item2 = new TaskItem("a.cs"); 106f.List = new ITaskItem[] { new TaskItem("foo\a.cs"), new TaskItem("b.cs") }; 118f.List = new ITaskItem[] { new TaskItem(@"c:\foo\a.cs"), new TaskItem("b.cs") }; 131f.List = new ITaskItem[] { new TaskItem(@"!@#$@$%|"), new TaskItem(@"foo\a.cs"), new TaskItem("b.cs") };
FindUnderPath_Tests.cs (10)
27t.Path = new TaskItem(@"C:\MyProject"); 28t.Files = new ITaskItem[] { new TaskItem(@"C:\MyProject\File1.txt"), new TaskItem(@"C:\SomeoneElsesProject\File2.txt") }; 45t.Path = new TaskItem(@"C:\MyProject"); 46t.Files = new ITaskItem[] { new TaskItem(@":::") }; 61t.Path = new TaskItem(@"||::||"); 62t.Files = new ITaskItem[] { new TaskItem(@"foo") }; 77t.Path = new TaskItem(ObjectModelHelpers.TempProjectDir); 78t.Files = new ITaskItem[] { new TaskItem(EscapingUtilities.Escape(testFile.Name)), 79new TaskItem(NativeMethodsShared.IsWindows ? @"C:\SomeoneElsesProject\File2.txt" : "/SomeoneElsesProject/File2.txt") };
GenerateBindingRedirects_Tests.cs (2)
326AppConfigFile = new TaskItem(appConfigFile), 327OutputAppConfigFile = new TaskItem(outputAppConfig)
GetCompatiblePlatform_Tests.cs (12)
27TaskItem projectReference = new TaskItem("foo.bar"); 48TaskItem projectReference = new TaskItem("foo.bar"); 71TaskItem projectReference = new TaskItem("foo.bar"); 95TaskItem projectReference = new TaskItem("foo.bar"); 116TaskItem projectReference = new TaskItem("foo.bar"); 138TaskItem projectReference = new TaskItem("foo.bar"); 160TaskItem projectReference = new TaskItem("foo.bar"); 182TaskItem projectReference = new TaskItem("foo.bar"); 206TaskItem projectReference = new TaskItem("foo.bar"); 231TaskItem projectReference = new TaskItem("foo.bar"); 258TaskItem projectReference = new TaskItem("foo.bar"); 280TaskItem projectReference = new TaskItem("foo.bar");
GetFileHash_Tests.cs (6)
31Files = new[] { new TaskItem(TestBinary.LoremFilePath) }, 44Files = new[] { new TaskItem(TestBinary.LoremFilePath) }, 57Files = new[] { new TaskItem(Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt")) }, 70Files = new[] { new TaskItem(testBinary.FilePath) }, 87new TaskItem(testBinary.FilePath), 88new TaskItem(testBinary.FilePath),
GetSDKReference_Tests.cs (32)
230ITaskItem item = new TaskItem("C:\\SDKDoesNotExist"); 372ITaskItem item = new TaskItem(_sdkDirectory); 397ITaskItem item = new TaskItem(_sdkDirectory); 422ITaskItem item = new TaskItem(_sdkDirectory); 488ITaskItem item1 = new TaskItem(_sdkDirectory); 495ITaskItem item2 = new TaskItem(_sdkDirectory); 546ITaskItem item = new TaskItem(_sdkDirectory); 599ITaskItem item = new TaskItem(_sdkDirectory); 623ITaskItem item2 = new TaskItem(_sdkDirectory2); 665ITaskItem item = new TaskItem(_sdkDirectory); 713ITaskItem item = new TaskItem(_sdkDirectory); 758ITaskItem item = new TaskItem(_sdkDirectory); 781ITaskItem item = new TaskItem(_sdkDirectory); 806ITaskItem item = new TaskItem(_sdkDirectory); 857ITaskItem item = new TaskItem(_sdkDirectory); 908ITaskItem item = new TaskItem(_sdkDirectory); 943ITaskItem item = new TaskItem(_sdkDirectory); 1008ITaskItem item = new TaskItem(_sdkDirectory); 1039ITaskItem item = new TaskItem(_sdkDirectory); 1071ITaskItem item = new TaskItem(_sdkDirectory); 1102ITaskItem item = new TaskItem(_sdkDirectory); 1130ITaskItem item = new TaskItem(_sdkDirectory); 1159ITaskItem item = new TaskItem(_sdkDirectory); 1186ITaskItem item = new TaskItem(_sdkDirectory); 1214ITaskItem item = new TaskItem(_sdkDirectory); 1221ITaskItem item2 = new TaskItem(_sdkDirectory2); 1259ITaskItem item = new TaskItem(_sdkDirectory); 1266ITaskItem item2 = new TaskItem(_sdkDirectory2); 1301ITaskItem item = new TaskItem(_sdkDirectory); 1308ITaskItem item2 = new TaskItem(_sdkDirectory2); 1347ITaskItem item = new TaskItem(_sdkDirectory); 1355ITaskItem item2 = new TaskItem(_sdkDirectory2);
Hash_Tests.cs (19)
24new TaskItem("Item1"), new TaskItem("Item2"), new TaskItem("Item3") 31new TaskItem("Item1"), new TaskItem("Item2"), new TaskItem("Item3") 40var emptyItemHash = ExecuteHashTask(new ITaskItem[] { new TaskItem("") }); 61itemsToHash[i] = new TaskItem($"Item{i}"); 79ITaskItem[] itemsToHash = new ITaskItem[] { new TaskItem(string.Join("", array)) }; 108ItemsToHash = new ITaskItem[] { new TaskItem(input) }, 122new TaskItem("ITEM1"), 123new TaskItem("ITEM2"), 124new TaskItem("ITEM3") 130new TaskItem("Item1"), 131new TaskItem("iTEm2"), 132new TaskItem("iteM3") 138new TaskItem("item1"), 139new TaskItem("item2"), 140new TaskItem("item3")
MakeDir_Tests.cs (8)
36new TaskItem(dir) 83new TaskItem(dir), 84new TaskItem(file), 85new TaskItem(invalid), 86new TaskItem(dir2) 140new TaskItem(dir) 182new TaskItem(dir) 248new TaskItem(file)
Move_Tests.cs (51)
37ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 38ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 82ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 83ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 133ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 134ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 178ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 179ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 219ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 220ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 274ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 275ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 326ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 327ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 380ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 381ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 446ITaskItem i1 = new TaskItem(inFile1); 449t.SourceFiles = new ITaskItem[] { new TaskItem(inFile2), i1 }; 451ITaskItem o1 = new TaskItem(validOutFile); 454t.DestinationFiles = new ITaskItem[] { new TaskItem(invalidFile), o1 }; 511move.SourceFiles = new ITaskItem[] { new TaskItem(file) }; 512move.DestinationFiles = new ITaskItem[] { new TaskItem(file + "2") }; 534move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 548move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 549move.DestinationFiles = new ITaskItem[] { new TaskItem("x") }; 550move.DestinationFolder = new TaskItem(Directory.GetCurrentDirectory()); 564move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 565move.DestinationFiles = new ITaskItem[] { new TaskItem(Directory.GetCurrentDirectory()) }; 579move.DestinationFiles = new ITaskItem[] { new TaskItem("destination") }; 580move.SourceFiles = new ITaskItem[] { new TaskItem(Directory.GetCurrentDirectory()) }; 613t.SourceFiles = new ITaskItem[] { new TaskItem(file) }; 614t.DestinationFiles = new ITaskItem[] { new TaskItem(filename.ToLowerInvariant()) }; 657t.SourceFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(invalidFile) }; 658t.DestinationFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(dest2) }; 693ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 698t.DestinationFolder = new TaskItem(destFolder); 760t.SourceFiles = new ITaskItem[] { new TaskItem(inFile1), new TaskItem(inFile2) }; 761t.DestinationFiles = new ITaskItem[] { new TaskItem(outFile1) }; 795ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 796ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 824ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 825ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 847t.SourceFiles = new ITaskItem[] { new TaskItem("foo | bar") }; 848t.DestinationFolder = new TaskItem("dest"); 865t.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 866t.DestinationFiles = new ITaskItem[] { new TaskItem("foo | bar") }; 883t.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 884t.DestinationFolder = new TaskItem("foo | bar");
MSBuild_Tests.cs (33)
80Projects = new ITaskItem[] { new TaskItem(projectFile1) } 128msbuildTask.Projects = new ITaskItem[] { new TaskItem(projectFile1), new TaskItem(projectFile2) }; 513new TaskItem(projectFile1), 514new TaskItem(projectFile1), 515new TaskItem(projectFile2), 516new TaskItem(projectFile2) 571new TaskItem(projectFile1), 572new TaskItem(projectFile1), 573new TaskItem(projectFile2), 574new TaskItem(projectFile2) 627new TaskItem(projectFile1), 628new TaskItem(projectFile1), 629new TaskItem(projectFile2), 630new TaskItem(projectFile2) 682new TaskItem(projectFile1), 683new TaskItem(projectFile1), 684new TaskItem(projectFile2), 685new TaskItem(projectFile2) 731new TaskItem(projectFile1), 732new TaskItem(projectFile2) 786new TaskItem(projectFile1), 787new TaskItem(projectFile2) 844new TaskItem(projectFile1), 845new TaskItem(projectFile2) 906new TaskItem(projectFile2) 952new TaskItem(project1), new TaskItem(project2) 1156new TaskItem(project1) 1173new TaskItem(project2), new TaskItem(project1) 1218new TaskItem(project1) 1337new TaskItem(projectFile2)
RARPrecomputedCache_Tests.cs (2)
94new TaskItem(precomputedCachePath) 138new TaskItem(precomputedCache.Path)
ReadLinesFromFile_Tests.cs (22)
34File = new TaskItem(file), 35Lines = new ITaskItem[] { new TaskItem("Line1") } 42File = new TaskItem(file) 50a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 81File = new TaskItem(file), 82Lines = new ITaskItem[] { new TaskItem("Line1_%253b_") } 89File = new TaskItem(file) 97a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 126File = new TaskItem(file), 127Lines = new ITaskItem[] { new TaskItem("My special character is \u00C3") } 134File = new TaskItem(file) 158File = new TaskItem(file) 178File = new TaskItem(file), 181new TaskItem("Line1"), 182new TaskItem(" "), 183new TaskItem("Line2"), 184new TaskItem(""), 185new TaskItem("Line3"), 186new TaskItem("\0\0\0\0\0\0\0\0\0") 194File = new TaskItem(file)
RemoveDir_Tests.cs (3)
35ITaskItem i = new TaskItem("MyNonExistentDirectory"); 56list.Add(new TaskItem(env.CreateFolder().Path)); 105list.Add(new TaskItem(""));
RemoveDuplicates_Tests.cs (15)
23t.Inputs = new[] { new TaskItem("MyFile.txt") }; 41t.Inputs = new[] { new TaskItem("MyFile.txt"), new TaskItem("MyFile.txt") }; 63new TaskItem("MyFile2.txt"), 64new TaskItem("MyFile1.txt"), 65new TaskItem("MyFile3.txt") 87new TaskItem("MyFile2.txt"), 88new TaskItem("MyFile1.txt"), 89new TaskItem("MyFile2.txt"), 90new TaskItem("MyFile3.txt"), 91new TaskItem("MyFile1.txt") 111t.Inputs = new[] { new TaskItem("MyFile1.txt"), new TaskItem("MyFile2.txt") }; 130t.Inputs = new[] { new TaskItem("MyFile.txt"), new TaskItem("MyFIle.tXt") };
ResolveNonMSBuildProjectOutput_Tests.cs (2)
30TaskItem reference = new TaskItem(itemSpec); 340taskItems[0] = new TaskItem("projectReference");
ResolveSDKReference_Tests.cs (154)
38TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0"), "Cat", "8.0"); 39TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version= 8.0"), "Cat", "8.0"); 40TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0 "), "Cat", "8.0"); 41TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.255"), "Cat", "8.0.255"); 42TestGoodSDKReferenceIncludes(new TaskItem(" Cat, Version=8.0.255"), "Cat", "8.0.255"); 43TestGoodSDKReferenceIncludes(new TaskItem("Cat , Version=8.0.255"), "Cat", "8.0.255"); 44TestGoodSDKReferenceIncludes(new TaskItem("Cat,Version=8.0.255"), "Cat", "8.0.255"); 45TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.255"), "Cat", "8.0.255"); 55TestBadSDKReferenceIncludes(new TaskItem("")); 56TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8")); 57TestBadSDKReferenceIncludes(new TaskItem("Cat 8.0")); 58TestBadSDKReferenceIncludes(new TaskItem("Cat Version=8.0")); 59TestBadSDKReferenceIncludes(new TaskItem("Dog, Cat, Version=8.0")); 60TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8.0, Moose")); 61TestBadSDKReferenceIncludes(new TaskItem("Cat Version=v8.0")); 62TestBadSDKReferenceIncludes(new TaskItem(" , Version=8.0")); 63TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=v8.0")); 64TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.344.555.666.777.666.555.444")); 65TestBadSDKReferenceIncludes(new TaskItem("Cat,")); 66TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=")); 184ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 185ITaskItem installLocation = new TaskItem(testDirectory); 436ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 440ITaskItem installedSDK = new TaskItem(_sdkPath); 499ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 502ITaskItem installLocation = new TaskItem(testDirectory); 603ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 609ITaskItem installLocation = new TaskItem(testDirectory); 658ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 664ITaskItem installLocation = new TaskItem(testDirectory); 716ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 722ITaskItem installLocation = new TaskItem(testDirectory); 771ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 777ITaskItem installLocation = new TaskItem(testDirectory); 826ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 832ITaskItem installLocation = new TaskItem(testDirectory); 881ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 887ITaskItem installLocation = new TaskItem(testDirectory); 938ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 944ITaskItem installLocation = new TaskItem(testDirectory); 992ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 998ITaskItem installLocation = new TaskItem(testDirectory); 1047ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1053ITaskItem installLocation = new TaskItem(testDirectory); 1082ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1085ITaskItem installedSDK = new TaskItem(_sdkPath); 1119ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1122ITaskItem installedSDK = new TaskItem(_sdkPath); 1157ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1163ITaskItem installedSDK = new TaskItem(_sdkPath); 1198ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1199ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1202ITaskItem installedSDK = new TaskItem(_sdkPath); 1234ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1237TaskItem referenceItem = new TaskItem("RandomWinMD"); 1241ITaskItem installedSDK = new TaskItem(_sdkPath); 1268item = new TaskItem("GoodTestSDK, Version=2.0"); 1271referenceItem = new TaskItem("RandomWinMD"); 1275installedSDK = new TaskItem(_sdkPath); 1306ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1330ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1334ITaskItem installedSDK1 = new TaskItem(_sdkPath); 1337ITaskItem installedSDK2 = new TaskItem(_sdkPath); 1340ITaskItem installedSDK3 = new TaskItem(String.Empty); 1343ITaskItem installedSDK4 = new TaskItem(_sdkPath); 1346ITaskItem installedSDK5 = new TaskItem(_sdkPath); 1380ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1381ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0"); 1384ITaskItem installedSDK = new TaskItem("DoesNotExist"); 1408ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1409ITaskItem item2 = new TaskItem("RandomSDK, Version=2.0"); 1412ITaskItem installedSDK = new TaskItem(_sdkPath); 1472ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1474ITaskItem installedSDK = new TaskItem(_sdkPath); 1513ITaskItem item = new TaskItem("BadTestSDK, Version=2.0"); 1514ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1517ITaskItem installLocation = new TaskItem(testDirectory); 1521ITaskItem installLocation2 = new TaskItem(goodSDKLocation); 1572ITaskItem item = new TaskItem("BadTestSDK, Version=2.0"); 1573ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1576ITaskItem installLocation = new TaskItem(testDirectory); 1579ITaskItem installLocation2 = new TaskItem("C:\\GoodSDKLocation"); 1662ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1663ITaskItem installLocation = new TaskItem(testDirectory); 1749ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1752ITaskItem installLocation = new TaskItem(testDirectory); 1831ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1850ITaskItem installLocation = new TaskItem(testDirectory); 1926ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1929ITaskItem installLocation = new TaskItem(testDirectory); 1997ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2000ITaskItem installLocation = new TaskItem(testDirectory); 2062ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2065ITaskItem installLocation = new TaskItem(testDirectory); 2135ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2138ITaskItem installLocation = new TaskItem(testDirectory); 2204ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2207ITaskItem installLocation = new TaskItem(testDirectory); 2274ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2277ITaskItem installLocation = new TaskItem(testDirectory); 2345ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2348ITaskItem installLocation = new TaskItem(testDirectory); 2417ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2420ITaskItem installLocation = new TaskItem(testDirectory); 2487ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2492ITaskItem installLocation = new TaskItem(testDirectory); 2561ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2566ITaskItem installLocation = new TaskItem(testDirectory); 2626ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2633ITaskItem installLocation = new TaskItem(testDirectory); 2693ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2698ITaskItem installLocation = new TaskItem(testDirectory); 2758ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2765ITaskItem installLocation = new TaskItem(testDirectory); 2843ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 2844ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 2845ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0"); 2851ITaskItem installLocation = new TaskItem(testDirectory); 2854ITaskItem installLocation2 = new TaskItem(testDirectory2); 2857ITaskItem installLocation3 = new TaskItem(testDirectory3); 2941ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 2942ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0"); 2943ITaskItem item3 = new TaskItem("GoodTestSDK3, Version=3.0"); 2949ITaskItem installLocation = new TaskItem(testDirectory); 2952ITaskItem installLocation2 = new TaskItem(testDirectory2); 2955ITaskItem installLocation3 = new TaskItem(testDirectory3); 3049ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 3050ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0"); 3051ITaskItem item3 = new TaskItem("GoodTestSDK3, Version=3.0"); 3052ITaskItem item4 = new TaskItem("GoodTestSDK3, Version=4.0"); 3058ITaskItem installLocation = new TaskItem(testDirectory); 3061ITaskItem installLocation2 = new TaskItem(testDirectory2); 3064ITaskItem installLocation3 = new TaskItem(testDirectory3); 3067ITaskItem installLocation4 = new TaskItem(testDirectory4); 3152ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 3153ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 3154ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0"); 3160ITaskItem installLocation = new TaskItem(testDirectory); 3163ITaskItem installLocation2 = new TaskItem(testDirectory2); 3166ITaskItem installLocation3 = new TaskItem(testDirectory3); 3241ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3247ITaskItem installLocation = new TaskItem(testDirectory); 3315ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3322ITaskItem installLocation = new TaskItem(testDirectory); 3391ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3398ITaskItem installLocation = new TaskItem(testDirectory); 3459ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3466ITaskItem installLocation = new TaskItem(testDirectory); 3535ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3540ITaskItem installLocation = new TaskItem(testDirectory); 3598ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3602ITaskItem installLocation = new TaskItem(testDirectory); 3672ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3676ITaskItem installLocation = new TaskItem(testDirectory);
ResourceHandling\GenerateResource_Tests.cs (200)
57t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 68t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 121new TaskItem(resxFile0), new TaskItem(resxFile1), new TaskItem(resxFile2), new TaskItem(resxFile3) }; 124new TaskItem(expectedOutFile0), new TaskItem(expectedOutFile1), new TaskItem(expectedOutFile2), new TaskItem(expectedOutFile3) }; 151t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 156t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 206t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 207t.References = new ITaskItem[] { new TaskItem(systemDll) }; 247t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 248t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".resx")) }; 254t2a.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 255t2a.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".txt")) }; 261t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) }; 262t2b.OutputResources = new ITaskItem[] { new TaskItem(Utilities.GetTempFileName(".resx")) }; 296t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 299t.OutputResources = new ITaskItem[] { new TaskItem(outputFile) }; 328t.StateFile = new TaskItem(_env.GetTempFile(".cache").Path); 329t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 355t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 374t.StateFile = new TaskItem(_env.GetTempFile(".cache").Path); 375t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 383t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 404t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 408t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 419t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 456TaskItem stateFile = new TaskItem(_env.GetTempFile(".cache").Path); 457ITaskItem[] sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 528t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 597t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 623t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 629t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 640t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 682createResources.StateFile = new TaskItem(cache); 683createResources.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) }; 694t2.StateFile = new TaskItem(createResources.StateFile.ItemSpec); 695t2.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) }; 737t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 743t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 758t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 798t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 799t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) }; 815t2.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) }; 882initialCreator.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 883initialCreator.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 884initialCreator.StateFile = new TaskItem(stateFile); 892incrementalUpToDate.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 893incrementalUpToDate.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 894incrementalUpToDate.StateFile = new TaskItem(stateFile); 904incrementalOutOfDate.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 905incrementalOutOfDate.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 906incrementalOutOfDate.StateFile = new TaskItem(stateFile); 960additionalInputs = new ITaskItem[] { new TaskItem(FileUtilities.GetTemporaryFile()), new TaskItem(FileUtilities.GetTemporaryFile()) }; 971t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 973t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 978t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 988t3.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1032t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1035t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1036t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(textFile, ".resx")) }; 1068t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1069t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".resx")) }; 1075t2a.Sources = new ITaskItem[] { new TaskItem(t.FilesWritten[0].ItemSpec) }; 1076t2a.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(t.FilesWritten[0].ItemSpec, ".resources")) }; 1082t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) }; 1083t2b.OutputResources = new ITaskItem[] { new TaskItem(Utilities.GetTempFileName(".resx")) }; 1116t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1127t2.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1129t2.OutputResources = new ITaskItem[] { new TaskItem(outputFile) }; 1161t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1163t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1224t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1226t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1264t2.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1316t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1317t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1319t.StateFile = new TaskItem(stateFile); 1337t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1338t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1340t.StateFile = new TaskItem(stateFile); 1350t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1351t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1353t.StateFile = new TaskItem(stateFile); 1367t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1368t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1408t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 1469t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1471t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1529t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1531t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1587t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1589t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1713t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1729t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1758t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1764t.Sources = new ITaskItem[] { new TaskItem(resxFile1), new TaskItem(resxFile2) }; 1835t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1841t.Sources = new ITaskItem[] { new TaskItem(resxFile1), new TaskItem(resxFile2) }; 1846t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile1), new TaskItem(resourcesFile2) }; 1913t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1939t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1940t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1941t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resxFile, ".txt")) }; 1970t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1971t.StateFile = new TaskItem("||//invalid filename||"); 2031gr.Sources = new ITaskItem[] { new TaskItem(resource.Path) }; 2046t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2053t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 2054t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) }; 2079t.StateFile = new TaskItem(env.GetTempFile(".cache").Path); 2084t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 2085t.OutputResources = new ITaskItem[] { new TaskItem(env.GetTempFile(".resources").Path) }; 2099t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2104t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2144t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2145t.References = new TaskItem[] { new TaskItem("INVALID") }; 2188ITaskItem i = new TaskItem(resxFile); 2192ITaskItem o = new TaskItem("MyAlternateResource.resources"); 2226ITaskItem i = new TaskItem(resxFile); 2256new TaskItem( Utilities.WriteTestResX(false, null, null)), 2257new TaskItem( Utilities.WriteTestResX(false, null, null)), 2258new TaskItem( Utilities.WriteTestResX(false, null, null)), 2259new TaskItem( Utilities.WriteTestResX(false, null, null)), 2292new TaskItem( Utilities.WriteTestResX(false, null, null)), 2293new TaskItem( Utilities.WriteTestResX(false, null, null)), 2294new TaskItem( Utilities.WriteTestResX(false, null, null)), 2295new TaskItem( Utilities.WriteTestResX(false, null, null)), 2298t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2336new TaskItem( Utilities.WriteTestText(null, null)), 2337new TaskItem( Utilities.WriteTestText(null, null)), 2338new TaskItem( Utilities.WriteTestText("goober", null)), 2339new TaskItem( Utilities.WriteTestText(null, null)), 2347t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2418t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2421t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2425t.OutputResources = new ITaskItem[] { new TaskItem("somefile.resources") }; 2464t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2467t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2547t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2548t.References = new ITaskItem[] { new TaskItem("some non-existent DLL name goes here.dll") }; 2579t.Sources = new ITaskItem[] { new TaskItem("non-existent.resx"), new TaskItem(txtFile) }; 2616t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2617t.StateFile = new TaskItem(FileUtilities.GetTemporaryFile()); 2655t.Sources = new ITaskItem[] { new TaskItem(newTextFile) }; 2687t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2688t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) }; 2719t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2720t.OutputResources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem("someother.resources") }; 2748t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2751t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2788t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(resxFile2) }; 2834t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2837t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2841t.OutputResources = new ITaskItem[] { new TaskItem("somefile.resources") }; 2877t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2914t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2951t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2992t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 3039t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 3040t.OutputResources = new ITaskItem[] { new TaskItem("||") }; 3213t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3218new TaskItem(p2pReference), 3362t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3366TaskItem reference = new TaskItem(@"bin\debug\ClassLibrary20.dll"); 3417t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 3453t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 3454t.References = new ITaskItem[] { new TaskItem("baz"), new TaskItem("jazz") }; 3496t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 3497t.References = new ITaskItem[] { new TaskItem("baz"), new TaskItem("jazz") }; 3542t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(resxFile1) }; 3545new TaskItem(resourcesFile), 3546new TaskItem(resourcesFile1) 3622t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 3627t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 3684task.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 3718t.Sources = new ITaskItem[] { new TaskItem("non-existent") }; 3719t.OutputResources = new ITaskItem[] { new TaskItem("out") }; 3861t.Sources = new ITaskItem[] { new TaskItem(sourceFile) }; 3924var referenceItem = new TaskItem(dll.Path); 4210t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 4214t.Sources = new ITaskItem[] { new TaskItem(textFile) };
Touch_Tests.cs (10)
193new TaskItem(myexisting_txt) 216new TaskItem(mynonexisting_txt) 239new TaskItem(mynonexisting_txt) 264new TaskItem(mynonexisting_txt) 285new TaskItem(myreadonly_txt) 308new TaskItem(myreadonly_txt) 324new TaskItem(nonexisting_txt) 349new TaskItem(mynonexisting_txt) 375new TaskItem(mynonexisting_txt) 399new TaskItem(myexisting_txt)
Unzip_Tests.cs (33)
40DestinationFolder = new TaskItem(source.Path), 43SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 68DestinationFolder = new TaskItem(destination.Path), 71SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 81DestinationFolder = new TaskItem(destination.Path), 84SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 96DestinationFolder = new TaskItem(destination.Path), 99SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 125DestinationFolder = new TaskItem(destination.Path), 128SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 147DestinationFolder = new TaskItem(String.Empty) 193DestinationFolder = new TaskItem(source.Path), 196SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 217DestinationFolder = new TaskItem(folder.Path), 218SourceFiles = new ITaskItem[] { new TaskItem(file.Path), } 237DestinationFolder = new TaskItem(folder.Path), 238SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), } 262DestinationFolder = new TaskItem(destination.Path), 265SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 291DestinationFolder = new TaskItem(destination.Path), 294SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 324DestinationFolder = new TaskItem(destination.Path), 327SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 357DestinationFolder = new TaskItem(destination.Path), 360SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 385DestinationFolder = new TaskItem(destination.Path), 388SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 413DestinationFolder = new TaskItem(destination.Path), 416SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 441DestinationFolder = new TaskItem(destination.Path), 444SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 475DestinationFolder = new TaskItem(destination.Path), 478SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
WriteCodeFragment_Tests.cs (76)
34task.OutputFile = new TaskItem("foo"); 50task.OutputFile = new TaskItem("foo"); 83task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 84task.OutputFile = new TaskItem("CombineFileDirectory.tmp"); 85task.OutputDirectory = new TaskItem(Path.GetTempPath()); 105TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 107TaskItem file = new TaskItem("CombineFileDirectory.tmp"); 110WriteCodeFragment task = CreateTask("c#", folder, file, new TaskItem[] { new TaskItem("aa") }); 128TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 130WriteCodeFragment task = CreateTask("c#", null, file, new TaskItem[] { new TaskItem("aa") }); 152task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 155task.OutputFile = new TaskItem(fileName); 174task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 179task.OutputFile = new TaskItem(file); 180task.OutputDirectory = new TaskItem("c:\\"); 210task.OutputFile = new TaskItem(file); 237task.OutputFile = new TaskItem(file); 255task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 256task.OutputFile = new TaskItem("||//invalid||"); 273task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 274task.OutputDirectory = new TaskItem("||invalid||"); 294TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 297task.OutputFile = new TaskItem(file); 323TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 326task.OutputDirectory = new TaskItem(Path.GetTempPath()); 346TaskItem attribute1 = new TaskItem("AssemblyTrademarkAttribute"); 348TaskItem attribute2 = new TaskItem("System.AssemblyCultureAttribute"); 352task.OutputDirectory = new TaskItem(Path.GetTempPath()); 375TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 378task.OutputDirectory = new TaskItem(Path.GetTempPath()); 397TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 399WriteCodeFragment task = CreateTask("c#", folder, null, new TaskItem[] { new TaskItem("System.AssemblyTrademarkAttribute") }); 423TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 428task.OutputFile = new TaskItem(file); 454TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 459task.OutputDirectory = new TaskItem(Path.GetTempPath()); 477TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 481task.OutputDirectory = new TaskItem(Path.GetTempPath()); 500TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 505task.OutputDirectory = new TaskItem(Path.GetTempPath()); 524TaskItem attribute = new TaskItem("AssemblyMetadataAttribute"); 529task.OutputDirectory = new TaskItem(Path.GetTempPath()); 556TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 561task.OutputDirectory = new TaskItem(Path.GetTempPath()); 592TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 597task.OutputDirectory = new TaskItem(Path.GetTempPath()); 625TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 629task.OutputDirectory = new TaskItem(Path.GetTempPath()); 648TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 652task.OutputDirectory = new TaskItem(Path.GetTempPath()); 671TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 675task.OutputDirectory = new TaskItem(Path.GetTempPath()); 694TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 700task.OutputDirectory = new TaskItem(Path.GetTempPath()); 727TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 733task.OutputDirectory = new TaskItem(Path.GetTempPath()); 753TaskItem attribute = new("CLSCompliantAttribute"); 769TaskItem attribute = new TaskItem("TestAttribute"); 787TaskItem attribute = new TaskItem("TestAttribute"); 803TaskItem attribute = new("TestAttribute"); 818TaskItem attribute = new("TestAttribute"); 833TaskItem attribute = new("TestAttribute"); 848TaskItem attribute = new("TestAttribute"); 863TaskItem attribute = new("TestAttribute"); 878TaskItem attribute = new("TestAttribute"); 894TaskItem attribute = new("TestAttribute"); 910TaskItem attribute = new("TestAttribute"); 926TaskItem attribute = new("TestAttribute"); 942TaskItem attribute = new("CLSCompliantAttribute"); 957TaskItem attribute = new("System.Runtime.CompilerServices.InternalsVisibleToAttribute"); 974TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1002TaskItem attribute = new("System.Reflection.AssemblyFlagsAttribute"); 1034TaskItem attribute = new("System.ComponentModel.TypeConverterAttribute"); 1049TaskItem attribute = new("System.Diagnostics.DebuggableAttribute"); 1064TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1078return CreateTask(language, new TaskItem(Path.GetTempPath()), null, attributes);
WriteLinesToFile_Tests.cs (30)
37File = new TaskItem("c:\\" + Guid.NewGuid().ToString()), 38Lines = new TaskItem[] { new TaskItem("x") } 59File = new TaskItem(file), 60Lines = new ITaskItem[] { new TaskItem("\uBDEA") } 66File = new TaskItem(file) 78File = new TaskItem(file), 79Lines = new ITaskItem[] { new TaskItem("\uBDEA") }, 87File = new TaskItem(file) 110File = new TaskItem(file), 112Lines = new ITaskItem[] { new TaskItem("File contents1") } 118var r = new ReadLinesFromFile { File = new TaskItem(file) }; 131File = new TaskItem(file), 133Lines = new ITaskItem[] { new TaskItem("File contents1") } 143File = new TaskItem(file), 145Lines = new ITaskItem[] { new TaskItem("File contents2") } 169File = new TaskItem(file), 170Lines = new ITaskItem[] { new TaskItem($"{nameof(RedundantParametersAreLogged)} Test") }, 193File = new TaskItem(file), 195Lines = new ITaskItem[] { new TaskItem("File contents1") } 201var r = new ReadLinesFromFile { File = new TaskItem(file) }; 214File = new TaskItem(file), 216Lines = new ITaskItem[] { new TaskItem("File contents1") }, 227File = new TaskItem(file), 229Lines = new ITaskItem[] { new TaskItem("File contents2") }, 272File = new TaskItem(fileExists), 283File = new TaskItem(fileNotExists), 306File = new TaskItem(file), 307Lines = new ITaskItem[] { new TaskItem("WriteLinesToFileDoesCreateDirectory Test") } 337File = new TaskItem(file.Path), 363File = new TaskItem(file.Path),
XmlPeek_Tests.cs (10)
72p.XmlInputPath = new TaskItem(xmlInputPath); 95p.XmlInputPath = new TaskItem(xmlInputPath); 124p.XmlInputPath = new TaskItem(xmlInputPath); 153p.XmlInputPath = new TaskItem(xmlInputPath); 196p.XmlInputPath = new TaskItem(xmlInputPath); 235p.XmlInputPath = new TaskItem(xmlInputPath); 253p.XmlInputPath = new TaskItem(xmlInputPath); 269p.XmlInputPath = new TaskItem(xmlInputPath); 298p.XmlInputPath = new TaskItem(xmlInputPath); 354p.XmlInputPath = new TaskItem(xmlInputPath);
XmlPoke_Tests.cs (9)
186XmlInputPath = new TaskItem(xmlInputPath), 229p.XmlInputPath = new TaskItem(xmlInputPath); 233p.Value = new TaskItem("Nur"); 249p.XmlInputPath = new TaskItem(xmlInputPath); 251p.Value = new TaskItem("Nur"); 276p.XmlInputPath = new TaskItem(xmlInputPath); 279p.Value = new TaskItem("Nur"); 356XmlInputPath = new TaskItem(xmlInputPath), 359Value = value == null ? null : new TaskItem(value)
XslTransformation_Tests.cs (23)
769t.OutputPaths = new TaskItem[] { new TaskItem("k:\\folder\\file.xml") }; 865xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(testingDocsDir, "sila.xml")) }; 866xslPath = new TaskItem(Path.Combine(testingDocsDir, "fdl2proto.xsl")); 950var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 960TaskItem[] outputMultiPaths = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 961new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), new TaskItem(outputPaths[0].ItemSpec + ".4.xml") }; 1003TaskItem[] outputMultiPathsShort = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1004new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1005new TaskItem(outputPaths[0].ItemSpec + ".3.xml") }; 1007TaskItem[] outputMultiPathsLong = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1008new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1009new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), 1010new TaskItem(outputPaths[0].ItemSpec + ".4.xml"), 1011new TaskItem(outputPaths[0].ItemSpec + ".5.xml") }; 1051var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt")); 1058var myXmlPath1 = new TaskItem(Path.Combine(dir, "a.xml")); 1065var myXmlPath2 = new TaskItem(Path.Combine(dir, "b.xml")); 1111xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "doc.xml")) }; 1112xslPath = new TaskItem(Path.Combine(dir, "doc.xslt")); 1113xslCompiledPath = new TaskItem(Path.Combine(dir, "doc.dll")); 1114outputPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "testout.xml")) };
ZipDirectory_Tests.cs (7)
37DestinationFile = new TaskItem(zipFilePath), 38SourceDirectory = new TaskItem(sourceFolder.Path) 78DestinationFile = new TaskItem(file.Path), 80SourceDirectory = new TaskItem(sourceFolder.Path) 117DestinationFile = new TaskItem(file.Path), 118SourceDirectory = new TaskItem(folder.Path) 133SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")))
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
521expectedItems.Add(new Utilities.TaskItem(singleExpectedItemStringTrimmed)); 533ITaskItem expectedItem = new Utilities.TaskItem(itemSpec);
Microsoft.Build.Utilities.Core (5)
TaskItem.cs (2)
67/// This constructor exists only so that the type is COM-creatable. Prefer <see cref="TaskItem(string)"/>. 100this(itemSpec)
TrackedDependencies\CanonicalTrackedInputFiles.cs (1)
454sourceDependencies.Add(dependee, new TaskItem(dependee));
TrackedDependencies\CanonicalTrackedOutputFiles.cs (1)
485outputs.Add(dependee, new TaskItem(dependee));
TrackedDependencies\DependencyTableCache.cs (1)
258TlogFiles[tlogItemCount] = new TaskItem(tlogFilename);
Microsoft.Build.Utilities.UnitTests (23)
CommandLineBuilder_Tests.cs (15)
84c.AppendSwitchIfNotNull("/animal:", new TaskItem("dog and pony")); 154c.AppendFileNamesIfNotNull(new[] { new TaskItem("-Mercury.cs"), null, new TaskItem("Venus.cs"), new TaskItem("-Earth.cs") }, " "); 212c.AppendSwitchIfNotNull("/switch:", new[] { new TaskItem("Mer cury.cs"), null, new TaskItem("Ve nus.cs"), new TaskItem("Ear th.cs") }, ","); 240c.AppendSwitchUnquotedIfNotNull("/switch:", new[] { new TaskItem("Mer cury.cs"), null, new TaskItem("Ve nus.cs"), new TaskItem("Ear th.cs") }, ","); 270c.AppendFileNameIfNotNull(new TaskItem("-Mercury.cs")); 271c.AppendFileNameIfNotNull(new TaskItem("Mercury.cs")); 272c.AppendFileNameIfNotNull(new TaskItem("Mer cury.cs")); 411c.AppendSwitchIfNotNull("/D", new TaskItem(@"foo-bar")); 422c.AppendSwitchUnquotedIfNotNull("/D", new TaskItem(@"foo-bar"));
TaskItem_Tests.cs (8)
89TaskItem taskItem = new TaskItem("x"); 134TaskItem t = new TaskItem("foo"); 154TaskItem t = new TaskItem("foor"); 171TaskItem t = new TaskItem("foo"); 285TaskItem item = new TaskItem("foo"); 297TaskItem item = new TaskItem("foo"); 322TaskItem item = new TaskItem("bar"); 336TaskItem item = new TaskItem("foo");
Microsoft.DotNet.Arcade.Sdk.Tests (4)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (2)
28new TaskItem(NormalizePath(@"C:\temp\A\B\")), 30new TaskItem(NormalizePath(@"C:\temp\A\B\C\D\")),
GetAssemblyFullNameTests.cs (2)
52new TaskItem(objectAssembly.Location), 53new TaskItem(thisAssembly.Location),
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
248PushToLocalStorageOrAzDO(ItemType.AssetManifest, new TaskItem(AssetManifestPath));
Microsoft.DotNet.Build.Tasks.Feed.Tests (12)
BuildModelFactoryTests.cs (7)
353new TaskItem(localPackagePath), 354new TaskItem(zipArtifact) 602new TaskItem(localPackagePath), 603new TaskItem(zipPath) 712new TaskItem(bogusNupkgToSign), 713new TaskItem(Path.GetFileName(zipPath)), 714new TaskItem(Path.GetFileName(localPackagePath)),
PushToBuildStorageTests.cs (2)
508new TaskItem(PACKAGE_A), 509new TaskItem(PACKAGE_B),
SetupTargetFeedConfigV3Tests.cs (3)
60var installersKey = new TaskItem(PublishingConstants.FeedStagingForInstallers); 62var checksumsKey = new TaskItem(PublishingConstants.FeedStagingForChecksums); 64var azureDevops = new TaskItem("https://pkgs.dev.azure.com/dnceng");
Microsoft.DotNet.Build.Tasks.Packaging (16)
ApplyMetaPackages.cs (1)
132var item = new TaskItem(id);
CreateTrimDependencyGroups.cs (1)
131var item = new TaskItem(PlaceHolderDependency);
GetApplicableAssetsFromPackageReports.cs (1)
100var item = new TaskItem(asset.LocalPath);
GetApplicableAssetsFromPackages.cs (1)
210var pdbItem = new TaskItem(Path.ChangeExtension(packageItem.OriginalItem.ItemSpec, ".pdb"));
GetAssemblyReferences.cs (2)
62TaskItem referenceItem = new TaskItem(reader.GetString(reference.Name)); 74TaskItem nativeLib = new TaskItem(moduleName);
GetLayoutFiles.cs (2)
127var item = new TaskItem(source); 141var symbolItem = new TaskItem(symbolSource);
GetPackageDestination.cs (1)
167var item = new TaskItem(path);
GetPackageFromModule.cs (1)
67var packageReferenced = new TaskItem(packageId);
GetSupportedPackagesFromPackageReports.cs (1)
40var supportedPackage = new TaskItem(packageId);
HarvestPackage.cs (2)
233var supportedFramework = new TaskItem(framework.ItemSpec); 416var item = new TaskItem(packageFile);
PackageReport.cs (1)
167var item = new TaskItem(Project);
SplitReferences.cs (1)
93var emptyItem = new TaskItem("_._");
ValidatePackage.cs (1)
658ITaskItem item = new TaskItem(Framework.ToString());
Microsoft.DotNet.Build.Tasks.Packaging.Tests (12)
ApplyBaseLineTests.cs (2)
22_packageIndexes = new[] { new TaskItem("packageIndex.json") }; 141TaskItem item = new TaskItem(name);
CreateTrimDependencyGroupsTests.cs (3)
33packageIndexes = new[] { new TaskItem(packageIndexPath) }; 407TaskItem item = new TaskItem(sourcePath); 414TaskItem item = new TaskItem(sourcePath);
GenerateNuSpecAndPackTests.cs (2)
47var nuspecs = new[] { new TaskItem(nuspec) }; 66var item = new TaskItem(id);
GetLastStablePackageTests.cs (2)
22_packageIndexes = new[] { new TaskItem("packageIndex.json") }; 214TaskItem item = new TaskItem(name);
HarvestPackageTests.cs (2)
55var item = new TaskItem(tfm); 173var item = new TaskItem(packageId);
ValidateHarvestVersionIsLatestForReleaseTests.cs (1)
18private ITaskItem[] _testPackageReportPaths = new [] { new TaskItem("dummyReport.json") };
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestTargetFrameworksTask.cs (1)
40TaskItem item = new(bestTargetFramework);
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (1)
52new TaskItem("SomeValue"),
Microsoft.DotNet.Build.Tasks.Workloads (7)
CreateVisualStudioWorkload.wix.cs (4)
366ITaskItem swixProjectItem = new TaskItem(swixProj); 415ITaskItem swixProjectItem = new TaskItem(swixProj); 444ITaskItem swixProjectItem = new TaskItem(swixProject.Create()); 471ITaskItem swixProjectItem = new TaskItem(swixComponentProject.Create());
CreateVisualStudioWorkloadSet.wix.cs (1)
87ITaskItem swixProjectItem = new TaskItem(swixProj);
Msi\MsiBase.wix.cs (1)
230TaskItem msiItem = new TaskItem(light.OutputFile);
Swix\PackageGroupSwixProject.wix.cs (1)
81ITaskItem swixProjectItem = new TaskItem(swixPackageGroupProject.Create());
Microsoft.DotNet.Build.Tasks.Workloads.Tests (24)
CreateVisualStudioWorkloadSetTests.cs (1)
31new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg"))
CreateVisualStudioWorkloadTests.cs (14)
35new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 41new TaskItem("microsoft-net-sdk-emscripten") 49new TaskItem("Microsoft.NET.Workload.Emscripten").WithMetadata("Replacement", "Emscripten"), 50new TaskItem("microsoft.netcore.app.runtime").WithMetadata("Replacement", "Microsoft"), 51new TaskItem("Microsoft.NETCore.App.Runtime").WithMetadata("Replacement", "Microsoft"), 52new TaskItem("microsoft.net.runtime").WithMetadata("Replacement", "Microsoft"), 53new TaskItem("Microsoft.NET.Runtime").WithMetadata("Replacement", "Microsoft") 171new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 178new TaskItem("microsoft-net-sdk-emscripten") 186new TaskItem("Microsoft.NET.Workload.Emscripten").WithMetadata("Replacement", "Emscripten"), 187new TaskItem("microsoft.netcore.app.runtime").WithMetadata("Replacement", "Microsoft"), 188new TaskItem("Microsoft.NETCore.App.Runtime").WithMetadata("Replacement", "Microsoft"), 189new TaskItem("microsoft.net.runtime").WithMetadata("Replacement", "Microsoft"), 190new TaskItem("Microsoft.NET.Runtime").WithMetadata("Replacement", "Microsoft")
MsiTests.cs (2)
23TaskItem packageItem = new(path); 84TaskItem packageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg"));
PackageTests.cs (2)
22TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.300.6.0.22.nupkg")); 48ITaskItem workloadSetPackageItem = new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg"));
SwixComponentTests.cs (2)
46new TaskItem("microsoft-net-sdk-blazorwebassembly-aot").WithMetadata(Metadata.Version, "4.5.6") 76new TaskItem("microsoft-net-sdk-blazorwebassembly-aot").WithMetadata(Metadata.Version, "4.5.6")
SwixPackageGroupTests.cs (2)
18new TaskItem("Microsoft.NET.Workload.").WithMetadata("Replacement", ""), 26TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, manifestPackageFilename));
SwixPackageTests.cs (1)
23TaskItem msiItem = new TaskItem("Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100.6.0.0-preview.7.21377.12-x64.msi");
Microsoft.DotNet.Helix.Sdk (3)
FindDotNetCliPackage.cs (2)
84feeds.Add(new MSBuild.TaskItem("https://dotnetcli.blob.core.windows.net/dotnet")); 85feeds.Add(new MSBuild.TaskItem("https://dotnetbuilds.blob.core.windows.net/public"));
GetHelixWorkItems.cs (1)
68ITaskItem2 workItem = new TaskItem(workItemName);
Microsoft.DotNet.PackageTesting (1)
GetCompatiblePackageTargetFrameworks.cs (1)
113TaskItem supportedPackage = new(packageId);
Microsoft.DotNet.SharedFramework.Sdk (3)
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
38var item = new TaskItem(entry.Name);
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
85var item = new TaskItem(entry.Name);
src\GenerateSharedFrameworkDepsFile.cs (1)
120GeneratedDepsFile = new TaskItem(depsFilePath);
Microsoft.DotNet.SignTool.Tests (22)
SignToolTests.cs (22)
484new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg")) 556new TaskItem(GetResourcePath(GetResourcePath("ContainerOne.1.0.0.nupkg"))) 641new TaskItem(GetResourcePath("EmptyPKT.dll")) 767new TaskItem(GetResourcePath("EmptyPKT.dll")) 1014new TaskItem(GetResourcePath("test.zip")) 1066new TaskItem(GetResourcePath("test.tgz")) 1118new TaskItem(GetResourcePath("test.symbols.nupkg")) 1170new TaskItem(GetResourcePath("test.symbols.nupkg")) 1223new TaskItem(GetResourcePath("test.deb")) 1253new TaskItem(GetResourcePath("SignedScript.ps1")), 1254new TaskItem(GetResourcePath("UnsignedScript.ps1")) 1321new TaskItem(GetResourcePath("MsiBootstrapper.exe")), 1322new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip")) 1441new TaskItem(GetResourcePath("test.mpack")) 1609new TaskItem(GetResourcePath("PackageWithRelationships.vsix")), 1610new TaskItem(GetResourcePath("test.vsix")) 1737new TaskItem(GetResourcePath("PackageWithRelationships.vsix")) 2026new TaskItem(GetResourcePath("SignedLibrary.dll")), 2031new TaskItem("DualCertificateName"), 2089new TaskItem( GetResourcePath("NestedZip.zip")) 2247new TaskItem(inputFilePath) 2283new TaskItem(inputFilePath)
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
90generatedFiles.Add(new TaskItem(file.FullName));
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
118TaskItem item = new(cultureSpecificTemplateFile);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
MetadataSerializerTest.cs (1)
75var item = new TaskItem("My Identity");
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (5)
1343csFileList.Add(new TaskItem(ContentCodeFile)); 1398csFileList.Add(new TaskItem(InternalTypeHelperFile)); 1438allGeneratedFiles.Add(new TaskItem(CompilerState.CacheFilePath)); 1442allGeneratedFiles.Add(new TaskItem(CompilerLocalReference.CacheFilePath)); 1702tiLoc = new TaskItem(locFile);