public void SelectSpecial() { bool success = controller.LoadInitialFile(TestUtil.GetTestFile("selectionmgr\\sampleevent4.coursescribe"), true); Assert.IsTrue(success); selectionMgr.SelectCourseView(Designator(4)); selectionMgr.SelectCourseControl(CourseControlId(11)); selectionMgr.SelectSpecial(SpecialId(5)); CheckSelectedLines(-1, -1); SelectionMgr.SelectionInfo selectionInfo = selectionMgr.Selection; Assert.AreEqual(SelectionMgr.SelectionKind.Special, selectionInfo.SelectionKind); Assert.AreEqual(0, selectionInfo.SelectedControl.id); Assert.AreEqual(0, selectionInfo.SelectedCourseControl.id); Assert.AreEqual(5, selectionInfo.SelectedSpecial.id); CourseObj[] selectedObjects = selectionMgr.SelectedCourseObjects; Assert.AreEqual(1, selectedObjects.Length); Assert.AreEqual(@"BasicText: special:5 scale:1 text:Banana Apple top-left:(13,17) font-name:Times New Roman font-style:Bold font-height:9.530931 rect:(13,17)-(71,1)", selectedObjects[0].ToString()); }