mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* initial commit * All tests pass * Updated readme * Revert "All tests pass" This reverts commit94ac462350. * Revert "initial commit" This reverts commit36d92cc4e5. * Moved Terminal.Gui files around * Nuked .Graphs namespace * Nuked .Graphs namespace * Nuked .Trees namespace * Nuked .Configuration namespace * Nuked .Configuration namespace * All tests pass * tweaked tests * removed unneeded usings * re-enabled scrollview tests * move scrollview test to ScrollViewTests * Moved view navigation related tests to separate cs file * Moved view scrollbarview related tests ScrollBarTestse * Refactored View tests into smaller files * Refactored driver tests * Fixed a ton of BUGBUGs
38 lines
912 B
C#
38 lines
912 B
C#
using Xunit;
|
|
|
|
namespace Terminal.Gui.ViewsTests {
|
|
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);
|
|
}
|
|
}
|
|
}
|