Exemple #1
0
        public static void TestUseCase()
        {
            var a = new Bridge635A();
            var b = new Bridge635B();

            Assert.AreEqual(Script.TypeOf(a["internalFunc1"]), "function", "Bridge635 A.internalFunc1");
            Assert.AreEqual(Script.Get <Func <string> >(a, "internalFunc1")(), "A.Test1", "Bridge635 A.internalFunc1 Invoke");

            Assert.AreEqual(Script.TypeOf(b["internalFunc1"]), "function", "Bridge635 B.internalFunc1");
            Assert.AreEqual(Script.Get <Func <string> >(b, "internalFunc1")(), "B.Test1", "Bridge635 B.internalFunc1 Invoke");
        }
Exemple #2
0
        public static void TestUseCase()
        {
            var a = new Bridge635A();
            var b = new Bridge635B();

            Assert.AreEqual(Script.TypeOf(a["internalFunc1"]), "function", "Bridge635 A.internalFunc1");
            Assert.AreEqual(Script.Get<Func<string>>(a, "internalFunc1")(), "A.Test1", "Bridge635 A.internalFunc1 Invoke");

            Assert.AreEqual(Script.TypeOf(b["internalFunc1"]), "function", "Bridge635 B.internalFunc1");
            Assert.AreEqual(Script.Get<Func<string>>(b, "internalFunc1")(), "B.Test1", "Bridge635 B.internalFunc1 Invoke");
        }