public void TouchGetMouseButton() { tlog.Debug(tag, $"TouchGetMouseButton START"); Touch a1 = new Touch(); MouseButton b1 = a1.GetMouseButton(2); a1.Dispose(); tlog.Debug(tag, $"TouchGetMouseButton END (OK)"); Assert.Pass("TouchGetMouseButton"); }
public void TouchGetMouseButton() { tlog.Debug(tag, $"TouchGetMouseButton 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.GetMouseButton(0); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"TouchGetMouseButton END (OK)"); Assert.Pass("Caught Exception : Passed!"); } }