public void GotoEntry_EntryNotInList_Throws() { AddInitialEntries(); DictionaryControl control = (DictionaryControl)_task.Control; Assert.Throws <NavigationException>(() => control.GoToEntryWithId("bogus")); }
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); }