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