示例#1
0
        public void should_accept_bool(string name, string value, bool excepted)
        {
            Schemas schemas = new Schemas("b:bool");

            Assert.Equal(excepted, schemas.GetValue(name, value));
        }
示例#2
0
        public void should_accept_int(string name, string value, int excepted)
        {
            Schemas schemas = new Schemas("i:int");

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