20 using NUnit.Framework;
24 [Category(
"Object Name")]
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);
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);
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);
64 Assert.IsNotNull(objName);
65 Assert.AreEqual(
"id", objName.
Name);
66 Assert.AreEqual(
"id", objName.
FullName);
67 Assert.IsFalse(objName.
IsGlob);
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);
89 Assert.DoesNotThrow(() => i = objName1.CompareTo(objName2));
90 Assert.AreEqual(-1, i);
97 Assert.IsTrue(objName1.Equals(objName2));
104 Assert.IsFalse(objName1.Equals(objName2));
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
Describes the name of an object within a database.
bool IsGlob
Indicates if this reference equivales to GlobName.
void SimpleName_NotEquals()
string FullName
Gets the full reference name formatted.
void ComplexNameWithGlob()
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
void SimpleName_Compare()
string Name
Gets the name of the object being referenced.