示例#1
0
        public void GotoEntry_EntryNotInList_Throws()
        {
            AddInitialEntries();
            DictionaryControl control = (DictionaryControl)_task.Control;

            Assert.Throws <NavigationException>(() => control.GoToEntryWithId("bogus"));
        }
示例#2
0
        public void GotoEntry_EntryInList_GoesToIt()
        {
            AddInitialEntries();
            DictionaryControl control     = (DictionaryControl)_task.Control;
            string            idOfInitial = control.CurrentEntry.Id;

            GoToLexicalEntryUseFind("Secondary");             //go away from that one
            control.GoToEntryWithId(idOfInitial);
            Assert.AreEqual(idOfInitial, control.CurrentEntry.Id);
        }