Esempio n. 1
0
        public void ParseLiteral_IntLiteral()
        {
            // arrange
            var type    = new ShortType();
            var literal = new IntValueNode(1);

            // act
            var value = type.ParseLiteral(literal);

            // assert
            Assert.IsType <short>(value);
            Assert.Equal(literal.ToInt16(), value);
        }
Esempio n. 2
0
 protected override short ParseLiteral(IntValueNode valueSyntax)
 {
     return(valueSyntax.ToInt16());
 }
Esempio n. 3
0
 protected override short ParseLiteral(IntValueNode literal)
 {
     return(literal.ToInt16());
 }