public static void ThrowExceptionWhenIsNotEquals(Expression <Func <object> > paramExpression, object expectedValue) { Validators.ThrowExceptionWhenIsNull("paramExpression", (object)paramExpression); Validators.ThrowExceptionWhenIsNotEquals(Validators.GetParamName(paramExpression), Validators.GetParamValue(paramExpression), expectedValue); }