public void TouchGetHitView() { tlog.Debug(tag, $"TouchGetHitView START"); Touch a1 = new Touch(); View b1 = a1.GetHitView(2); a1.Dispose(); tlog.Debug(tag, $"TouchGetHitView END (OK)"); Assert.Pass("TouchGetHitView"); }
public void TouchGetHitView() { tlog.Debug(tag, $"TouchGetHitView START"); var testingTarget = new Touch(); Assert.IsNotNull(testingTarget, "Can't create success object Touch"); Assert.IsInstanceOf <Touch>(testingTarget, "Should be an instance of Touch type."); try { testingTarget.GetHitView(0); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"TouchGetHitView END (OK)"); Assert.Pass("Caught Exception : Passed!"); } }