mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
IOrientation -> nullable enable
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace Terminal.Gui;
|
||||
using System;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
namespace Terminal.Gui;
|
||||
#nullable enable
|
||||
namespace Terminal.Gui;
|
||||
|
||||
/// <summary>Direction of an element (horizontal or vertical)</summary>
|
||||
public enum Orientation
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user