public void DialogTest() { FlexDePlugin target = new FlexDePlugin(); helpProvider = new DynamicMock(typeof (SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)); UtilityDlg expected = new UtilityDlg((SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)helpProvider.MockInstance); target.Dialog = expected; }
/// <summary> /// Constructor. /// </summary> public ExecuteSQLScript(UtilityDlg dlg, string name, string whenDescr, string whatDescr, string redoDescr, string sqlQuery) { m_dlg = dlg; m_name = name; m_whenDescr = whenDescr; m_whatDescr = whatDescr; m_redoDescr = redoDescr; m_sqlQuery = sqlQuery; }
public void ExportToolTest() { FlexDePlugin target = new FlexDePlugin(); helpProvider = new DynamicMock(typeof(SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)); UtilityDlg exportDialog = new UtilityDlg((SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)helpProvider.MockInstance); target.Dialog = exportDialog; string areaChoice = "lexicon"; string toolChoice = "lexiconDictionary"; string exportFormat = "ConfiguredXHTML"; string filePath = Path.Combine(_TestPath, "main.xhtml"); ExportTool(areaChoice, toolChoice, exportFormat, filePath); }
public void LoadUtilitiesTest() { FlexDePlugin target = new FlexDePlugin(); helpProvider = new DynamicMock(typeof(SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)); UtilityDlg exportDialog = new UtilityDlg((SIL.FieldWorks.Common.COMInterfaces.IHelpTopicProvider)helpProvider.MockInstance); target.Dialog = exportDialog; target.LoadUtilities(); // NOTE: The only test is really that it doesn't crash. The variables set have not getters. }