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 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 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 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 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 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!"); } }