Ejemplo n.º 1
0
        public void DialogTest()
        {
            FlexPathwayPlugin target = new FlexPathwayPlugin();

            helpProvider = new DynamicMock(typeof(IHelpTopicProvider));
            using (UtilityDlg expected = new UtilityDlg((IHelpTopicProvider)helpProvider.MockInstance))
                target.Dialog = expected;
        }
Ejemplo n.º 2
0
        public void LabelTest()
        {
            FlexPathwayPlugin target = new FlexPathwayPlugin();
            string            actual;

            actual = target.Label;
            Assert.AreEqual("Pathway", actual);
        }
Ejemplo n.º 3
0
        public void ToStringTest()
        {
            FlexPathwayPlugin target   = new FlexPathwayPlugin();
            string            expected = "Pathway";
            string            actual;

            actual = target.ToString();
            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 4
0
        public void LoadUtilitiesTest()
        {
            FlexPathwayPlugin target = new FlexPathwayPlugin();

            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.
            }
        }
Ejemplo n.º 5
0
        public void ExportToolTest()
        {
            FlexPathwayPlugin target = new FlexPathwayPlugin();

            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);
            }
        }
Ejemplo n.º 6
0
 public void FlexDePluginConstructorTest()
 {
     FlexPathwayPlugin target = new FlexPathwayPlugin();
     // TODO: TODO: Implement code to verify target");
 }