Ejemplo n.º 1
0
        public void SetSelection()
        {
            bool success = controller.LoadInitialFile(TestUtil.GetTestFile("selectionmgr\\sampleevent1.coursescribe"), true);

            Assert.IsTrue(success);

            selectionMgr.SelectCourseView(Designator(4));

            selectionMgr.SelectHeader();
            CheckSelectedLines(1, 1);

            selectionMgr.SelectTitle();
            CheckSelectedLines(0, 0);

            selectionMgr.SelectCourseControl(CourseControlId(11));
            CheckSelectedLines(2, 2);

            selectionMgr.SelectCourseControl(CourseControlId(12));
            CheckSelectedLines(3, 3);

            selectionMgr.SelectCourseControl(CourseControlId(13));
            CheckSelectedLines(4, 4);

            selectionMgr.SelectCourseControl(CourseControlId(16));
            CheckSelectedLines(6, 6);

            selectionMgr.SelectControl(ControlId(6));
            CheckSelectedLines(9, 9);

            selectionMgr.SelectCourseView(Designator(0));
            selectionMgr.SelectControl(ControlId(8));
            CheckSelectedLines(10, 10);

            selectionMgr.SelectCourseView(Designator(5));
            selectionMgr.SelectSecondaryTitle();
            CheckSelectedLines(1, 1);
        }