mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Added TabIndex and TabStop properties.
This commit is contained in:
@@ -136,6 +136,27 @@ namespace Terminal.Gui {
|
||||
Assert.Throws<InvalidOperationException> (() => root.LayoutSubviews ());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Added_Removed ()
|
||||
{
|
||||
var v = new View (new Rect (0, 0, 10, 24));
|
||||
var t = new View ();
|
||||
|
||||
v.Added += (View e) => {
|
||||
Assert.True (v.SuperView == e);
|
||||
};
|
||||
|
||||
v.Removed += (View e) => {
|
||||
Assert.True (v.SuperView == null);
|
||||
};
|
||||
|
||||
t.Add (v);
|
||||
Assert.True (t.Subviews.Count == 1);
|
||||
|
||||
t.Remove (v);
|
||||
Assert.True (t.Subviews.Count == 0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Subviews_TabIndexes_AreEqual ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user