public void ExpressionHelperCastToValueTest() { Expression from = Expression.Constant(34, typeof(int)); Type to = typeof(string); UnaryExpression cast = ExpressionHelper.Cast(from, to); Assert.AreEqual("(34 As String)", cast.ToString()); }