Esempio n. 1
0
        public void AddTask_RetrieveIt()
        {
            // setup
            var pManager = new PluginManagerStub();

            MindMate.Plugins.Tasks.TaskPlugin taskPlugin = new MindMate.Plugins.Tasks.TaskPlugin();
            taskPlugin.Initialize(pManager);
            taskPlugin.OnApplicationReady();

            MapTree tree = new MapTree();
            new MapNode(tree, "Center");
            tree.TurnOnChangeManager();
            taskPlugin.OnCreatingTree(tree);

            tree.RootNode.AddTask(DateTime.Now);

            // test
            Assert.IsNotNull(taskPlugin.TaskListView.FindTaskView(tree.RootNode, tree.RootNode.GetDueDate()));
        }
Esempio n. 2
0
        public void AddTask_RetrieveIt()
        {
            // setup
            var pManager = new PluginManagerStub();

            MindMate.Plugins.Tasks.TaskPlugin taskPlugin = new MindMate.Plugins.Tasks.TaskPlugin();
            taskPlugin.Initialize(pManager);
            taskPlugin.OnApplicationReady();

            MapTree tree = new MapTree();

            new MapNode(tree, "Center");
            tree.TurnOnChangeManager();
            taskPlugin.OnCreatingTree(tree);

            tree.RootNode.AddTask(DateTime.Now);

            // test
            Assert.IsNotNull(taskPlugin.TaskListView.FindTaskView(tree.RootNode, tree.RootNode.GetDueDate()));
        }