DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Sql.Expressions.SqlDateExpressionTests Class Reference

Public Member Functions

void DateSmallerThanOtherDate ()
 

Detailed Description

Definition at line 23 of file SqlDateExpressionTests.cs.

Member Function Documentation

void Deveel.Data.Sql.Expressions.SqlDateExpressionTests.DateSmallerThanOtherDate ( )
inline

Definition at line 25 of file SqlDateExpressionTests.cs.

25  {
26  const string text = "TODATE('2013-03-01') < TODATE('2013-05-02')";
27 
28  SqlExpression expression = null;
29  Assert.DoesNotThrow(() => expression = SqlExpression.Parse(text));
30  Assert.IsNotNull(expression);
31  Assert.IsInstanceOf<SqlBinaryExpression>(expression);
32 
33  SqlExpression evaluated = null;
34  Assert.DoesNotThrow(() => evaluated = expression.Evaluate());
35  Assert.IsNotNull(evaluated);
36 
37  Assert.IsInstanceOf<SqlConstantExpression>(evaluated);
38 
39  var value = ((SqlConstantExpression) evaluated).Value;
40 
41  Assert.IsInstanceOf<SqlBoolean>(value.Value);
42 
43  Assert.AreEqual(SqlBoolean.True, value.Value);
44  }

The documentation for this class was generated from the following file: