forked from gui-cs/Terminal.Gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLineViewTests.cs
More file actions
38 lines (33 loc) · 934 Bytes
/
LineViewTests.cs
File metadata and controls
38 lines (33 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Terminal.Gui.Graphs;
using Xunit;
namespace Terminal.Gui.Views {
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);
}
}
}