private void TestController() { Controller saController = new Controller(); saController.SystemAccumulation = Engine.controller.SystemAccumulation; IteratorSA iter = new IteratorSA(); PoemLine firstLine = Engine.controller.SystemAccumulation.GetFirstLine(); PoemLine curLine = firstLine; do { saController.SetCurrentLine(curLine); PoemLineIdentifier position = saController.GetCurrentLineID(); saController.Clear(); saController.SetCurrentLineByID(position); if (saController.CurrentLine != curLine) { MessageBox.Show("Ошибка"); } curLine = iter.GetNextLine(curLine, true); } while (curLine != firstLine); }