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

Public Member Functions

void DateCast (object data)
 
void TimeCast (object data)
 
void TimeStampCast (string data)
 
void CastToBoolean (object data, bool expected)
 

Detailed Description

Definition at line 10 of file CastTest.cs.

Member Function Documentation

void Deveel.Data.CastTest.CastToBoolean ( object  data,
bool  expected 
)
inline

Definition at line 46 of file CastTest.cs.

46  {
47  TObject obj = TObject.CreateAndCastFromObject(TType.GetBooleanType(SqlType.Boolean), data);
48  Assert.IsNotNull(obj);
49  Assert.AreEqual(obj.TType.SqlType, SqlType.Boolean);
50  Assert.AreEqual(expected, obj.Object);
51  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33
void Deveel.Data.CastTest.DateCast ( object  data)
inline

Definition at line 13 of file CastTest.cs.

13  {
14  TObject obj = TObject.CreateAndCastFromObject(TType.GetDateType(SqlType.Date), data);
15  Assert.IsNotNull(obj);
16  Assert.AreEqual(obj.TType.SqlType, SqlType.Date);
17  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33
void Deveel.Data.CastTest.TimeCast ( object  data)
inline

Definition at line 24 of file CastTest.cs.

24  {
25  TObject obj = TObject.CreateAndCastFromObject(TType.GetDateType(SqlType.Time), data);
26  Assert.IsNotNull(obj);
27  Assert.AreEqual(obj.TType.SqlType, SqlType.Time);
28  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33
void Deveel.Data.CastTest.TimeStampCast ( string  data)
inline

Definition at line 35 of file CastTest.cs.

35  {
36  TObject obj = TObject.CreateAndCastFromObject(TType.GetDateType(SqlType.TimeStamp), data);
37  Assert.IsNotNull(obj);
38  Assert.AreEqual(obj.TType.SqlType, SqlType.TimeStamp);
39  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33

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