1 write to Lines
Microsoft.Build.Tasks.Core (1)
FileIO\ReadLinesFromFile.cs (1)
65
Lines
= nonEmptyLines.ToArray();
23 references to Lines
Microsoft.Build.Tasks.UnitTests (23)
ReadLinesFromFile_Tests.cs (19)
46
Assert.Single(r.
Lines
);
47
Assert.Equal("Line1", r.
Lines
[0].ItemSpec);
55
Assert.Equal(3, r.
Lines
.Length);
56
Assert.Equal("Line1", r.
Lines
[0].ItemSpec);
57
Assert.Equal("Line2", r.
Lines
[1].ItemSpec);
58
Assert.Equal("Line3", r.
Lines
[2].ItemSpec);
93
Assert.Single(r.
Lines
);
94
Assert.Equal("Line1_%3b_", r.
Lines
[0].ItemSpec);
102
Assert.Equal(3, r.
Lines
.Length);
103
Assert.Equal("Line1_%3b_", r.
Lines
[0].ItemSpec);
104
Assert.Equal("Line2", r.
Lines
[1].ItemSpec);
105
Assert.Equal("Line3", r.
Lines
[2].ItemSpec);
138
Assert.Single(r.
Lines
);
139
Assert.Equal("My special character is \u00C3", r.
Lines
[0].ItemSpec);
162
Assert.Empty(r.
Lines
);
198
Assert.Equal(3, r.
Lines
.Length);
199
Assert.Equal("Line1", r.
Lines
[0].ItemSpec);
200
Assert.Equal("Line2", r.
Lines
[1].ItemSpec);
201
Assert.Equal("Line3", r.
Lines
[2].ItemSpec);
WriteLinesToFile_Tests.cs (4)
70
Assert.Equal("\uBDEA", r.
Lines
[0].ItemSpec);
91
Assert.NotEqual("\uBDEA", r.
Lines
[0].ItemSpec);
120
r.
Lines
[0].ItemSpec.ShouldBe("File contents1");
203
r.
Lines
[0].ItemSpec.ShouldBe("File contents1");