public void RulerDisable() { tlog.Debug(tag, $"RulerDisable 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 { testingTarget.Disable(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"RulerDisable END (OK)"); }