110 references to FilesWritten
Microsoft.Build.Tasks.UnitTests (110)
ResourceHandling\GenerateResource_Tests.cs (110)
76resourcesFile = t.FilesWritten[0].ItemSpec; 93foreach (ITaskItem item in t.FilesWritten) 138foreach (ITaskItem item in t.FilesWritten) 164resourcesFile = t.FilesWritten[0].ItemSpec; 176foreach (ITaskItem item in t.FilesWritten) 213Assert.Equal(t.FilesWritten[0].ItemSpec, resourcesFile); 250Assert.Equal(".resx", Path.GetExtension(t.FilesWritten[0].ItemSpec)); 257Assert.Equal(".txt", Path.GetExtension(t2a.FilesWritten[0].ItemSpec)); 261t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) }; 264Assert.Equal(".resx", Path.GetExtension(t2b.FilesWritten[0].ItemSpec)); 276foreach (ITaskItem item in t2b.FilesWritten) 302resourcesFile = t.FilesWritten[0].ItemSpec; 310foreach (ITaskItem item in t.FilesWritten) 336Path.GetExtension(t.FilesWritten[0].ItemSpec).ShouldBe(".resources"); 413Path.GetExtension(t.FilesWritten[0].ItemSpec).ShouldBe(".resources"); 441foreach (ITaskItem item in t.FilesWritten) 571foreach (ITaskItem item in t.FilesWritten) 608foreach (ITaskItem item in t.FilesWritten) 634Path.GetExtension(t.FilesWritten[0].ItemSpec).ShouldBe(".resources"); 659foreach (ITaskItem item in t.FilesWritten) 720t2.FilesWritten[0].ItemSpec.ShouldBe(createResources.FilesWritten[0].ItemSpec); 721t2.FilesWritten[1].ItemSpec.ShouldBe(createResources.FilesWritten[1].ItemSpec); 749resourcesFile = t.FilesWritten[0].ItemSpec; 771foreach (ITaskItem item in t.FilesWritten) 806Assert.Equal(t.FilesWritten[0].ItemSpec, resourcesFile1); 808Assert.Equal(t.FilesWritten[1].ItemSpec, resourcesFile2); 825Assert.Equal(t2.FilesWritten[0].ItemSpec, resourcesFile1); 827Assert.Equal(t2.FilesWritten[1].ItemSpec, resourcesFile2); 1048foreach (ITaskItem item in t.FilesWritten) 1071Assert.Equal(".resx", Path.GetExtension(t.FilesWritten[0].ItemSpec)); 1075t2a.Sources = new ITaskItem[] { new TaskItem(t.FilesWritten[0].ItemSpec) }; 1076t2a.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(t.FilesWritten[0].ItemSpec, ".resources")) }; 1078Assert.Equal(".resources", Path.GetExtension(t2a.FilesWritten[0].ItemSpec)); 1082t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) }; 1086Assert.Equal(".resx", Path.GetExtension(t2b.FilesWritten[0].ItemSpec)); 1096foreach (ITaskItem item in t2b.FilesWritten) 1132resourcesFile = t2.FilesWritten[0].ItemSpec; 1139foreach (ITaskItem item in t.FilesWritten) 1145foreach (ITaskItem item in t2.FilesWritten) 1172resourcesFile = t.FilesWritten[0].ItemSpec; 1177Assert.Equal(t.FilesWritten[2].ItemSpec, stronglyTypedFileName); 1202foreach (ITaskItem item in t.FilesWritten) 1235resourcesFile = t.FilesWritten[0].ItemSpec; 1241Assert.Equal(t.FilesWritten[2].ItemSpec, stronglyTypedFileName); 1270Assert.Equal(t2.FilesWritten[0].ItemSpec, resourcesFile); 1273Assert.Equal(t2.FilesWritten[2].ItemSpec, Path.ChangeExtension(t2.Sources[0].ItemSpec, ".cs")); 1280foreach (ITaskItem item in t.FilesWritten) 1287foreach (ITaskItem item in t2.FilesWritten) 1328Assert.Equal(t.FilesWritten[2].ItemSpec, strFile); 1358Assert.Equal(t.FilesWritten[2].ItemSpec, strFile); 1419Assert.Equal(".resources", Path.GetExtension(t.FilesWritten[0].ItemSpec)); 1423Assert.Equal(t.FilesWritten[1].ItemSpec, strFile); 1477Assert.Equal(t.FilesWritten[2].ItemSpec, stronglyTypedFileName); 1481resourcesFile = t.FilesWritten[0].ItemSpec; 1509foreach (ITaskItem item in t.FilesWritten) 1537resourcesFile = t.FilesWritten[0].ItemSpec; 1562foreach (ITaskItem item in t.FilesWritten) 1595resourcesFile = t.FilesWritten[0].ItemSpec; 1628foreach (ITaskItem item in t.FilesWritten) 1719foreach (ITaskItem item in t.FilesWritten) 1738foreach (ITaskItem item in t.FilesWritten) 1791Assert.Equal(t.FilesWritten[0].ItemSpec, resourcesFile2); 1870Assert.Equal(t.FilesWritten[0].ItemSpec, resourcesFile2); 1923foreach (ITaskItem item in t.FilesWritten) 1951foreach (ITaskItem item in t.FilesWritten) 1978Assert.Equal(t.FilesWritten[0].ItemSpec, t.OutputResources[0].ItemSpec); 2065foreach (ITaskItem item in t.FilesWritten) 2122foreach (ITaskItem item in t.FilesWritten) 2152Assert.True(t.FilesWritten?.Length == 0); 2211foreach (ITaskItem item in t.FilesWritten) 2241foreach (ITaskItem item in t.FilesWritten) 2277foreach (ITaskItem item in t.FilesWritten) 2307Assert.Equal(t.FilesWritten[i].ItemSpec, t.OutputResources[i].ItemSpec); 2308Assert.True(File.Exists(t.FilesWritten[i].ItemSpec)); 2319foreach (ITaskItem item in t.FilesWritten) 2368Assert.Equal(t.FilesWritten[0].ItemSpec, Path.ChangeExtension(t.Sources[0].ItemSpec, ".resources")); 2369Assert.Equal(t.FilesWritten[1].ItemSpec, Path.ChangeExtension(t.Sources[1].ItemSpec, ".resources")); 2381Assert.Equal(t.FilesWritten[2].ItemSpec, Path.ChangeExtension(t.Sources[3].ItemSpec, ".resources")); 2397foreach (ITaskItem item in t.FilesWritten) 2443foreach (ITaskItem item in t.FilesWritten) 2489foreach (ITaskItem item in t.FilesWritten) 2523if (t.FilesWritten != null) 2525foreach (ITaskItem item in t.FilesWritten) 2631if (t.FilesWritten != null) 2633foreach (ITaskItem item in t.FilesWritten) 2665if (t.FilesWritten != null) 2667foreach (ITaskItem item in t.FilesWritten) 2697if (t.FilesWritten != null) 2699foreach (ITaskItem item in t.FilesWritten) 2729if (t.FilesWritten != null) 2731foreach (ITaskItem item in t.FilesWritten) 2761if (t.FilesWritten != null) 2763foreach (ITaskItem item in t.FilesWritten) 2796Assert.Empty(t.FilesWritten); 2852Assert.Single(t.FilesWritten); 2889Assert.Empty(t.FilesWritten); 2926Assert.Empty(t.FilesWritten); 2963Assert.Empty(t.FilesWritten); 3008Assert.Empty(t.FilesWritten); 3633resourcesFile = t.FilesWritten[0].ItemSpec; 3654foreach (ITaskItem item in t.FilesWritten) 3689task.OutputResources[0].ItemSpec.ShouldBe(task.FilesWritten[0].ItemSpec); 3826Assert.NotNull(t.FilesWritten); // "The state file should have been written, but there aren't any." 3833for (int i = t.FilesWritten.Length - 1; i >= 0; i--) 3835if (t.StateFile.ItemSpec.Equals(t.FilesWritten[i].ItemSpec)) 4250resourcesFile = t.FilesWritten[0].ItemSpec; 4257Assert.Equal(t.FilesWritten[2].ItemSpec, t.StronglyTypedFileName); 4299foreach (ITaskItem item in t.FilesWritten)