mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
41 lines
971 B
C#
41 lines
971 B
C#
using Terminal.Gui;
|
|
using Terminal.Gui.Graphs;
|
|
using Terminal.Gui.Views;
|
|
using Xunit;
|
|
|
|
namespace UnitTests {
|
|
public class LineViewTests {
|
|
|
|
[Fact]
|
|
[AutoInitShutdown]
|
|
public void LineView_DefaultConstructor()
|
|
{
|
|
var horizontal = new LineView();
|
|
|
|
Assert.Equal (Orientation.Horizontal, horizontal.Orientation);
|
|
Assert.Equal (Dim.Fill (), horizontal.Width);
|
|
Assert.Equal (1, horizontal.Height);
|
|
}
|
|
[Fact]
|
|
[AutoInitShutdown]
|
|
public void LineView_Horizontal ()
|
|
{
|
|
var horizontal = new LineView (Orientation.Horizontal);
|
|
|
|
Assert.Equal (Orientation.Horizontal, horizontal.Orientation);
|
|
Assert.Equal (Dim.Fill (), horizontal.Width);
|
|
Assert.Equal (1, horizontal.Height);
|
|
}
|
|
[Fact]
|
|
[AutoInitShutdown]
|
|
public void LineView_Vertical ()
|
|
{
|
|
var vert = new LineView (Orientation.Vertical);
|
|
|
|
Assert.Equal (Orientation.Vertical, vert.Orientation);
|
|
Assert.Equal (Dim.Fill(), vert.Height);
|
|
Assert.Equal (1, vert.Width);
|
|
}
|
|
}
|
|
}
|