Because the `compiledFile` had `\r`. Curiously `compiledLines.SequentiallyEqual(expectedLines)` was true and Equals was false. My gess is SequentiallyEquals trim each element and then compare..