Exemplo n.º 1
0
        public void AnimatablePropertyRegistrationConstructorWithPropertyValue()
        {
            tlog.Debug(tag, $"AnimatablePropertyRegistrationConstructorWithPropertyValue START");

            var ani = new Animatable();

            Assert.IsNotNull(ani, "should be not null");
            Assert.IsInstanceOf <Animatable>(ani, "should be an instance of TypeRegistration!");

            var registered = new TypeRegistration((global::System.IntPtr)ani.SwigCPtr, false);

            Assert.IsNotNull(registered, "should be not null");
            Assert.IsInstanceOf <TypeRegistration>(registered, "should be an instance of TypeRegistration!");

            var testingTarget = new AnimatablePropertyRegistration(registered, "Animatable", 28000000, new PropertyValue(1));

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AnimatablePropertyRegistration>(testingTarget, "should be an instance of testing target class!");

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