You should take this repeated block of code and put it into a separate method.  Perhaps `assertLineLengths()`.