public void TestRegisterEcellSession() { JobManager manager = new JobManager(_env); LocalJob.ClearJobID(); JobGroup g = manager.CreateJobGroup("AAAAA", new List<EcellObject>(), new List<Ecell.Objects.EcellObject>()); string script = null; string arg = null; List<string> extFile = null; int expectedInt32 = 1; int resultInt32 = 0; resultInt32 = manager.RegisterEcellSession(g.GroupName, script, arg, extFile); Assert.AreEqual(expectedInt32, resultInt32, "RegisterEcellSession method returned unexpected result."); manager.Proxy = null; expectedInt32 = -1; resultInt32 = manager.RegisterEcellSession(g.GroupName, script, arg, extFile); Assert.AreEqual(expectedInt32, resultInt32, "RegisterEcellSession method returned unexpected result."); }