2 writes to Filtered
Microsoft.Build.Tasks.Core (2)
ListOperators\RemoveDuplicates.cs (2)
43Filtered = Array.Empty<ITaskItem>(); 59Filtered = filteredList.ToArray();
19 references to Filtered
Microsoft.Build.Tasks.Core (1)
ListOperators\RemoveDuplicates.cs (1)
60HadAnyDuplicates = Inputs.Length != Filtered.Length;
Microsoft.Build.Tasks.UnitTests (18)
RemoveDuplicates_Tests.cs (18)
27Assert.Single(t.Filtered); 28Assert.Equal("MyFile.txt", t.Filtered[0].ItemSpec); 45Assert.Single(t.Filtered); 46Assert.Equal("MyFile.txt", t.Filtered[0].ItemSpec); 70Assert.Equal(3, t.Filtered.Length); 71Assert.Equal("MyFile2.txt", t.Filtered[0].ItemSpec); 72Assert.Equal("MyFile1.txt", t.Filtered[1].ItemSpec); 73Assert.Equal("MyFile3.txt", t.Filtered[2].ItemSpec); 96Assert.Equal(3, t.Filtered.Length); 97Assert.Equal("MyFile2.txt", t.Filtered[0].ItemSpec); 98Assert.Equal("MyFile1.txt", t.Filtered[1].ItemSpec); 99Assert.Equal("MyFile3.txt", t.Filtered[2].ItemSpec); 115Assert.Equal(2, t.Filtered.Length); 116Assert.Equal("MyFile1.txt", t.Filtered[0].ItemSpec); 117Assert.Equal("MyFile2.txt", t.Filtered[1].ItemSpec); 134Assert.Single(t.Filtered); 135Assert.Equal("MyFile.txt", t.Filtered[0].ItemSpec); 150Assert.Empty(t.Filtered);