示例#1
0
        public void SelectKeyLine()
        {
            bool success = controller.LoadInitialFile(TestUtil.GetTestFile("selectionmgr\\sampleevent5.ppen"), true);

            Assert.IsTrue(success);

            selectionMgr.SelectCourseView(Designator(5));

            selectionMgr.SelectKeyLine(ui.symbolDB["5.6"]);            // light pole
            SelectionMgr.SelectionInfo selectionInfo = selectionMgr.Selection;
            Assert.AreEqual(SelectionMgr.SelectionKind.Key, selectionInfo.SelectionKind);
            Assert.AreEqual("5.6", selectionInfo.SelectedKeySymbol.Id);
            CheckSelectedLines(16, 16);

            selectionMgr.SelectDescriptionLine(17);
            selectionInfo = selectionMgr.Selection;
            Assert.AreEqual(SelectionMgr.SelectionKind.Key, selectionInfo.SelectionKind);
            Assert.AreEqual("12.1", selectionInfo.SelectedKeySymbol.Id);
        }