Пример #1
0
        public void SetUp()
        {
            _env = new ApplicationEnvironment();
            _unitUnderTest = _env.ActionManager;

            // Load plugins
            foreach (string pluginDir in Util.GetPluginDirs())
            {
                string[] files = Directory.GetFiles(
                    pluginDir,
                    Constants.delimiterWildcard + Constants.FileExtPlugin);
                foreach (string fileName in files)
                {
                    _env.PluginManager.LoadPlugin(fileName);
                }
            }
        }
Пример #2
0
 public void TearDown()
 {
     _env = null;
     _manager = null;
 }
Пример #3
0
 public void SetUp()
 {
     _env = new ApplicationEnvironment();
     _manager = _env.ActionManager;
 }
Пример #4
0
 /// <summary>
 /// Constructors
 /// </summary>
 public ApplicationEnvironment()
 {
     m_dManager = new DataManager(this);
     m_lManager = new LogManager(this);
     m_gManager = new LoggerManager(this);
     m_pManager = new PluginManager(this);
     m_aManager = new ActionManager(this);
     m_jManager = new JobManager(this);
     m_rManager = new ReportManager(this);
     m_cManager = new CommandManager(this);
     m_console = new ConsoleManager(this);
     m_dmManager = new DMDescriptorKeeper(Util.GetDMDirs());
 }
Пример #5
0
 public void TearDown()
 {
     _env = null;
     _unitUnderTest = null;
 }
Пример #6
0
 public void TestConstructorActionManager()
 {
     ActionManager testActionManager = new ActionManager(_env);
     Assert.IsNotNull(testActionManager, "Constructor of type, ActionManager failed to create instance.");
     Assert.AreEqual(0, testActionManager.Count, "Count is unexpected value.");
     Assert.AreEqual(false, testActionManager.IsLoadAction, "IsLoadAction is unexpected value.");
     Assert.AreEqual(false, testActionManager.Redoable, "Redoable is unexpected value.");
     Assert.AreEqual(false, testActionManager.Undoable, "Undoable is unexpected value.");
     Assert.AreEqual(UndoStatus.NOTHING, testActionManager.UndoStatus, "UndoStatus is unexpected value.");
 }