mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Modernized RadioGroup to use Dim.Auto.
Upgrade AllViewsTester
This commit is contained in:
@@ -110,7 +110,9 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
|
||||
[Theory]
|
||||
[InlineData (1, 100, 100)]
|
||||
[InlineData (1, 50, 50)]
|
||||
[InlineData (1, 50, 52)] // 50% of 100 is 50, but the border adds 2
|
||||
[InlineData (1, 30, 32)] // 30% of 100 is 30, but the border adds 2
|
||||
[InlineData (2, 30, 32)] // 30% of 100 is 30, but the border adds 2
|
||||
public void Min_Percent_Is_Content_Relative (int contentSize, int minPercent, int expected)
|
||||
{
|
||||
var view = new View
|
||||
|
||||
@@ -206,8 +206,8 @@ public class RadioGroupTests
|
||||
Assert.Equal (2, rg.HorizontalSpace);
|
||||
Assert.Equal (0, rg.X);
|
||||
Assert.Equal (0, rg.Y);
|
||||
Assert.Equal (21, rg.Width);
|
||||
Assert.Equal (1, rg.Height);
|
||||
Assert.Equal (21, rg.Frame.Width);
|
||||
Assert.Equal (1, rg.Frame.Height);
|
||||
|
||||
expected = @$"
|
||||
┌────────────────────────────┐
|
||||
@@ -231,8 +231,8 @@ public class RadioGroupTests
|
||||
Assert.Equal (4, rg.HorizontalSpace);
|
||||
Assert.Equal (0, rg.X);
|
||||
Assert.Equal (0, rg.Y);
|
||||
Assert.Equal (23, rg.Width);
|
||||
Assert.Equal (1, rg.Height);
|
||||
Assert.Equal (23, rg.Frame.Width);
|
||||
Assert.Equal (1, rg.Frame.Height);
|
||||
|
||||
expected = @$"
|
||||
┌────────────────────────────┐
|
||||
|
||||
Reference in New Issue
Block a user