public virtual void testAppendDevCapInPool_JMF() { JDFDoc doc = new JDFDoc("MessageService"); JDFMessageService ms = (JDFMessageService)doc.getRoot(); JDFDevCaps dcs = ms.appendDevCaps(); dcs.setName("foo"); JDFDevCap dc = dcs.appendDevCapInPool(); Assert.AreEqual(dc, dcs.getDevCap()); Assert.AreEqual(dc.getName(), dcs.getName()); }
public virtual void testAppendDevCapInPool_DeviceCap() { JDFDoc doc = new JDFDoc("DeviceCap"); JDFDeviceCap ms = (JDFDeviceCap)doc.getRoot(); JDFDevCaps dcs = ms.appendDevCaps(); dcs.setName("foo"); JDFDevCap dc = dcs.appendDevCapInPool(); Assert.AreEqual(dc, dcs.getDevCap()); Assert.AreEqual(dc.getName(), dcs.getName()); }