Esempio n. 1
0
        public void TestGetValueType()
        {
            var lEx = new LiteralExpression("somevalue");

            Assert.Equal(typeof(string), lEx.GetValueType());
            Assert.Equal(typeof(string), lEx.GetValueType(new StandardEvaluationContext()));
            Assert.Equal(typeof(string), lEx.GetValueType(new Rooty()));
            Assert.Equal(typeof(string), lEx.GetValueType(new StandardEvaluationContext(), new Rooty()));
        }