public void ParseLiteral_IntLiteral() { // arrange var type = new ByteType(); var literal = new IntValueNode(1); // act var value = type.ParseLiteral(literal); // assert Assert.IsType <byte>(value); Assert.Equal(literal.ToByte(), value); }
protected override byte ParseLiteral(IntValueNode valueSyntax) => valueSyntax.ToByte();
protected override byte ParseLiteral(IntValueNode literal) { return(literal.ToByte()); }
protected override byte ParseLiteral(IntValueNode valueSyntax) { return(valueSyntax.ToByte()); }