Ejemplo n.º 1
0
        public void When_IntPtr_Zero()
        {
            var param = new When_IntPtrParams()
            {
                Id = (IntPtr)0
            };

            var ret = TSInteropMarshaller.InvokeJS <When_IntPtrParams, GenericReturn>("TSBindingsUnitTests:When_IntPtr_Zero", param);

            Assert.AreEqual("0", ret.Value);
        }
Ejemplo n.º 2
0
        public void When_IntPtr()
        {
            var param = new When_IntPtrParams()
            {
                Id = (IntPtr)42
            };

            var ret = (GenericReturn)TSInteropMarshaller.InvokeJS("TSBindingsUnitTests:When_IntPtr", param, typeof(GenericReturn));

            Assert.AreEqual("42", ret.Value);
        }