1294 references to TaskItem
Crossgen2Tasks (2)
Microsoft.Build.BuildCheck.UnitTests (2)
Microsoft.Build.Engine.UnitTests (27)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (16)
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 (44)
Microsoft.Build.Tasks.UnitTests (1057)
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")
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") };
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(
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");
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")
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)
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)
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) };
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),
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")) };
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (1)
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"));
Microsoft.DotNet.Arcade.Sdk.Tests (4)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (12)
Microsoft.DotNet.Build.Tasks.Packaging (16)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (12)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (7)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (24)
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")
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (3)
Microsoft.DotNet.SignTool.Tests (23)
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Maui.Resizetizer (2)
PresentationBuildTasks (5)