Exemplo n.º 1
0
 public virtual void testGetNamePathVector()
 {
     {
         JDFDevCap dc = (JDFDevCap)devicecap.getChildWithAttribute(null, AttributeName.ID, null, "dc_Ancestor", 0, false);
         VString   v  = dc.getNamePathVector(true);
         Assert.AreEqual(1, v.Count);
         Assert.AreEqual("JDF/AncestorPool/Ancestor", v.stringAt(0));
     }
     {
         JDFDevCap dc = (JDFDevCap)devicecap.getChildWithAttribute(null, AttributeName.ID, null, "dc_Layout", 0, false);
         VString   v  = dc.getNamePathVector(true);
         Assert.IsTrue(v.Count > 1);
         Assert.AreEqual("JDF/ResourcePool/Layout", v.stringAt(0));
     }
     {
         JDFDevCap dc = (JDFDevCap)devicecap.getChildWithAttribute(null, AttributeName.ID, null, "dc_LayoutLink", 0, false);
         VString   v  = dc.getNamePathVector(true);
         Assert.AreEqual(1, v.Count);
         Assert.AreEqual("JDF/ResourceLinkPool/LayoutLink", v.stringAt(0));
     }
     {
         JDFDevCap dc = (JDFDevCap)devicecap.getChildWithAttribute(null, AttributeName.ID, null, "dc_Created", 0, false);
         VString   v  = dc.getNamePathVector(true);
         Assert.AreEqual(1, v.Count);
         Assert.AreEqual("JDF/AuditPool/Created", v.stringAt(0));
     }
     {
         JDFDevCap dc = (JDFDevCap)devicecap.getChildWithAttribute(null, AttributeName.ID, null, "dc_JDF", 0, false);
         VString   v  = dc.getNamePathVector(true);
         Assert.AreEqual(1, v.Count);
         Assert.AreEqual("JDF", v.stringAt(0));
     }
 }