示例#1
0
        public void TestIsFinished()
        {
            JobManager manager = new JobManager(_env);

            bool expectedBoolean = true;
            bool resultBoolean = false;
            resultBoolean = manager.IsFinished(null);
            Assert.AreEqual(expectedBoolean, resultBoolean, "IsFinished method returned unexpected result.");
            JobGroup g = manager.CreateJobGroup("AAAAA", new List<EcellObject>(), new List<Ecell.Objects.EcellObject>());

            manager.CreateJobEntry(g.GroupName, new ExecuteParameter());
            foreach (Job job in manager.GetFinishedJobList())
                job.Status = JobStatus.RUNNING;

            expectedBoolean = false;
            resultBoolean = manager.IsFinished(g.GroupName);
            Assert.AreEqual(expectedBoolean, resultBoolean, "IsFinished method returned unexpected result.");
        }