public void GenerateDefaultHeaderWithName2()
        {
            var fd = new FlatFileDefinition <MyClass>();

            fd.IsColumnSeparated(';');
            fd.MapColumnToProperty("prop2", i => i.MyProperty2);
            fd.MapColumnToProperty("prop1", i => i.MyProperty1);
            Assert.AreEqual("prop2;prop1", fd.GenerateDefaultHeaderLine());
        }
        public void GenerateDefaultHeaderWithIndex1()
        {
            var fd = new FlatFileDefinition <MyClass>();

            fd.IsColumnSeparated(';');
            fd.MapColumnToProperty(1, i => i.MyProperty2);
            fd.MapColumnToProperty(0, i => i.MyProperty1);
            Assert.AreEqual("MyProperty1;MyProperty2", fd.GenerateDefaultHeaderLine());
        }