public void testGetIndexPartition() { JDFRunList rlp = (JDFRunList)rl.addPartition(EnumPartIDKey.Run, "r1"); rlp.setPages(new JDFIntegerRangeList("1 3 5 7")); Assert.AreEqual(rlp, rl.getIndexPartition(0)); Assert.AreEqual(rlp, rl.getIndexPartition(3)); rlp.setNPage(3); JDFRunList rlp2 = (JDFRunList)rl.addPartition(EnumPartIDKey.Run, "r2"); rlp2.setPages(new JDFIntegerRangeList("0 2 4 6")); Assert.AreEqual(rlp2, rl.getIndexPartition(3)); Assert.AreEqual(rlp2, rl.getIndexPartition(6)); Assert.IsNull(rl.getIndexPartition(7)); }