public StringValuePair(StringValuePair p) : this(Interop.StringValuePair.new_StringValuePair__SWIG_2(StringValuePair.getCPtr(p)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
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)"); }
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)"); }
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)"); }
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)"); }
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); }