示例#1
0
        public void shold_parse_navg_command(string name, string excepted)
        {
            Schemas schemas = new Schemas("s:string,i:int,b:bool");
            Praser  praser  = new Praser("-s /usr/local -i -100 -b");

            Assert.Equal(excepted, praser.GetValue(name));
        }
示例#2
0
 public object GetValue(string name)
 {
     return(_schema.GetValue(name, _paraser.GetValue(name)));
 }