public void TouchPointContainerEnumeratorCurrentWithNullCurrentObject() { tlog.Debug(tag, $"TouchPointContainerEnumeratorCurrentWithNullCurrentObject START"); using (TouchPointContainer container = TouchPointContainer.Repeat(new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), 2)) { var testingTarget = container.GetEnumerator(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer.TouchPointContainerEnumerator>(testingTarget, "Should be an Instance of TouchPointContainerEnumerator!"); try { testingTarget.MoveNext(); testingTarget.MoveNext(); testingTarget.MoveNext(); var result = testingTarget.Current; } catch (InvalidOperationException e) { tlog.Debug(tag, e.Message.ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerEnumeratorCurrentWithNullCurrentObject END (OK)"); Assert.Pass("Caught InvalidOperationException : Passed!"); } } }
public void TouchPointContainerEnumeratorReset() { tlog.Debug(tag, $"TouchPointContainerEnumeratorReset START"); using (TouchPointContainer container = TouchPointContainer.Repeat(new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), 2)) { var testingTarget = container.GetEnumerator(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer.TouchPointContainerEnumerator>(testingTarget, "Should be an Instance of TouchPointContainerEnumerator!"); try { testingTarget.Reset(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"TouchPointContainerEnumeratorReset END (OK)"); }
/// <since_tizen> 3 </since_tizen> public TouchPointContainerEnumerator(TouchPointContainer collection) { collectionRef = collection; currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
public TouchPointContainer(TouchPointContainer other) : this(Interop.TouchPointContainer.new_TouchPointContainer__SWIG_1(TouchPointContainer.getCPtr(other)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public void TouchPointContainerSetRange() { tlog.Debug(tag, $"TouchPointContainerSetRange START"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; global::System.Collections.ICollection c = arr; var testingTarget = new TouchPointContainer(c); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); try { using (TouchPointContainer container = new TouchPointContainer(30)) { testingTarget.SetRange(0, container); } } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"TouchPointContainerSetRange END (OK)"); }
public void SetRange(int index, TouchPointContainer values) { Interop.TouchPointContainer.TouchPointContainer_SetRange(swigCPtr, index, TouchPointContainer.getCPtr(values)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public void AddRange(TouchPointContainer values) { NDalicPINVOKE.TouchPointContainer_AddRange(swigCPtr, TouchPointContainer.getCPtr(values)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public TouchPointContainer GetRange(int index, int count) { global::System.IntPtr cPtr = Interop.TouchPointContainer.TouchPointContainer_GetRange(swigCPtr, index, count); TouchPointContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new TouchPointContainer(cPtr, true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static TouchPointContainer Repeat(TouchPoint value, int count) { global::System.IntPtr cPtr = Interop.TouchPointContainer.TouchPointContainer_Repeat(TouchPoint.getCPtr(value), count); TouchPointContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new TouchPointContainer(cPtr, true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void TouchPointContainerConstructor() { tlog.Debug(tag, $"TouchPointContainerConstructor START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerConstructor END (OK)"); }
public void TouchPointContainerRepeat() { tlog.Debug(tag, $"TouchPointContainerRepeat START"); try { TouchPointContainer.Repeat(new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), 2); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"TouchPointContainerRepeat END (OK)"); }
public void TouchPointContainerIsSynchronized() { tlog.Debug(tag, $"TouchPointContainerIsSynchronized START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); var result = testingTarget.IsSynchronized; tlog.Debug(tag, "IsSynchronized : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerIsSynchronized END (OK)"); }
public void TouchPointContainerConstructorWithTouchPointContainer() { tlog.Debug(tag, $"TouchPointContainerConstructorWithTouchPointContainer START"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; global::System.Collections.ICollection c = arr; using (TouchPointContainer container = new TouchPointContainer(c)) { var testingTarget = new TouchPointContainer(container); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); } tlog.Debug(tag, $"TouchPointContainerConstructorWithTouchPointContainer END (OK)"); }
public void TouchPointContainerCapacity() { tlog.Debug(tag, $"TouchPointContainerCapacity START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); testingTarget.Capacity = 100; var result = testingTarget.Capacity; tlog.Debug(tag, "Capacity : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerCapacity END (OK)"); }
public void TouchPointContainerConstructorWithNullICollection() { tlog.Debug(tag, $"TouchPointContainerConstructorWithNullICollection START"); ICollection c = null; try { var testingTarget = new TouchPointContainer(c); } catch (ArgumentNullException e) { tlog.Debug(tag, e.Message.ToString()); tlog.Debug(tag, $"TouchPointContainerConstructorWithNullICollection END (OK)"); Assert.Pass("Caught ArgumentNullException : Passed!"); } }
public void TouchPointContainerEnumeratorMoveNext() { tlog.Debug(tag, $"TouchPointContainerEnumeratorMoveNext START"); using (TouchPointContainer container = TouchPointContainer.Repeat(new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), 2)) { var testingTarget = container.GetEnumerator(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer.TouchPointContainerEnumerator>(testingTarget, "Should be an Instance of TouchPointContainerEnumerator!"); var result = testingTarget.MoveNext(); tlog.Debug(tag, "Current : " + result); testingTarget.Dispose(); } tlog.Debug(tag, $"TouchPointContainerEnumeratorMoveNext END (OK)"); }
public void TouchPointContainerGetEnumerator() { tlog.Debug(tag, $"TouchPointContainerGetEnumerator START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; testingTarget.CopyTo(arr); var result = testingTarget.GetEnumerator(); tlog.Debug(tag, "Enumerator : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerGetEnumerator END (OK)"); }
public void TouchPointContainerConstructorWithICollection() { tlog.Debug(tag, $"TouchPointContainerConstructorWithICollection START"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; global::System.Collections.ICollection c = arr; try { var testingTarget = new TouchPointContainer(c); tlog.Debug(tag, "Count : " + testingTarget.Count); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"TouchPointContainerConstructorWithICollection END (OK)"); }
public void TouchPointContainerGetRange() { tlog.Debug(tag, $"TouchPointContainerGetRange START"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; global::System.Collections.ICollection c = arr; var testingTarget = new TouchPointContainer(c); try { testingTarget.GetRange(0, 1); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"TouchPointContainerAddRange END (OK)"); }
public void TouchPointContainerAddRange() { tlog.Debug(tag, $"TouchPointContainerAddRange START"); using (TouchPointContainer container = new TouchPointContainer()) { using (TouchPointContainer values = new TouchPointContainer(10)) { try { container.AddRange(values); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } } tlog.Debug(tag, $"TouchPointContainerAddRange END (OK)"); }
public void TouchPointContainerCopyToWithNullArray() { tlog.Debug(tag, $"TouchPointContainerCopyToWithNullArray START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); TouchPoint[] arr = null; try { testingTarget.CopyTo(arr); } catch (ArgumentNullException e) { tlog.Debug(tag, e.Message.ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerCopyToWithNullArray END (OK)"); Assert.Pass("Caught ArgumentNullException : Passed!"); } }
public void TouchPointContainerCopyToWithArrayIndexLessThan0() { tlog.Debug(tag, $"TouchPointContainerCopyToWithArrayIndexLessThan0 START"); var testingTarget = new TouchPointContainer(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); TouchPoint[] arr = new TouchPoint[] { new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), new TouchPoint(2, TouchPoint.StateType.Last, 100.0f, 100.0f) }; try { testingTarget.CopyTo(arr, -2); } catch (ArgumentOutOfRangeException e) { tlog.Debug(tag, e.Message.ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"TouchPointContainerCopyToWithArrayIndexLessThan0 END (OK)"); Assert.Pass("Caught ArgumentOutOfRangeException : Passed!"); } }
public void TouchPointContainerClear() { tlog.Debug(tag, $"TouchPointContainerClear START"); var testingTarget = TouchPointContainer.Repeat(new TouchPoint(1, TouchPoint.StateType.Started, 0.0f, 0.0f), 2); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchPointContainer>(testingTarget, "Should be an Instance of TouchPointContainer!"); testingTarget.Capacity = 5; try { testingTarget.Clear(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"TouchPointContainerClear END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TouchPointContainer obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }