public void TestReadDateNamePatternDefaultValue()
        {
            var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { " " });

            var read = fieldSet.ReadDate("name", "dd/MM/yyyy", new DateTime(1970, 1, 1));

            Assert.AreEqual(new DateTime(1970, 1, 1), read);
        }
        public void TestReadDateIndexDefaultValue()
        {
            var fieldSet = new DefaultFieldSet(new[] { " " });

            var read = fieldSet.ReadDate(0, new DateTime(1970, 1, 1));

            Assert.AreEqual(new DateTime(1970, 1, 1), read);
        }
        public void TestReadDateNamePattern()
        {
            var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "04/06/2015" });

            var read = fieldSet.ReadDate("name", "dd/MM/yyyy");

            Assert.AreEqual(new DateTime(2015, 6, 4), read);
        }
        public void TestReadDateName()
        {
            var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "2015-06-03" });

            var read = fieldSet.ReadDate("name");

            Assert.AreEqual(new DateTime(2015, 6, 3), read);
        }