Fixes build warnings recently introduced (#4506)

* Fixed warnings I recently introduced.

Replaced nullable App references with null-forgiving operator (!) in MessageBox and dialog calls to suppress nullable warnings. Updated XML docs to use Dim.Fill() and clarified method references. Made Application.Popover registration null-safe. Fixed test output helper usage in ShadowTests. No functional changes.

* Fixes Release build warnings
This commit is contained in:
Tig
2025-12-17 12:57:38 -07:00
committed by GitHub
parent 1a54ff0872
commit ff18ad4532
24 changed files with 79 additions and 79 deletions

View File

@@ -331,9 +331,12 @@ public class ApplicationPopoverTests
public List<Key> HandledKeys { get; } = [];
public int NewCommandInvokeCount { get; private set; }
#if DEBUG_IDISPOSABLE
// NOTE: Hides the base DisposedCount property
public new int DisposedCount { get; private set; }
#else
public int DisposedCount { get; private set; }
#endif
public PopoverTestClass ()
{
CanFocus = true;

View File

@@ -226,7 +226,7 @@ public class ShadowTests (ITestOutputHelper output)
🍎
<EFBFBD> 🍎🍎
""",
output,
_output,
app.Driver);
view.Margin!.ShadowSize = new (1, 2);
@@ -243,7 +243,7 @@ public class ShadowTests (ITestOutputHelper output)
<EFBFBD> 🍎🍎
<EFBFBD> 🍎🍎
""",
output,
_output,
app.Driver);
view.Width = Dim.Fill (1);
@@ -259,7 +259,7 @@ public class ShadowTests (ITestOutputHelper output)
<EFBFBD> 🍎<EFBFBD>
<EFBFBD> 🍎<EFBFBD>
""",
output,
_output,
app.Driver);
}
@@ -282,7 +282,7 @@ public class ShadowTests (ITestOutputHelper output)
| Hi |
""",
output,
_output,
app.Driver);
app.Mouse.RaiseMouseEvent (new () { ScreenPosition = new (2, 0), Flags = MouseFlags.Button1Pressed });
@@ -292,7 +292,7 @@ public class ShadowTests (ITestOutputHelper output)
"""
| Hi |
""",
output,
_output,
app.Driver);
app.Mouse.RaiseMouseEvent (new () { ScreenPosition = new (2, 0), Flags = MouseFlags.Button1Released });
@@ -303,7 +303,7 @@ public class ShadowTests (ITestOutputHelper output)
| Hi |
""",
output,
_output,
app.Driver);
}
@@ -457,7 +457,7 @@ public class ShadowTests (ITestOutputHelper output)
🍎🍎🍎🍎🍎
🍎🍎🍎🍎🍎
""",
output,
_output,
app.Driver);
Runnable modalSuperview = new () { Y = 1, Width = Dim.Fill (), Height = 4, BorderStyle = LineStyle.Single };
@@ -476,7 +476,7 @@ public class ShadowTests (ITestOutputHelper output)
""",
output,
_output,
app.Driver);