public void RulerClampWithScale() { tlog.Debug(tag, $"RulerClampWithScale START"); using (DefaultRuler ruler = new DefaultRuler()) { var testingTarget = new Ruler(ruler.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Can't create success object Ruler."); Assert.IsInstanceOf <Ruler>(testingTarget, "Should return Ruler instance."); try { var result = testingTarget.Clamp(10.0f, 50.0f, 40.0f); tlog.Debug(tag, "Clamp : " + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"RulerClampWithScale END (OK)"); }
public void RulerClampWithClampState() { tlog.Debug(tag, $"RulerClampWithClampState START"); DefaultRuler ruler = new DefaultRuler(); var testingTarget = new Ruler(ruler.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Can't create success object Ruler."); Assert.IsInstanceOf <Ruler>(testingTarget, "Should return Ruler instance."); var result = testingTarget.Clamp(10.0f, 50.0f, 40.0f, new SWIGTYPE_p_Dali__Toolkit__ClampState(ruler.SwigCPtr.Handle)); tlog.Debug(tag, "Clamp : " + result); ruler.Disable(); testingTarget.Dispose(); tlog.Debug(tag, $"RulerClampWithClampState END (OK)"); }