mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
View.Hierarchy.cs -> nullable enable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
|
||||
public class AdvanceFocusTests (ITestOutputHelper _output)
|
||||
public class AdvanceFocusTests ()
|
||||
{
|
||||
[Fact]
|
||||
public void AdvanceFocus_CanFocus_Mixed ()
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
|
||||
public class HasFocusChangeEventTests (ITestOutputHelper _output) : TestsAllViews
|
||||
public class HasFocusChangeEventTests () : TestsAllViews
|
||||
{
|
||||
#region HasFocusChanging_NewValue_True
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
|
||||
public class HasFocusTests (ITestOutputHelper _output) : TestsAllViews
|
||||
public class HasFocusTests () : TestsAllViews
|
||||
{
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -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))]
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user