Clean code for array comparison
Environment.NewLine always returns \r\n so it won't help you in parsing different line endings.

If your task is to count the number of lines then it would be much easier just to do smth. like:

    private static int GetLineCount(string fileName)
    {
        return File.ReadLines(fileName).Count();
    }


ReadLines method automatically parses different line endings.