mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Change Action to EventHandler for more events
This commit is contained in:
@@ -107,7 +107,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
string expectedDuring = null;
|
||||
string expectedAfter = null;
|
||||
bool cancel = false;
|
||||
r.TitleChanging += (args) => {
|
||||
r.TitleChanging += (s, args) => {
|
||||
Assert.Equal (expectedOld, args.OldTitle);
|
||||
Assert.Equal (expectedDuring, args.NewTitle);
|
||||
args.Cancel = cancel;
|
||||
@@ -138,7 +138,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
string expectedOld = null;
|
||||
string expected = null;
|
||||
r.TitleChanged += (args) => {
|
||||
r.TitleChanged += (s,args) => {
|
||||
Assert.Equal (expectedOld, args.OldTitle);
|
||||
Assert.Equal (r.Title, args.NewTitle);
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
string expectedAfter = string.Empty;
|
||||
string expectedDuring = string.Empty;
|
||||
bool cancel = false;
|
||||
r.TitleChanging += (args) => {
|
||||
r.TitleChanging += (s,args) => {
|
||||
Assert.Equal (expectedDuring, args.NewTitle);
|
||||
args.Cancel = cancel;
|
||||
};
|
||||
@@ -73,7 +73,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.Equal (ustring.Empty, r.Title);
|
||||
|
||||
string expected = string.Empty;
|
||||
r.TitleChanged += (args) => {
|
||||
r.TitleChanged += (s,args) => {
|
||||
Assert.Equal (r.Title, args.NewTitle);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user