private void ParseMessage(string message, MessageLimiter limiter)
        {
            string expected = TestResultParser.Expected(message);
            string actual   = TestResultParser.Actual(message);
            int    differAt = TestResultParser.DifferAt(message, expected, actual);
            string correct;
            string incorrect;

            limiter.AdjustExpectedActualLengths(ref expected, ref actual, differAt, out correct, out incorrect);
            Expected  = expected;
            Correct   = correct;
            Incorrect = incorrect;
        }
 public void AdjustExpectedActualLengths(ref string expected, ref string actual, int differAt, out string correct, out string incorrect)
 {
     if (ConvertEscape)
     {
         ConvertEscapeCharacters(ref expected);
         ConvertEscapeCharacters(ref actual);
     }
     if (Shorten == true)
     {
         ShortenString(ref expected, differAt);
         ShortenString(ref actual, differAt);
         differAt = TestResultParser.GetDifferAtManual(expected, actual);
     }
     if (string.IsNullOrEmpty(actual) == false)
     {
         correct   = actual.Substring(0, differAt);
         incorrect = actual.Substring(differAt);
     }
     else
     {
         correct   = actual;
         incorrect = actual;
     }
 }