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

Public Member Functions

void NullObjectEqualsDbNull ()
 
void NullObjectEqualsNull ()
 

Detailed Description

Definition at line 24 of file NullObjectTest.cs.

Member Function Documentation

void Deveel.Data.NullObjectTest.NullObjectEqualsDbNull ( )
inline

Definition at line 26 of file NullObjectTest.cs.

26  {
27  DataObject obj = null;
28  Assert.AreEqual(DBNull.Value, (DBNull)obj);
29  Assert.IsTrue(obj == DBNull.Value);
30  }
void Deveel.Data.NullObjectTest.NullObjectEqualsNull ( )
inline

Definition at line 33 of file NullObjectTest.cs.

33  {
34  DataObject obj = null;
35  Assert.AreEqual(null, obj);
36 
37  DataObject result = null;
38  Assert.DoesNotThrow(() => result = obj == null);
39  Assert.IsNotNull(result);
40  Assert.IsInstanceOf<BooleanType>(result.Type);
41  Assert.IsTrue(result.IsNull);
42  }

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