public void InputMethodOptionsApplyProperty() { tlog.Debug(tag, $"InputMethodOptionsApplyProperty START"); var testingTarget = new InputMethodOptions(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <InputMethodOptions>(testingTarget, "should be an instance of InputMethodOptions class!"); using (PropertyMap settings = new PropertyMap()) { settings.Add("IsTextPredictionAllowed", new PropertyValue(false)); try { testingTarget.ApplyProperty(settings); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); tlog.Debug(tag, $"InputMethodOptionsApplyProperty END (OK)"); }
public bool CompareAndSet(InputMethod.CategoryType type, InputMethodOptions options, SWIGTYPE_p_int index) { bool ret = Interop.InputMethodOptions.InputMethodOptions_CompareAndSet(swigCPtr, (int)type, InputMethodOptions.getCPtr(options), SWIGTYPE_p_int.getCPtr(index)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void InputMethodOptionsConstructor() { tlog.Debug(tag, $"InputMethodOptionsConstructor START"); var testingTarget = new InputMethodOptions(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <InputMethodOptions>(testingTarget, "should be an instance of InputMethodOptions class!"); testingTarget.Dispose(); tlog.Debug(tag, $"InputMethodOptionsConstructor END (OK)"); }
public void InputMethodContextApplyOptions() { tlog.Debug(tag, $"InputMethodContextApplyOptions START"); InputMethodContext a1 = new InputMethodContext(); InputMethodOptions option = new InputMethodOptions(); a1.ApplyOptions(option); a1.Dispose(); tlog.Debug(tag, $"InputMethodContextApplyOptions END (OK)"); Assert.Pass("InputMethodContextApplyOptions"); }
public void InputMethodOptionsIsPassword() { tlog.Debug(tag, $"InputMethodOptionsIsPassword START"); var testingTarget = new InputMethodOptions(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <InputMethodOptions>(testingTarget, "should be an instance of InputMethodOptions class!"); tlog.Debug(tag, testingTarget.IsPassword().ToString()); testingTarget.Dispose(); tlog.Debug(tag, $"InputMethodOptionsIsPassword END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputMethodOptions obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }