Exemplo n.º 1
0
		public void DialogTest()
		{
			FlexDePlugin target = new FlexDePlugin();
			helpProvider = new DynamicMock(typeof (IHelpTopicProvider));
			using (UtilityDlg expected = new UtilityDlg((IHelpTopicProvider)helpProvider.MockInstance))
				target.Dialog = expected;
		}
Exemplo n.º 2
0
        public void DialogTest()
        {
            FlexDePlugin target = new FlexDePlugin();

            helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
            using (UtilityDlg expected = new UtilityDlg((IHelpTopicProvider)helpProvider.MockInstance))
                target.Dialog = expected;
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
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.
        }
Exemplo n.º 6
0
        public void LoadUtilitiesTest()
        {
            FlexDePlugin target = new FlexDePlugin();

            helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
            using (UtilityDlg exportDialog = new UtilityDlg((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.
            }
        }
Exemplo n.º 7
0
        public void ExportToolTest()
        {
            FlexDePlugin target = new FlexDePlugin();

            helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
            using (UtilityDlg exportDialog = new UtilityDlg((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);
            }
        }
Exemplo n.º 8
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// <param name="command"></param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		public bool OnUtilities(object command)
		{
			CheckDisposed();

			using (UtilityDlg dlg = new UtilityDlg(m_app))
			{
				dlg.SetDlgInfo(m_mediator, (command as XCore.Command).Parameters[0]);
				dlg.ShowDialog(this);
			}

			return true;
		}
Exemplo n.º 9
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// <param name="command"></param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		public bool OnUtilities(object command)
		{
			CheckDisposed();

			using (SIL.FieldWorks.Common.Controls.UtilityDlg dlg = new UtilityDlg(FwApp.App))
			{
				dlg.SetDlgInfo(m_mediator, (command as XCore.Command).Parameters[0]);
				dlg.ShowDialog(this);
			}

			return true;
		}
Exemplo n.º 10
0
		public void ExportToolTest()
		{
			FlexDePlugin target = new FlexDePlugin();
			helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
			using (UtilityDlg exportDialog = new UtilityDlg((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);
			}
		}
Exemplo n.º 11
0
		public void LoadUtilitiesTest()
		{
			FlexDePlugin target = new FlexDePlugin();
			helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
			using (UtilityDlg exportDialog = new UtilityDlg((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.
			}
		}