Definition at line 24 of file SqlBooleanTest.cs.
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_Equal |
( |
| ) |
|
|
inline |
Definition at line 53 of file SqlBooleanTest.cs.
57 Assert.IsFalse(value1.IsNull);
58 Assert.IsFalse(value2.IsNull);
60 Assert.IsTrue(value1.IsComparableTo(value2));
63 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
64 Assert.AreEqual(0, i);
Deveel.Data.Sql.Objects.SqlBoolean SqlBoolean
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_NotEqual |
( |
| ) |
|
|
inline |
Definition at line 69 of file SqlBooleanTest.cs.
73 Assert.IsFalse(value1.IsNull);
74 Assert.IsFalse(value2.IsNull);
76 Assert.IsTrue(value1.IsComparableTo(value2));
79 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
80 Assert.AreEqual(-1, i);
Deveel.Data.Sql.Objects.SqlBoolean SqlBoolean
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_ToBooleanNull |
( |
| ) |
|
|
inline |
Definition at line 85 of file SqlBooleanTest.cs.
89 Assert.IsFalse(value1.IsNull);
90 Assert.IsTrue(value2.IsNull);
92 Assert.IsTrue(value1.IsComparableTo(value2));
95 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
96 Assert.AreEqual(1, i);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_ToNull |
( |
| ) |
|
|
inline |
Definition at line 101 of file SqlBooleanTest.cs.
103 var value2 = SqlNull.Value;
105 Assert.IsFalse(value1.IsNull);
106 Assert.IsTrue(value2.IsNull);
108 Assert.IsTrue(value1.IsComparableTo(value2));
111 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
112 Assert.AreEqual(1, i);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_ToNumber_InRange |
( |
| ) |
|
|
inline |
Definition at line 118 of file SqlBooleanTest.cs.
120 var value2 = SqlNumber.One;
122 Assert.IsFalse(value1.IsNull);
123 Assert.IsFalse(value2.IsNull);
125 Assert.IsTrue(value1.IsComparableTo(value2));
128 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
129 Assert.AreEqual(0, i);
131 value2 = SqlNumber.Zero;
133 Assert.IsFalse(value1.IsNull);
134 Assert.IsFalse(value2.IsNull);
136 Assert.IsTrue(value1.IsComparableTo(value2));
139 Assert.DoesNotThrow(() => i = value1.CompareTo(value2));
140 Assert.AreEqual(1, i);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Compare_ToNumber_OutOfRange |
( |
| ) |
|
|
inline |
Definition at line 146 of file SqlBooleanTest.cs.
148 var value2 =
new SqlNumber(21);
150 Assert.IsFalse(value1.IsNull);
151 Assert.IsFalse(value2.IsNull);
153 Assert.IsFalse(value1.IsComparableTo(value2));
156 Assert.Throws<ArgumentOutOfRangeException>(() => i = value1.CompareTo(value2));
157 Assert.AreEqual(-2, i);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Convert_ToString |
( |
| ) |
|
|
inline |
Definition at line 193 of file SqlBooleanTest.cs.
195 Assert.AreEqual(
"true", value.ToString());
198 Assert.AreEqual(
"false", value.ToString());
201 Assert.AreEqual(
"NULL", value.ToString());
void Deveel.Data.Sql.Objects.SqlBooleanTest.CreateFromBoolean |
( |
| ) |
|
|
inline |
Definition at line 39 of file SqlBooleanTest.cs.
41 Assert.IsNotNull(value);
42 Assert.IsFalse(value.IsNull);
43 Assert.AreEqual(
true, (
bool)value);
46 Assert.IsNotNull(value);
47 Assert.IsFalse(value.IsNull);
48 Assert.AreEqual(
false, (
bool)value);
Deveel.Data.Sql.Objects.SqlBoolean SqlBoolean
void Deveel.Data.Sql.Objects.SqlBooleanTest.CreateFromByte |
( |
| ) |
|
|
inline |
Definition at line 26 of file SqlBooleanTest.cs.
28 Assert.IsNotNull(value);
29 Assert.IsFalse(value.IsNull);
30 Assert.AreEqual(
true, (
bool)value);
33 Assert.IsNotNull(value);
34 Assert.IsFalse(value.IsNull);
35 Assert.AreEqual(
false, (
bool)value);
Deveel.Data.Sql.Objects.SqlBoolean SqlBoolean
void Deveel.Data.Sql.Objects.SqlBooleanTest.Equality_False |
( |
| ) |
|
|
inline |
Definition at line 171 of file SqlBooleanTest.cs.
175 Assert.IsTrue(value1 != value2);
179 Assert.IsTrue(value1 != value2);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Equality_ToNull_True |
( |
| ) |
|
|
inline |
Definition at line 184 of file SqlBooleanTest.cs.
186 var value2 = SqlNull.Value;
188 Assert.IsTrue(value1 == value2);
void Deveel.Data.Sql.Objects.SqlBooleanTest.Equality_True |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Sql.Objects/SqlBooleanTest.cs