1 write to Result
Microsoft.Build.Tasks.Core (1)
XmlPeek.cs (1)
149Result = new ITaskItem[peekValues.Count];
19 references to Result
Microsoft.Build.Tasks.Core (2)
XmlPeek.cs (2)
153Result[i++] = new TaskItem(EscapingUtilities.Escape(item)); 159if (Result.Length == 0)
Microsoft.Build.Tasks.UnitTests (17)
XmlPeek_Tests.cs (17)
76Assert.Equal(3, p.Result.Length); // "result Length should be 3" 78for (int i = 0; i < p.Result.Length; i++) 80Assert.Equal(p.Result[i].ItemSpec, results[i]); 99Assert.Equal(3, p.Result.Length); // "result Length should be 3" 107for (int i = 0; i < p.Result.Length; i++) 109Assert.Equal(p.Result[i].ItemSpec, results[i]); 128Assert.Equal(3, p.Result.Length); // "result Length should be 3" 136for (int i = 0; i < p.Result.Length; i++) 138Assert.Equal(p.Result[i].ItemSpec, results[i]); 156Assert.Equal(3, p.Result.Length); // "result Length should be 3" 158for (int i = 0; i < p.Result.Length; i++) 160Assert.Equal(p.Result[i].ItemSpec, results[i]); 176Assert.Equal(3, p.Result.Length); // "result Length should be 3" 178for (int i = 0; i < p.Result.Length; i++) 180Assert.Equal(p.Result[i].ItemSpec, results[i]); 357Assert.Equal(["abcdefg", "a$(d)fg", "a$(d.f)"], p.Result.Select(x => x.ItemSpec)); 358Assert.Equal(["abcdefg", "a%24%28d%29fg", "a%24%28d.f%29"], p.Result.Cast<TaskItem>().Select(x => x.ToString()));