/// <summary> /// Initializes a new instance of <see cref="DbUnaryExpression"/> class. /// </summary> /// <param name="dataType">The data type.</param> /// <param name="kind">Specifies the operation of the expression.</param> /// <param name="operand">The operand of the expression.</param> public DbUnaryExpression(Type dataType, DbUnaryExpressionKind kind, DbExpression operand) : base(dataType) { Kind = kind; Operand = operand; }
public static void Verify(this DbUnaryExpression expression, DbUnaryExpressionKind expectedKind, Column expectedOperand) { Assert.AreEqual(expectedKind, expression.Kind); Assert.AreEqual(expectedOperand.DbExpression, expression.Operand); }