mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Accepted->Accepting
This commit is contained in:
@@ -1058,18 +1058,18 @@ public class DialogTests
|
||||
Button btn3 = null;
|
||||
string expected = null;
|
||||
|
||||
btn1.Accepted += (s, e) =>
|
||||
btn1.Accepting += (s, e) =>
|
||||
{
|
||||
btn2 = new () { Text = "Show Sub" };
|
||||
btn3 = new () { Text = "Close" };
|
||||
btn3.Accepted += (s, e) => RequestStop ();
|
||||
btn3.Accepting += (s, e) => RequestStop ();
|
||||
|
||||
btn2.Accepted += (s, e) =>
|
||||
btn2.Accepting += (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.Accepted += (s, e) => RequestStop (subDlg);
|
||||
subBtn.Accepting += (s, e) => RequestStop (subDlg);
|
||||
Run (subDlg);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user