public void Test_DblInput() { double val = 0.0; ModalFormHandler = InputBox_btnAccept_DblHandler; GKInputBox.QueryDouble("caption", "prompt", out val); Assert.AreEqual(15.59, val); }
public void Test_PwInput() { string strValue = ""; ModalFormHandler = InputBox_btnAccept_StrHandler; GKInputBox.QueryPassword("caption", "prompt", ref strValue); Assert.AreEqual("input", strValue); }
public void Test_IntInput() { int intValue = 0; ModalFormHandler = InputBox_btnAccept_IntHandler; GKInputBox.QueryInt("caption", "prompt", out intValue); Assert.AreEqual(123, intValue); }
public bool GetPassword(string prompt, ref string value) { bool res = GKInputBox.QueryPassword(GKData.APP_TITLE, prompt, ref value); return(res && !string.IsNullOrEmpty(value)); }
public bool GetInput(object owner, string prompt, ref string value) { bool res = GKInputBox.QueryText(owner, GKData.APP_TITLE, prompt, ref value); return(res && !string.IsNullOrEmpty(value)); }