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