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