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