public void TestInitialize() { engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableDebugging); engine.AddHostObject("host", new ExtendedHostFunctions()); engine.AddHostObject("mscorlib", HostItemFlags.GlobalMembers, new HostTypeCollection("mscorlib")); engine.AddHostObject("ClearScriptTest", HostItemFlags.GlobalMembers, new HostTypeCollection("ClearScriptTest").GetNamespaceNode("Microsoft.ClearScript.Test")); engine.AddHostObject("testObject", testInterface = testObject = new TestObject()); engine.Execute("var testInterface = host.cast(IExplicitBaseTestInterface, testObject)"); }
public void TestCleanup() { testInterface = null; engine.Dispose(); BaseTestCleanup(); }
public void TestInitialize() { engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableDebugging); engine.AddHostObject("host", new ExtendedHostFunctions()); engine.AddHostObject("mscorlib", HostItemFlags.GlobalMembers, new HostTypeCollection("mscorlib")); engine.AddHostObject("ClearScriptTest", HostItemFlags.GlobalMembers, new HostTypeCollection("ClearScriptTest").GetNamespaceNode("Microsoft.ClearScript.Test")); engine.AddHostObject("testObject", testInterface = testObject = new TestObject()); engine.Execute("var testInterface = host.cast(IExplicitBaseTestInterface, testObject)"); }
public void TestCleanup() { testInterface = null; engine.Dispose(); }
public static double ExplicitBaseInterfaceExtensionMethod <T>(this IExplicitBaseTestInterface self, string arg1, int arg2, T arg3) where T : struct { return(TestUtil.CalcTestValue(new Guid("5db749b9-bc1a-408c-a630-4c3aaa177a26"), self, arg1.Length, arg2, arg3.ToString().Length)); }
public static double ExplicitBaseInterfaceExtensionMethod(this IExplicitBaseTestInterface self, string arg1, int arg2) { return(TestUtil.CalcTestValue(new Guid("7cc1fa3e-6193-4914-9e0e-cff8a84e9beb"), self, arg1.Length, arg2)); }
public static double ExplicitBaseInterfaceExtensionBindTestMethod <T>(this IExplicitBaseTestInterface self, T arg) { return(TestUtil.CalcTestValue(new Guid("a6815002-5517-43c3-94bc-282d53c32cb3"), self, typeof(T), arg)); }
public static double ExplicitBaseInterfaceExtensionMethod <T>(this IExplicitBaseTestInterface self, int arg) where T : struct { return(TestUtil.CalcTestValue(new Guid("ee25eedb-4a80-4db6-9c5e-5fe79178b9be"), self, typeof(T).Name.Length, arg)); }