Пример #1
0
        public void NestedInstanceSplitInterpreterQualifiedName()
        {
            var interpreter1 = MultiHostNullNull();
            var interpreter2 = MultiHostNullNull();

            try {
                var apl1 = new AplGroup003.NestedClassQualifiedName(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.NestedClassQualifiedName(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();
            }
        }
Пример #2
0
        public void NestedInstanceSingleInterpreterQualifiedName()
        {
            var interpreter = MultiHostNullNull();

            try {
                var apl = new AplGroup003.NestedClassQualifiedName(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();
            }
        }