예제 #1
0
 public CustomActor(CustomActorImpl implementation) : this(Interop.CustomActorImpl.NewCustomActor(CustomActorImpl.getCPtr(implementation)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
        public CustomActorImpl GetImplementation()
        {
            CustomActorImpl ret = new CustomActorImpl(Interop.CustomActorImpl.CustomActorGetImplementation(SwigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #3
0
        public void CustomActorImplConstructor()
        {
            tlog.Debug(tag, $"CustomActorImplConstructor START");

            var testingTarget = new CustomActorImpl(actor.SwigCPtr.Handle, false);

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomActorImplConstructor END (OK)");
        }
예제 #4
0
        public void CustomActorImplIsRelayoutEnabled()
        {
            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled START");

            var testingTarget = new CustomActorImpl(actor.SwigCPtr.Handle, false);

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

            var result = testingTarget.IsRelayoutEnabled();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled END (OK)");
        }
예제 #5
0
        public void CustomActorImplIsRelayoutEnabled()
        {
            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled START");

            using (View view = new View())
            {
                var testingTarget = NDalic.GetImplementation(view);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!");

                tlog.Debug(tag, "getCPtr : " + CustomActorImpl.getCPtr(testingTarget));

                var result = testingTarget.IsRelayoutEnabled();
                tlog.Debug(tag, "IsRelayoutEnabled : " + result);

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled END (OK)");
        }