Esempio n. 1
0
        public void ParseFiles_MissingBirthDate()
        {
            var path         = @"Data\2-MissingBirthDate-Invalid.txt";
            var recordParser = new RecordParser();
            var recordList   = recordParser.ParseFiles(new[] { path });

            Assert.AreEqual(recordList.Count(), 2);
        }
Esempio n. 2
0
        public void ParseFiles_2Records_Space()
        {
            var path         = @"Data\2-Space-Valid.txt";
            var recordParser = new RecordParser();
            var recordList   = recordParser.ParseFiles(new[] { path });

            Assert.AreEqual(recordList.Count(), 2);
        }
Esempio n. 3
0
        public void ParseFiles_0Records()
        {
            var path         = @"Data\0-Valid.txt";
            var recordParser = new RecordParser();
            var recordList   = recordParser.ParseFiles(new [] { path });

            Assert.AreEqual(recordList.Count(), 0);
        }
Esempio n. 4
0
        public void ParseFiles_3Files_6Records()
        {
            var paths = new string[]
            {
                @"Data\2-Pipe-Valid.txt",
                @"Data\2-Comma-Valid.txt",
                @"Data\2-Space-Valid.txt"
            };
            var recordParser = new RecordParser();
            var recordList   = recordParser.ParseFiles(paths);

            Assert.AreEqual(recordList.Count(), 6);
        }
Esempio n. 5
0
 public void ParseFiles_BadBirthDate()
 {
     var path         = @"Data\2-BadBirthDate-Invalid.txt";
     var recordParser = new RecordParser();
     var recordList   = recordParser.ParseFiles(new[] { path });
 }
Esempio n. 6
0
 public void ParseFiles_MissingLastName()
 {
     var path         = @"Data\2-MissingLastName-Invalid.txt";
     var recordParser = new RecordParser();
     var recordList   = recordParser.ParseFiles(new[] { path });
 }