예제 #1
0
		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;
		}
예제 #2
0
			/// <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;
			}
예제 #3
0
		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);
		}
예제 #4
0
		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.
		}