コード例 #1
0
ファイル: ushortp.cs プロジェクト: yl33/TizenFX
        internal static ushortp frompointer(SWIGTYPE_p_unsigned_short t)
        {
            global::System.IntPtr cPtr = NDalicPINVOKE.ushortp_frompointer(SWIGTYPE_p_unsigned_short.getCPtr(t));
            ushortp ret = (cPtr == global::System.IntPtr.Zero) ? null : new ushortp(cPtr, false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
        public void ushortpConstructor()
        {
            tlog.Debug(tag, $"ushortpConstructor START");

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ushortpConstructor END (OK)");
        }
コード例 #3
0
        public void ushortpFrompointer()
        {
            tlog.Debug(tag, $"ushortpFrompointer START");

            using (ushortp data = new ushortp())
            {
                var testingTarget = ushortp.frompointer(data.cast());
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"ushortpFrompointer END (OK)");
        }
コード例 #4
0
        public void ushortpValue()
        {
            tlog.Debug(tag, $"ushortpValue START");

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

            var result = testingTarget.value();

            tlog.Debug(tag, "value : " + result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"ushortpValue END (OK)");
        }
コード例 #5
0
        public void ushortpAssign()
        {
            tlog.Debug(tag, $"ushortpAssign START");

            var testingTarget = new ushortp();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!");

            try
            {
                testingTarget.assign(1);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"ushortpAssign END (OK)");
        }
コード例 #6
0
ファイル: ushortp.cs プロジェクト: yl33/TizenFX
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ushortp obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }