Definition at line 26 of file StringObjectTests.cs.
| void Deveel.Data.StringObjectTests.BasicVarChar_Add |
( |
| ) |
|
|
inline |
Definition at line 52 of file StringObjectTests.cs.
53 const string s1 =
"First test string that comes ";
54 const string s2 =
"before the second test string";
55 var sObj1 = DataObject.VarChar(s1);
56 var sObj2 = DataObject.VarChar(s2);
58 Assert.IsNotNull(sObj1);
59 Assert.IsNotNull(sObj2);
61 Assert.IsTrue(sObj1.IsComparableTo(sObj2));
63 DataObject result = null;
64 Assert.DoesNotThrow(() => result = sObj1.Add(sObj2));
65 Assert.IsNotNull(result);
66 Assert.AreEqual(
"First test string that comes before the second test string", (
string)result);
| void Deveel.Data.StringObjectTests.BasicVarChar_Compare |
( |
| ) |
|
|
inline |
Definition at line 39 of file StringObjectTests.cs.
40 const string s =
"Test string";
41 var sObj1 = DataObject.VarChar(s);
42 var sObj2 = DataObject.VarChar(s);
44 Assert.IsNotNull(sObj1);
45 Assert.IsNotNull(sObj2);
47 Assert.IsTrue(sObj1.IsComparableTo(sObj2));
48 Assert.AreEqual(0, sObj1.CompareTo(sObj2));
| void Deveel.Data.StringObjectTests.BasicVarChar_Convert_ToBoolean_Success |
( |
| ) |
|
|
inline |
Definition at line 105 of file StringObjectTests.cs.
106 const string s =
"true";
107 var obj = DataObject.VarChar(s);
109 Assert.IsNotNull(obj);
111 Assert.AreEqual(
SqlTypeCode.VarChar, obj.Type.TypeCode);
113 DataObject result = null;
115 Assert.IsNotNull(result);
117 Assert.IsFalse(result.IsNull);
118 Assert.AreEqual(
true, (
bool)result);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BooleanType Boolean()
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
| void Deveel.Data.StringObjectTests.BasicVarChar_Convert_ToInteger_Fail |
( |
| ) |
|
|
inline |
Definition at line 88 of file StringObjectTests.cs.
89 const string s =
"fail";
90 var obj = DataObject.VarChar(s);
92 Assert.IsNotNull(obj);
94 Assert.AreEqual(
SqlTypeCode.VarChar, obj.Type.TypeCode);
96 DataObject result = null;
98 Assert.IsNotNull(result);
100 Assert.IsTrue(result.IsNull);
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.StringObjectTests.BasicVarChar_Convert_ToInteger_Success |
( |
| ) |
|
|
inline |
Definition at line 70 of file StringObjectTests.cs.
71 const string s =
"78998";
72 var obj = DataObject.VarChar(s);
74 Assert.IsNotNull(obj);
76 Assert.AreEqual(
SqlTypeCode.VarChar, obj.Type.TypeCode);
78 DataObject result = null;
80 Assert.IsNotNull(result);
82 Assert.AreEqual(
SqlTypeCode.Integer, result.Type.TypeCode);
83 Assert.AreEqual(78998, result);
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.StringObjectTests.BasicVarChar_Create |
( |
| ) |
|
|
inline |
Definition at line 28 of file StringObjectTests.cs.
29 const string s =
"Test string";
30 var sObj = DataObject.VarChar(s);
31 Assert.IsNotNull(sObj);
32 Assert.IsInstanceOf<DataObject>(sObj);
33 Assert.AreEqual(
SqlTypeCode.VarChar, sObj.Type.TypeCode);
34 Assert.IsInstanceOf<
SqlString>(sObj.Value);
35 Assert.AreEqual(s, sObj.Value);
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/StringObjectTests.cs