mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
Port TabTests and merge Dim.FillTests, remove empty ThemeTests
Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -161,4 +161,19 @@ public class DimFillTests (ITestOutputHelper output)
|
||||
Assert.True (view.IsInitialized);
|
||||
Assert.Equal (expectedViewBounds, view.Viewport);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DimFill_SizedCorrectly ()
|
||||
{
|
||||
var view = new View { Width = Dim.Fill (), Height = Dim.Fill (), BorderStyle = LineStyle.Single };
|
||||
var top = new Toplevel ();
|
||||
top.Add (view);
|
||||
|
||||
top.Layout ();
|
||||
|
||||
view.SetRelativeLayout (new (32, 5));
|
||||
Assert.Equal (32, view.Frame.Width);
|
||||
Assert.Equal (5, view.Frame.Height);
|
||||
top.Dispose ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user