void VerifySelection(SandboxBase sandbox, bool fPicture, int tagText, int tagObj, int morphIndex)
{
Assert.That(sandbox.RootBox.Selection, Is.Not.Null);
Assert.That(sandbox.MorphIndex, Is.EqualTo(morphIndex));
int ihvoRoot;
int tagTextProp;
int cpropPrevious;
int ichAnchor;
int ichEnd;
int ws;
bool fAssocPrev;
int ihvoEnd;
ITsTextProps ttpBogus;
// Main array of information retrived from sel that made combo.
SelLevInfo[] rgvsli;
bool fIsPictureSel; // icon selected.
IVwSelection sel = sandbox.RootBox.Selection;
fIsPictureSel = sel.SelType == VwSelType.kstPicture;
int cvsli = sel.CLevels(false) - 1;
rgvsli = SelLevInfo.AllTextSelInfo(sel, cvsli,
out ihvoRoot, out tagTextProp, out cpropPrevious, out ichAnchor, out ichEnd,
out ws, out fAssocPrev, out ihvoEnd, out ttpBogus);
Assert.That(fIsPictureSel, Is.EqualTo(fPicture));
Assert.That(tagTextProp, Is.EqualTo(tagText));
if (tagTextProp == SandboxBase.ktagSbNamedObjName)
{
int tagObjProp = rgvsli[0].tag;
Assert.That(tagObjProp, Is.EqualTo(tagObj));
}
//sandbox.InterlinLineChoices.
}