public void Reader_WithOut_Split()
        {
            IEnumerable <String> strings = null;
            bool success = false;

            using (var reader = new DelimitedReader(TestInputFileBlank))
            {
                success = reader.TryRead(out strings);
            }

            Assert.That(strings, Is.EquivalentTo(new[] { "Shelby Macias", "3027 Lorem St.|Kokomo|Hertfordshire|L9T 3D5|England", "1 66 890 3865-9584", "*****@*****.**" }));
            Assert.That(success, Is.True);
        }
        private Tuple <int, Exception> CountLines(string filename, bool withOutValues, bool endOnGap)
        {
            IEnumerable <string> strings = null;
            Exception            ex      = null;

            int lineCount = 0;

            using (var reader = new DelimitedReader(filename, endOnGap))
            {
                try
                {
                    while (withOutValues ? reader.TryRead(out strings): (reader.Read() != null))
                    {
                        lineCount++;
                    }
                }
                catch (Exception e)
                {
                    ex = e;
                }
            }

            return(new Tuple <int, Exception>(lineCount, ex));
        }