20 writes to Lines
Microsoft.Build.Tasks.UnitTests (20)
ReadLinesFromFile_Tests.cs (6)
35Lines = new ITaskItem[] { new TaskItem("Line1") } 50a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 82Lines = new ITaskItem[] { new TaskItem("Line1_%253b_") } 97a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 127Lines = new ITaskItem[] { new TaskItem("My special character is \u00C3") } 179Lines = new ITaskItem[]
WriteLinesToFile_Tests.cs (14)
38Lines = new TaskItem[] { new TaskItem("x") } 60Lines = new ITaskItem[] { new TaskItem("\uBDEA") } 79Lines = new ITaskItem[] { new TaskItem("\uBDEA") }, 112Lines = new ITaskItem[] { new TaskItem("File contents1") } 133Lines = new ITaskItem[] { new TaskItem("File contents1") } 145Lines = new ITaskItem[] { new TaskItem("File contents2") } 170Lines = new ITaskItem[] { new TaskItem($"{nameof(RedundantParametersAreLogged)} Test") }, 195Lines = new ITaskItem[] { new TaskItem("File contents1") } 216Lines = new ITaskItem[] { new TaskItem("File contents1") }, 229Lines = new ITaskItem[] { new TaskItem("File contents2") }, 286Lines = Array.Empty<ITaskItem>(), // Test empty. 307Lines = new ITaskItem[] { new TaskItem("WriteLinesToFileDoesCreateDirectory Test") } 338Lines = lines 364Lines = lines
2 references to Lines
Microsoft.Build.Tasks.Core (2)
FileIO\WriteLinesToFile.cs (2)
75if (Lines != null) 77foreach (ITaskItem line in Lines)