Exemplo n.º 1
0
        public static doublep frompointer(SWIGTYPE_p_double t)
        {
            global::System.IntPtr cPtr = Interop.doublep.frompointer(SWIGTYPE_p_double.getCPtr(t));
            doublep ret = (cPtr == global::System.IntPtr.Zero) ? null : new doublep(cPtr, false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 2
0
        public void doublepConstructor()
        {
            tlog.Debug(tag, $"doublepConstructor START");

            var testingTarget = new doublep();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"doublepConstructor END (OK)");
        }
Exemplo n.º 3
0
        public void doublepValue()
        {
            tlog.Debug(tag, $"doublepValue START");

            var testingTarget = new doublep();

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

            var result = testingTarget.value();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"doublepValue END (OK)");
        }
Exemplo n.º 4
0
        public void doublepFrompointer()
        {
            tlog.Debug(tag, $"doublepFrompointer START");

            var testingTarget = new doublep();

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

            var result = doublep.frompointer(new SWIGTYPE_p_double(testingTarget.SwigCPtr.Handle));

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"doublepFrompointer END (OK)");
        }
Exemplo n.º 5
0
        public void doublepAssign()
        {
            tlog.Debug(tag, $"doublepAssign START");

            var testingTarget = new doublep();

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

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"doublepAssign END (OK)");
        }
Exemplo n.º 6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(doublep obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }