Skip to content

Commit 59188eb

Browse files
committed
Unit Test tweak
1 parent bf20e97 commit 59188eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Terminal.Gui/Application/Application.Initialization.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Terminal.Gui;
77

88
public static partial class Application // Initialization (Init/Shutdown)
99
{
10-
/// <summary>Initializes a new instance of <see cref="Terminal.Gui"/> Application.</summary>
10+
/// <summary>Initializes a new instance of a Terminal.Gui Application. <see cref="Shutdown"/> must be called when the application is closing.</summary>
1111
/// <para>Call this method once per instance (or after <see cref="Shutdown"/> has been called).</para>
1212
/// <para>
1313
/// This function loads the right <see cref="IConsoleDriver"/> for the platform, Creates a <see cref="Toplevel"/>. and

Tests/UnitTests/Dialogs/MessageBoxTests.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,10 @@ public void UICatalog_AboutBox ()
504504
}
505505

506506
[Theory]
507-
[SetupFakeDriver]
508507
[MemberData (nameof (AcceptingKeys))]
509508
public void Button_IsDefault_True_Return_His_Index_On_Accepting (Key key)
510509
{
511-
Application.Init ();
510+
Application.Init (new FakeDriver ());
512511

513512
Application.Iteration += (_, _) => Assert.True (Application.RaiseKeyDownEvent (key));
514513
int res = MessageBox.Query ("hey", "IsDefault", "Yes", "No");

0 commit comments

Comments
 (0)