Inheritance: RDomBaseExpression, ILiteralExpression
        public void Argument_can_be_constructed()
        {
            var expected = 42;

             var expression = new RDomLiteralExpression(expected);
             var arg = new RDomArgument(expression);
             Assert.IsNotNull(expression);
             Assert.IsNotNull(arg);
             var actual = RDom.CSharp.GetSyntaxNode(arg).ToFullString();
             Assert.AreEqual(expected.ToString(), actual);
        }
示例#2
0
 internal RDomLiteralExpression(RDomLiteralExpression oldRDom)
     : base(oldRDom)
 {
     _literal = oldRDom.Literal;
 }
 internal RDomLiteralExpression(RDomLiteralExpression oldRDom)
     : base(oldRDom)
 {
     _literal = oldRDom.Literal;
 }