public void NestedInstanceSplitInterpreterSimpleName() { var interpreter1 = MultiHostNullNull(); var interpreter2 = MultiHostNullNull(); try { var apl1 = new AplGroup003.NestedClassSimpleName(1, interpreter1); Assert.AreEqual(1, apl1.ID()); Assert.AreEqual(1, apl1.ThisID()); apl1.Init(); Assert.AreEqual(2, apl1.ID()); Assert.AreEqual(2, apl1.NestedID()); Assert.AreEqual(2, apl1.ThisID()); var apl2 = new AplGroup003.NestedClassSimpleName(11, interpreter2); Assert.AreEqual(11, apl2.ID()); Assert.AreEqual(11, apl2.ThisID()); apl2.Init(); Assert.AreEqual(12, apl2.ID()); Assert.AreEqual(12, apl2.NestedID()); Assert.AreEqual(12, apl2.ThisID()); } finally { interpreter1.Unload(); interpreter2.Unload(); } }
public void NestedInstanceSingleInterpreterSimpleName() { var interpreter = MultiHostNullNull(); try { var apl = new AplGroup003.NestedClassSimpleName(1, interpreter); Assert.AreEqual(1, apl.ID()); Assert.AreEqual(1, apl.ThisID()); apl.Init(); Assert.AreEqual(2, apl.ID()); Assert.AreEqual(2, apl.NestedID()); Assert.AreEqual(2, apl.ThisID()); } finally { interpreter.Unload(); } }
public void NestedInstanceSingleHost() { var interpreter = new DyalogInterpreter(".\\dyalog180_64_unicode.dll", null) { SingleThreaded = true, DeleteOnUnload = true }; try { var apl = new AplGroup003.NestedClassSimpleName(1, interpreter); Assert.AreEqual(1, apl.ID()); Assert.AreEqual(1, apl.ThisID()); apl.Init(); Assert.AreEqual(2, apl.ID()); Assert.AreEqual(2, apl.NestedID()); Assert.AreEqual(2, apl.ThisID()); } finally { interpreter.Unload(); } }