public void TestTypeConversion()
{
string[] args = "-string abcdef ghijklmno pqrstuvwxyz -double 3.14159265359 -int 8".Split(' ');
var dest = new CommandTestObj();
CmdLineArg[] Arguments = new CmdLineArg[] {
new CmdLineArg() { Flag = "string", DataType=typeof(string), PropertyName="str"},
new CmdLineArg() { Flag = "double", DataType=typeof(double), PropertyName="dbl"},
new CmdLineArg() { Flag = "int", DataType=typeof(int), PropertyName="it"},
};
CmdLineJobBase cmds = new CmdLineJobBase();
Assert.IsTrue(cmds.Load(args, Arguments, dest), "Load failed!");
Assert.AreEqual("abcdef ghijklmno pqrstuvwxyz", dest.str, "failed on string with spaces");
Assert.AreEqual(3.14159265359, dest.dbl, "failed on double parsing");
Assert.AreEqual(8, dest.it, "failed on integer parsing");
}