public void should_accept_bool(string name, string value, bool excepted) { Schemas schemas = new Schemas("b:bool"); Assert.Equal(excepted, schemas.GetValue(name, value)); }
public void should_accept_int(string name, string value, int excepted) { Schemas schemas = new Schemas("i:int"); Assert.Equal(excepted, schemas.GetValue(name, value)); }
public object GetValue(string name) { return(_schema.GetValue(name, _paraser.GetValue(name))); }