Пример #1
0
 public CustomActor(CustomActor copy) : this(Interop.CustomActorImpl.NewCustomActorConst(CustomActor.getCPtr(copy)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
        public void CustomActoAssign()
        {
            tlog.Debug(tag, $"CustomActoAssign START");

            var testingTarget = new CustomActor();

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

            using (View view = new View())
            {
                using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false))
                {
                    try
                    {
                        testingTarget.Assign(actor);
                    }
                    catch (Exception e)
                    {
                        tlog.Debug(tag, e.Message.ToString());
                        Assert.Fail("Caught Exception : Failed!");
                    }
                }
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomActoAssign END (OK)");
        }
Пример #3
0
 public CustomActor(CustomActor copy) : this(NDalicPINVOKE.new_CustomActor__SWIG_2(CustomActor.getCPtr(copy)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
        public CustomActor Assign(CustomActor rhs)
        {
            CustomActor ret = new CustomActor(Interop.CustomActorImpl.CustomActorAssign(SwigCPtr, CustomActor.getCPtr(rhs)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
        public static CustomActor DownCast(BaseHandle handle)
        {
            CustomActor ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as CustomActor;

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        public void CustomActorConstructor()
        {
            tlog.Debug(tag, $"CustomActorConstructor START");

            var testingTarget = new CustomActor();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomActorConstructor END (OK)");
        }
Пример #7
0
        public void CustomActorConstructorWithCustomActor()
        {
            tlog.Debug(tag, $"CustomActorConstructorWithCustomActor START");

            using (View view = new View())
            {
                using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false))
                {
                    var testingTarget = new CustomActor(actor);
                    Assert.IsNotNull(testingTarget, "Should be not null!");
                    Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!");

                    testingTarget.Dispose();
                }
            }

            tlog.Debug(tag, $"CustomActorConstructorWithCustomActor END (OK)");
        }
Пример #8
0
        public void CustomActorDownCast()
        {
            tlog.Debug(tag, $"CustomActorDownCast START");

            var testingTarget = new CustomActor();

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

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomActorDownCast END (OK)");
        }
Пример #9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CustomActor obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr);
 }