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

Public Member Functions

void SimpleName ()
 
void ComplexName ()
 
void ComplexNameWithGlob ()
 
void SimpleName_Parse ()
 
void ComplexName_Parse ()
 
void SimpleName_Compare ()
 
void SimpleName_Equals ()
 
void SimpleName_NotEquals ()
 

Detailed Description

Definition at line 25 of file ObjectNameTest.cs.

Member Function Documentation

void Deveel.Data.ObjectNameTest.ComplexName ( )
inline

Definition at line 37 of file ObjectNameTest.cs.

37  {
38  var objName = new ObjectName(new ObjectName("parent"), "id");
39  Assert.IsNotNull(objName);
40  Assert.IsNotNull(objName.Parent);
41  Assert.AreEqual("parent", objName.Parent.Name);
42  Assert.IsNotNull(objName.Name);
43  Assert.AreEqual("id", objName.Name);
44  Assert.AreEqual("parent.id", objName.FullName);
45  Assert.IsFalse(objName.IsGlob);
46  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.ComplexName_Parse ( )
inline

Definition at line 71 of file ObjectNameTest.cs.

71  {
72  ObjectName objName = null;
73  Assert.DoesNotThrow(() => objName = ObjectName.Parse("parent.id"));
74  Assert.IsNotNull(objName);
75  Assert.IsNotNull(objName.Parent);
76  Assert.AreEqual("parent", objName.Parent.Name);
77  Assert.IsNotNull(objName.Name);
78  Assert.AreEqual("id", objName.Name);
79  Assert.AreEqual("parent.id", objName.FullName);
80  Assert.IsFalse(objName.IsGlob);
81  }
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
Definition: ObjectName.cs:139
Describes the name of an object within a database.
Definition: ObjectName.cs:44
bool IsGlob
Indicates if this reference equivales to GlobName.
Definition: ObjectName.cs:121
string FullName
Gets the full reference name formatted.
Definition: ObjectName.cs:114
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
Definition: ObjectName.cs:99
string Name
Gets the name of the object being referenced.
Definition: ObjectName.cs:108
void Deveel.Data.ObjectNameTest.ComplexNameWithGlob ( )
inline

Definition at line 49 of file ObjectNameTest.cs.

49  {
50  var objName = new ObjectName(new ObjectName("parent"), "*");
51  Assert.IsNotNull(objName);
52  Assert.IsNotNull(objName.Parent);
53  Assert.AreEqual("parent", objName.Parent.Name);
54  Assert.IsNotNull(objName.Name);
55  Assert.AreEqual("*", objName.Name);
56  Assert.AreEqual("parent.*", objName.FullName);
57  Assert.IsTrue(objName.IsGlob);
58  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.SimpleName ( )
inline

Definition at line 27 of file ObjectNameTest.cs.

27  {
28  var objName = new ObjectName("id");
29  Assert.IsNotNull(objName);
30  Assert.IsNull(objName.Parent);
31  Assert.AreEqual("id", objName.Name);
32  Assert.AreEqual("id", objName.FullName);
33  Assert.IsFalse(objName.IsGlob);
34  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.SimpleName_Compare ( )
inline

Definition at line 84 of file ObjectNameTest.cs.

84  {
85  var objName1 = new ObjectName("id1");
86  var objName2 = new ObjectName("id2");
87 
88  int i = -2;
89  Assert.DoesNotThrow(() => i = objName1.CompareTo(objName2));
90  Assert.AreEqual(-1, i);
91  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.SimpleName_Equals ( )
inline

Definition at line 94 of file ObjectNameTest.cs.

94  {
95  var objName1 = new ObjectName("id1");
96  var objName2 = new ObjectName("id1");
97  Assert.IsTrue(objName1.Equals(objName2));
98  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.SimpleName_NotEquals ( )
inline

Definition at line 101 of file ObjectNameTest.cs.

101  {
102  var objName1 = new ObjectName("id1");
103  var objName2 = new ObjectName("id2");
104  Assert.IsFalse(objName1.Equals(objName2));
105  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
void Deveel.Data.ObjectNameTest.SimpleName_Parse ( )
inline

Definition at line 61 of file ObjectNameTest.cs.

61  {
62  ObjectName objName = null;
63  Assert.DoesNotThrow(() => objName = ObjectName.Parse("id"));
64  Assert.IsNotNull(objName);
65  Assert.AreEqual("id", objName.Name);
66  Assert.AreEqual("id", objName.FullName);
67  Assert.IsFalse(objName.IsGlob);
68  }
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
Definition: ObjectName.cs:139
Describes the name of an object within a database.
Definition: ObjectName.cs:44
bool IsGlob
Indicates if this reference equivales to GlobName.
Definition: ObjectName.cs:121
string FullName
Gets the full reference name formatted.
Definition: ObjectName.cs:114
string Name
Gets the name of the object being referenced.
Definition: ObjectName.cs:108

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