Пример #1
0
 public StringValuePair(StringValuePair p) : this(Interop.StringValuePair.new_StringValuePair__SWIG_2(StringValuePair.getCPtr(p)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
        public void StringValuePairConstructorWithString()
        {
            tlog.Debug(tag, $"StringValuePairConstructorWithString START");

            var testingTarget = new StringValuePair("opacity", new PropertyValue(0.3f));

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

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

            var testingTarget = new StringValuePair();

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

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

            using (StringValuePair pair = new StringValuePair("opacity", new PropertyValue(0.3f)))
            {
                var testingTarget = new StringValuePair(pair);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <StringValuePair>(testingTarget, "Should be an Instance of TouchPoint!");

                testingTarget.first = "direction";
                Assert.AreEqual("direction", testingTarget.first, "Should be equal!");

                testingTarget.Dispose();
            }

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

            using (StringValuePair pair = new StringValuePair("opacity", new PropertyValue(0.3f)))
            {
                var testingTarget = new StringValuePair(pair);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <StringValuePair>(testingTarget, "Should be an Instance of TouchPoint!");

                testingTarget.second = new PropertyValue("vertical");
                PropertyValue value  = testingTarget.second;
                string        result = "";
                value.Get(out result);
                Assert.AreEqual("vertical", result, "Should be equal!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"StringValuePairConstructorSecond END (OK)");
        }
Пример #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StringValuePair obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }