Fixes #4162. Keyword dynamic isn't AOT-Compatible and must be removed (#4163)

This commit is contained in:
BDisp
2025-06-15 17:57:55 +01:00
committed by GitHub
parent 6e486c718e
commit b50a8fd665
4 changed files with 106 additions and 32 deletions

View File

@@ -1,5 +1,4 @@
using System.Globalization;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewsTests;
@@ -102,6 +101,13 @@ public class NumericUpDownTests
Assert.Null (exception);
}
[Fact]
public void WhenCreatedWithValidNumberType_ShouldThrowInvalidOperationException_UnlessTheyAreRegisterAsValid ()
{
Exception exception = Record.Exception (() => new NumericUpDown<short> ());
Assert.NotNull (exception);
}
[Fact]
public void WhenCreated_ShouldHaveDefaultWidthAndHeight_int ()
{