12 writes to Include
Microsoft.Build.Tasks.Core (3)
CreateItem.cs (3)
59
Include
= Array.Empty<ITaskItem>();
64
(
Include
, bool expandedInclude) = TryExpandWildcards(Include, XMakeAttributes.include);
92
Include
= outputItems.ToArray();
Microsoft.Build.Tasks.UnitTests (9)
CreateItem_Tests.cs (9)
58
t.
Include
= new ITaskItem[] { new TaskItem("MyFile.txt") };
76
t.
Include
= new ITaskItem[] { new TaskItem("MyFile.txt") };
95
t.
Include
= new ITaskItem[] { new TaskItem("MyFile.txt") };
147
t.
Include
= new ITaskItem[] { new TaskItem("MyFile.txt") };
230
t.
Include
= new ITaskItem[] { new TaskItem("MyFile.txt") };
251
t.
Include
= new ITaskItem[] { item };
274
t.
Include
= new ITaskItem[] { item };
306
Include
= new ITaskItem[] { new TaskItem(itemSpec) },
358
Include
= new ITaskItem[] { new TaskItem(itemSpec) },
15 references to Include
Microsoft.Build.Tasks.Core (3)
CreateItem.cs (3)
57
if (
Include
== null)
64
(Include, bool expandedInclude) = TryExpandWildcards(
Include
, XMakeAttributes.include);
104
foreach (ITaskItem i in
Include
)
Microsoft.Build.Tasks.UnitTests (12)
CreateItem_Tests.cs (12)
64
Assert.Empty(t.
Include
);
82
Assert.Single(t.
Include
);
83
Assert.Equal("MyFile.txt", t.
Include
[0].ItemSpec);
100
Assert.Single(t.
Include
);
101
Assert.Equal(t.
Include
[0].ItemSpec, t.
Include
[0].ItemSpec);
119
Assert.Empty(t.
Include
);
134
Assert.Empty(t.
Include
);
153
Assert.Empty(t.
Include
);
236
Assert.Equal("SomeValue", t.
Include
[0].GetMetadata("MyMetaData"));
259
Assert.Equal("SomePreserveMeValue", t.
Include
[0].GetMetadata("MyMetaData"));
284
Assert.Equal("SomeOverwriteValue", t.
Include
[0].GetMetadata("MyMetaData"));