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