IOrientation -> nullable enable

This commit is contained in:
Tig
2024-08-26 14:20:28 -07:00
parent 45ccf1d5d5
commit 5191988d0f
4 changed files with 9 additions and 7 deletions

View File

@@ -1,4 +1,5 @@

#nullable enable
namespace Terminal.Gui;
using System;

View File

@@ -1,4 +1,5 @@
namespace Terminal.Gui;
#nullable enable
namespace Terminal.Gui;
/// <summary>Direction of an element (horizontal or vertical)</summary>
public enum Orientation

View File

@@ -1,4 +1,5 @@
namespace Terminal.Gui;
#nullable enable
namespace Terminal.Gui;
/// <summary>
/// Helper class for implementing <see cref="IOrientation"/>.
@@ -119,7 +120,7 @@ public class OrientationHelper
/// it was not canceled).
/// </para>
/// </remarks>
public event EventHandler<CancelEventArgs<Orientation>> OrientationChanging;
public event EventHandler<CancelEventArgs<Orientation>>? OrientationChanging;
/// <summary>
/// Raised when the orientation has changed.
@@ -134,5 +135,5 @@ public class OrientationHelper
/// This event will be raised after the <see cref="IOrientation.OnOrientationChanged"/> method is called.
/// </para>
/// </remarks>
public event EventHandler<EventArgs<Orientation>> OrientationChanged;
public event EventHandler<EventArgs<Orientation>>? OrientationChanged;
}

View File

@@ -1,10 +1,9 @@
using JetBrains.Annotations;
using Xunit.Abstractions;
using static System.Net.Mime.MediaTypeNames;
namespace Terminal.Gui.ViewTests;
public class NavigationTests () : TestsAllViews
public class NavigationTests (ITestOutputHelper _output) : TestsAllViews
{
[Theory]
[MemberData (nameof (AllViewTypes))]