protected override void DoEndOfFile()
        {
            foreach (KeyValuePair <RecordIndex, MinAndMax> entry in _minAndMaxRecordLength)
            {
                RecordIndex index           = entry.Key;
                MinAndMax   minAndMaxValue  = entry.Value;
                string      minLengthString = minAndMaxValue.GetMin()?.ToString() ?? "<no value>";
                string      maxLengthString = minAndMaxValue.GetMax()?.ToString() ?? "<no value>";

                _testResults.Add(new TestResult(ResultType.Success, AddmlLocation.FromRecordIndex(index),
                                                string.Format(Messages.AnalyseFindExtremeRecordsMessage, maxLengthString, minLengthString)));
            }

            _minAndMaxRecordLength.Clear();
        }
        protected override void DoEndOfFile()
        {
            foreach (KeyValuePair <FieldIndex, MinAndMax> entry in _minAndMaxValuesPerField)
            {
                FieldIndex fieldIndex     = entry.Key;
                MinAndMax  minAndMaxValue = entry.Value;
                string     minValueString = minAndMaxValue.GetMin()?.ToString() ?? "<no value>";
                string     maxValueString = minAndMaxValue.GetMax()?.ToString() ?? "<no value>";

                _testResults.Add(new TestResult(ResultType.Success, AddmlLocation.FromFieldIndex(fieldIndex),
                                                string.Format(Messages.AnalyseFindMinMaxValuesMessage, minValueString, maxValueString)));
            }

            _minAndMaxValuesPerField.Clear();
        }