Esempio n. 1
0
        protected void ValidateTextSelection(TextSelectionParams textSelectionParams)
        {
            var geData = LoadProfile(textSelectionParams.NewProfileText);

            geData.Profile.Fragment = geData.Profile.Profile;
            geData.Profile.GetNodeProfileText();
            Assert.AreEqual(geData.Profile.IsSelectable(textSelectionParams.Start, textSelectionParams.End, true), textSelectionParams.IsSelectable,
                            "Is the specified text selectable? (" + textSelectionParams.Comment + ")");
            if (!textSelectionParams.IsSelectable)
            {
                return;
            }
            var fragments = geData.Profile.GetSelection(textSelectionParams.Start, textSelectionParams.End);
        }
Esempio n. 2
0
 public void TextSelectionTest(TextSelectionParams selectionParams)
 {
     ValidateTextSelection(selectionParams);
 }