public virtual void testGetLastPhase() { JDFPhaseTime p1 = myAuditPool.setPhase(EnumNodeStatus.Setup, null, null, null); Assert.IsNotNull(p1); Assert.AreEqual(p1, myAuditPool.getLastPhase(null, null)); VJDFAttributeMap vMap = new VJDFAttributeMap(); vMap.Add(new JDFAttributeMap("SheetName", "s1")); VJDFAttributeMap vMap2 = new VJDFAttributeMap(); vMap2.Add(new JDFAttributeMap("SheetName", "s1")); JDFPhaseTime p2 = myAuditPool.setPhase(EnumNodeStatus.Setup, null, vMap, null); Assert.AreEqual(p2, myAuditPool.getLastPhase(vMap, null)); Assert.AreEqual(p2, myAuditPool.getLastPhase(null, null)); JDFPhaseTime p3 = myAuditPool.setPhase(EnumNodeStatus.Setup, null, vMap2, null); myAuditPool.addModified(null, jdfRoot); Assert.AreEqual(p2, myAuditPool.getLastPhase(vMap, null)); Assert.AreEqual(p3, myAuditPool.getLastPhase(null, null)); Assert.AreEqual(p3, myAuditPool.getLastPhase(vMap2, null)); p1.setModules(new VString("m1", null), new VString("RIP", null)); Assert.IsNull(myAuditPool.getLastPhase(null, "m2")); Assert.AreEqual(p1, myAuditPool.getLastPhase(null, "m1")); }