20 using NUnit.Framework;
28 Assert.IsNotNull(obj);
30 Assert.AreEqual(
true, (
bool)obj.AsBoolean());
36 Assert.IsNotNull(obj);
38 Assert.AreEqual(
true, (
bool)obj.AsBoolean());
41 Assert.DoesNotThrow(() => numObj = obj.
AsInteger());
42 Assert.IsNotNull(numObj);
43 Assert.AreEqual(1, (
int) numObj);
49 Assert.IsNotNull(obj);
51 Assert.AreEqual(
false, (
bool)obj.AsBoolean());
57 Assert.IsNotNull(obj);
59 Assert.AreEqual(
false, (
bool)obj.AsBoolean());
62 Assert.DoesNotThrow(() => numObj = obj.
AsInteger());
63 Assert.IsNotNull(numObj);
64 Assert.AreEqual(0, (
int) numObj);
70 Assert.IsNotNull(obj);
72 Assert.IsTrue(obj.IsNull);
79 Assert.IsNotNull(obj);
84 Assert.DoesNotThrow(() => numObj = obj.
AsInteger());
85 Assert.IsNotNull(numObj);
86 Assert.IsTrue(numObj.
IsNull);
bool IsNull
Gets a value that indicates if this object is materialized as null.
void Convert_True_ToNumber()
void Convert_False_ToNumber()
ISqlObject Value
Gets the underlined value that is handled.
static DataObject Boolean(SqlBoolean value)
static readonly SqlNull Value
static readonly DataObject BooleanNull
The null representation of a BOOLEAN object.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
void Convert_Null_ToNumber()