View.Hierarchy.cs -> nullable enable

This commit is contained in:
Tig
2024-08-26 14:18:01 -07:00
parent 1a16f43495
commit 45ccf1d5d5
8 changed files with 26 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class AddRemoveNavigationTests (ITestOutputHelper _output) : TestsAllViews
public class AddRemoveNavigationTests () : TestsAllViews
{
[Fact]
public void Add_First_Subview_Gets_Focus ()
@@ -199,7 +199,7 @@ public class AddRemoveNavigationTests (ITestOutputHelper _output) : TestsAllView
top.Remove (subView);
Assert.True (top.HasFocus);
Assert.Equal (null, top.Focused);
Assert.Null (top.Focused);
Assert.False (subView.HasFocus);
}

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class AdvanceFocusTests (ITestOutputHelper _output)
public class AdvanceFocusTests ()
{
[Fact]
public void AdvanceFocus_CanFocus_Mixed ()

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class CanFocusTests (ITestOutputHelper _output) : TestsAllViews
public class CanFocusTests () : TestsAllViews
{
[Fact]
public void CanFocus_False_Prevents_SubSubView_HasFocus ()

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class HasFocusChangeEventTests (ITestOutputHelper _output) : TestsAllViews
public class HasFocusChangeEventTests () : TestsAllViews
{
#region HasFocusChanging_NewValue_True

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class HasFocusTests (ITestOutputHelper _output) : TestsAllViews
public class HasFocusTests () : TestsAllViews
{
[Fact]

View File

@@ -4,7 +4,7 @@ using static System.Net.Mime.MediaTypeNames;
namespace Terminal.Gui.ViewTests;
public class NavigationTests (ITestOutputHelper _output) : TestsAllViews
public class NavigationTests () : TestsAllViews
{
[Theory]
[MemberData (nameof (AllViewTypes))]

View File

@@ -2,7 +2,7 @@
namespace Terminal.Gui.ViewTests;
public class SetFocusTests (ITestOutputHelper _output) : TestsAllViews
public class SetFocusTests () : TestsAllViews
{
[Fact]
public void SetFocus_With_Null_Superview_Does_Not_Throw_Exception ()