예제 #1
0
        public static floatp frompointer(SWIGTYPE_p_float t)
        {
            global::System.IntPtr cPtr = Interop.floatp.frompointer(SWIGTYPE_p_float.getCPtr(t));
            floatp ret = (cPtr == global::System.IntPtr.Zero) ? null : new floatp(cPtr, false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #2
0
파일: TSFloatp.cs 프로젝트: wonrst/TizenFX
        public void FloatpConstructor()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
예제 #3
0
파일: TSFloatp.cs 프로젝트: wonrst/TizenFX
        public void FloatpAssign()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
예제 #4
0
파일: TSFloatp.cs 프로젝트: wonrst/TizenFX
        public void FloatpValue()
        {
            tlog.Debug(tag, $"FloatpValue START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

            try
            {
                var result = testingTarget.value();
                tlog.Debug(tag, "value : " + result);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpValue END (OK)");
        }
예제 #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(floatp obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }