In the middle of another refactoroing

This commit is contained in:
Tig
2024-10-05 12:43:09 -06:00
parent 3649a047f2
commit af110d92d0
103 changed files with 582 additions and 487 deletions

View File

@@ -1058,18 +1058,18 @@ public class DialogTests
Button btn3 = null;
string expected = null;
btn1.Accept += (s, e) =>
btn1.Accepted += (s, e) =>
{
btn2 = new () { Text = "Show Sub" };
btn3 = new () { Text = "Close" };
btn3.Accept += (s, e) => RequestStop ();
btn3.Accepted += (s, e) => RequestStop ();
btn2.Accept += (s, e) =>
btn2.Accepted += (s, e) =>
{
// Don't test MessageBox in Dialog unit tests!
var subBtn = new Button { Text = "Ok", IsDefault = true };
var subDlg = new Dialog { Text = "ya", Width = 20, Height = 5, Buttons = [subBtn] };
subBtn.Accept += (s, e) => RequestStop (subDlg);
subBtn.Accepted += (s, e) => RequestStop (subDlg);
Run (subDlg);
};

View File

@@ -37,7 +37,7 @@ public class MessageBoxTests
Button btn = Application.Navigation!.GetFocused () as Button;
btn.Accept += (sender, e) => { btnAcceptCount++; };
btn.Accepted += (sender, e) => { btnAcceptCount++; };
// Click
Application.OnKeyDown (Key.Enter);
@@ -120,7 +120,7 @@ public class MessageBoxTests
Button btn = Application.Navigation!.GetFocused () as Button;
btn.Accept += (sender, e) => { btnAcceptCount++; };
btn.Accepted += (sender, e) => { btnAcceptCount++; };
Application.OnKeyDown (Key.Space);