mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
24 lines
595 B
C#
24 lines
595 B
C#
using Xunit.Abstractions;
|
|
|
|
namespace UnitTests.LayoutTests;
|
|
|
|
public class DimFillTests (ITestOutputHelper output)
|
|
{
|
|
private readonly ITestOutputHelper _output = output;
|
|
|
|
[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 ();
|
|
}
|
|
}
|