/// <summary> /// Displays a popup to get text input from the user /// </summary> /// <param name="prompt">Prompt message</param> /// <param name="initialValue">Initial value of the text input box</param> /// <param name="OnValueEnteredHandler">Event handler for the value entered event</param> private void ShowTextInputPopup(string prompt, string initialValue, TextInputDialog.OnValueEntered OnValueEnteredHandler) { TextInputDialog popup = new TextInputDialog(prompt); popup.TextValue = initialValue; popup.ValueEntered += OnValueEnteredHandler; m_openPopups.Add(popup); popup.Show(); }
public void TextValueTest() { TextInputDialog target = new TextInputDialog(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.TextValue = expected; actual = target.TextValue; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void TextInputDialogConstructorTest() { TextInputDialog target = new TextInputDialog(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void TextInputDialogConstructorTest1() { string prompt = string.Empty; // TODO: Initialize to an appropriate value TextInputDialog target = new TextInputDialog(prompt); Assert.Inconclusive("TODO: Implement code to verify target"); }