mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Added simple Arragement unit test
This commit is contained in:
17
UnitTests/View/ArrangementTests.cs
Normal file
17
UnitTests/View/ArrangementTests.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Text;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
|
||||
public class ArrangementTests (ITestOutputHelper output)
|
||||
{
|
||||
private readonly ITestOutputHelper _output = output;
|
||||
|
||||
// Test that TopResizable and Movable are mutually exclusive and Movable wins
|
||||
[Fact]
|
||||
public void TopResizableAndMovableMutuallyExclusive ()
|
||||
{
|
||||
// TODO: Write test.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -25,6 +25,13 @@ public class ToplevelTests
|
||||
Assert.False (top.IsOverlapped);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Arrangement_Is_Movable ()
|
||||
{
|
||||
var top = new Toplevel ();
|
||||
Assert.Equal (ViewArrangement.Movable, top.Arrangement);
|
||||
}
|
||||
|
||||
#if BROKE_IN_2927
|
||||
// BUGBUG: The name of this test does not match what it does.
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user