public void Adding_various_characters_to_TextInput() { TextInput input = new TextInput(); input.Add('1'); input.Add('a'); input.Add('0'); Assert.Equal("1a0", input.GetValue()); }
public static void Main(string[] args) { //TextInput input = new NumericInput(); TextInput input = new TextInput(); input.Add('1'); input.Add('a'); input.Add('0'); Console.WriteLine(input.GetValue()); }
public void AddTestTextInput() { TextInput input = new TextInput(); input.Add('1'); input.Add('m'); input.Add('0'); input.Add('!'); Assert.AreEqual("1m0!", input.GetValue()); }
public void TextInputTest() { TextInput input = new TextInput(); input.Add('1'); input.Add('a'); input.Add('0'); input.Add(' '); Assert.AreEqual(input.GetValue(), "1a0 "); }
public void TextInput_accepts_all_characters(string expected, params char[] values) { var input = new TextInput(); foreach (var value in values) { input.Add(value); } var result = input.GetValue(); Assert.Equal(expected, result); }
protected override void _TextInput(object sender, TextInputEventArgs e) { textInput.Add(e); }