mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* Fixes #1384. Added a VisibleChanged event on the View class. * Getting the last char. * Fixes #871. Added Enable property to Responder and added Disabled color for all ColorSchemes. * Added GetNormalColor method to the View being more readable. * Fixes the contentBottomRightCorner Enable and Visible. * Fixes #643. Added AddItemAt and RemoveItem to StatusBar and fixed more bugs. * Typo fixes. * Fixes #1387. Allowing the UnitTests project to test internal keywords. * Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar. * Fixes #1394. Added ReflectedType to check for overridden. * Fixes #1396. Using the Loaded event instead the Ready event. * Fixes #1402. Only WindowsDriver supports horizontal scroll. (#1403) * Fixes #1402. Only WindowsDriver supports horizontal scroll. * Fixes ProcessContinuousButtonPressedAsync on all drivers. * Fixed internal unit test. * Fixing warning. * Fixing Editor scenario error. * Fixes double and triple click on a touchpad. * Ensuring reset the counting. * Allowing touchpad double and triple click with one finger on CursesDriver. * Allowing touchpad double and triple click with one finger on WindowsDriver. * Fixes #1414. Fixed multi toplevels and mdi container issues. * Improving EnsureVisibleBounds and PositionToplevel. * Added mouseGrabView to the ResetState method. * Changing namespace. * Allowing file type on the SaveDialog. * Fixes SaveDialogs writing the extension twice.
39 lines
934 B
C#
39 lines
934 B
C#
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);
|
|
}
|
|
}
|
|
}
|