Exemple #1
0
        public void When_SingleUnicodeString()
        {
            var param = new When_SingleStringParams()
            {
                MyString = "This is 🤣 🎉"
            };

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

            Assert.AreEqual(param.MyString, ret.Value);
        }
Exemple #2
0
        public void When_NullString()
        {
            var param = new When_SingleStringParams()
            {
                MyString = null
            };

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

            Assert.AreEqual("true", ret.Value);
        }
Exemple #3
0
        public void When_SingleString()
        {
            var param = new When_SingleStringParams()
            {
                MyString = "This is 42"
            };

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

            Assert.AreEqual(param.MyString, ret.Value);
        }