OnSelection() public method

Notify the utility is has been selected in the dlg.
public OnSelection ( ) : void
return void
コード例 #1
0
ファイル: FlexDePluginTest.cs プロジェクト: sillsdev/WorldPad
		public void OnSelectionTest()
		{
			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.OnSelection();
			// NOTE: The only test is really that it doesn't crash. The variables set have not getters.
		}
コード例 #2
0
		public void OnSelectionTest()
		{
			FlexDePlugin target = new FlexDePlugin();
			helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
			using (UtilityDlg exportDialog = new UtilityDlg((IHelpTopicProvider)helpProvider.MockInstance))
			{
				target.Dialog = exportDialog;
				target.OnSelection();
				// NOTE: The only test is really that it doesn't crash. The variables set have not getters.
			}
		}