Esempio n. 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));
        }
Esempio n. 2
0
 public object GetValue(string name)
 {
     return(_schema.GetValue(name, _paraser.GetValue(name)));
 }