mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Add TextChangedEventArgs (correctly this time)
This commit is contained in:
@@ -681,8 +681,8 @@ namespace Terminal.Gui.ViewTests {
|
||||
[TextFieldTestsAutoInitShutdown]
|
||||
public void TextChanged_Event ()
|
||||
{
|
||||
_textField.TextChanged += (e) => {
|
||||
Assert.Equal ("TAB to jump between text fields.", e);
|
||||
_textField.TextChanged += (s,e) => {
|
||||
Assert.Equal ("TAB to jump between text fields.", e.OldValue);
|
||||
};
|
||||
|
||||
_textField.Text = "changed";
|
||||
@@ -1138,7 +1138,7 @@ namespace Terminal.Gui.ViewTests {
|
||||
var tf = new TextField () { Width = 10, Text = "-1" };
|
||||
|
||||
tf.TextChanging += (s,e) => newText = e.NewText.ToString ();
|
||||
tf.TextChanged += (e) => oldText = e.ToString ();
|
||||
tf.TextChanged += (s, e) => oldText = e.OldValue.ToString ();
|
||||
|
||||
Application.Top.Add (tf);
|
||||
Application.Begin (Application.Top);
|
||||
|
||||
Reference in New Issue
Block a user