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