public void TestSetMapping() { VfState vfs = VfsTest(); vfs.SetMapping(0, 1); Assert.AreEqual(1, vfs._arinodMap1To2[0]); Assert.AreEqual(0, vfs._arinodMap2To1[1]); }
internal void SetMatch(int inod1, int inod2, VfState vfs) { MoveToGroup(1, inod1, Groups.ContainedInMapping, vfs); MoveToGroup(2, inod2, Groups.ContainedInMapping, vfs); vfs.SetMapping(inod1, inod2); // Add actions to undo this act... AddAction(new BacktrackAction(Action.deleteMatch, 1, inod1)); AddAction(new BacktrackAction(Action.deleteMatch, 2, inod2)); }