Definition at line 27 of file NumericObjectTests.cs.
void Deveel.Data.NumericObjectTests.BigInt_Create |
( |
| ) |
|
|
inline |
Definition at line 38 of file NumericObjectTests.cs.
39 var obj = DataObject.BigInt(8399902L);
40 Assert.IsNotNull(obj);
42 Assert.AreEqual(
SqlTypeCode.BigInt, obj.Type.TypeCode);
43 Assert.AreEqual(8399902L, obj);
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Compare_Equal |
( |
| ) |
|
|
inline |
Definition at line 47 of file NumericObjectTests.cs.
48 var obj1 = DataObject.Integer(33);
49 var obj2 = DataObject.Integer(33);
51 Assert.IsNotNull(obj1);
52 Assert.IsNotNull(obj2);
57 Assert.AreEqual(
SqlTypeCode.Integer, obj1.Type.TypeCode);
58 Assert.AreEqual(
SqlTypeCode.Integer, obj2.Type.TypeCode);
60 Assert.IsTrue(obj1.IsComparableTo(obj2));
61 Assert.AreEqual(0, obj1.CompareTo(obj2));
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Compare_NotEqual |
( |
| ) |
|
|
inline |
Definition at line 65 of file NumericObjectTests.cs.
66 var obj1 = DataObject.Integer(33);
67 var obj2 = DataObject.Integer(87);
69 Assert.IsNotNull(obj1);
70 Assert.IsNotNull(obj2);
75 Assert.AreEqual(
SqlTypeCode.Integer, obj1.Type.TypeCode);
76 Assert.AreEqual(
SqlTypeCode.Integer, obj2.Type.TypeCode);
78 Assert.IsTrue(obj1.IsComparableTo(obj2));
79 Assert.AreEqual(-1, obj1.CompareTo(obj2));
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Convert_ToBoolean |
( |
| ) |
|
|
inline |
Definition at line 113 of file NumericObjectTests.cs.
114 var obj = DataObject.Integer(1);
115 Assert.IsNotNull(obj);
117 Assert.AreEqual(
SqlTypeCode.Integer, obj.Type.TypeCode);
118 Assert.AreEqual(1, obj);
120 DataObject result = null;
121 Assert.DoesNotThrow(() => result = obj.AsBoolean());
122 Assert.IsNotNull(result);
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Convert_ToDouble |
( |
| ) |
|
|
inline |
Definition at line 83 of file NumericObjectTests.cs.
84 var obj = DataObject.Integer(33);
85 Assert.IsNotNull(obj);
87 Assert.AreEqual(
SqlTypeCode.Integer, obj.Type.TypeCode);
88 Assert.AreEqual(33, obj);
90 DataObject result = null;
92 Assert.IsNotNull(result);
94 Assert.AreEqual(
SqlTypeCode.Double, result.Type.TypeCode);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static NumericType Numeric()
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Convert_ToVarChar |
( |
| ) |
|
|
inline |
Definition at line 98 of file NumericObjectTests.cs.
99 var obj = DataObject.Integer(33);
100 Assert.IsNotNull(obj);
102 Assert.AreEqual(
SqlTypeCode.Integer, obj.Type.TypeCode);
103 Assert.AreEqual(33, obj);
105 DataObject result = null;
106 Assert.DoesNotThrow(() => result = obj.AsVarChar());
107 Assert.IsNotNull(result);
109 Assert.AreEqual(
"33", ((
SqlString)result.Value).Value);
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
void Deveel.Data.NumericObjectTests.Integer_Create |
( |
| ) |
|
|
inline |
Definition at line 29 of file NumericObjectTests.cs.
30 var obj = DataObject.Integer(33);
31 Assert.IsNotNull(obj);
33 Assert.AreEqual(
SqlTypeCode.Integer, obj.Type.TypeCode);
34 Assert.AreEqual(33, obj);
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data/NumericObjectTests.cs