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. }
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. } }