private void CheckValidParsedValue(string input, int startIndex, long expectedResult, int expectedIndex)
        {
            Int64NumberHeaderParser parser = Int64NumberHeaderParser.Parser;
            object result = 0;

            Assert.True(parser.TryParseValue(input, null, ref startIndex, out result),
                        string.Format("TryParse returned false: {0}", input));
            Assert.Equal(expectedResult, result);
            Assert.Equal(expectedIndex, startIndex);
        }
        private void CheckInvalidParsedValue(string input, int startIndex)
        {
            Int64NumberHeaderParser parser = Int64NumberHeaderParser.Parser;
            object result   = 0;
            int    newIndex = startIndex;

            Assert.False(parser.TryParseValue(input, null, ref newIndex, out result),
                         string.Format("TryParse returned true: {0}", input));
            Assert.Equal(null, result);
            Assert.Equal(startIndex, newIndex);
        }