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); }
public void TextSelectionTest(TextSelectionParams selectionParams) { ValidateTextSelection(selectionParams); }