mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Cleans up/Refactors View.Subviews (#3962)
* Subview clean up * New Add/Remove event pattern * Using Logging * cleanup * Subview -> SubView * Test code cleanup. Killed many warnings. * Fix tznind feedback * Refactored AllViewTest helpers * Moved keyboard tests to parallel * Moved mouse tests to parallel * Moved view tests to parallel * Test code cleanup. Killed many warnings. * dupe test * Some mouse tests can't run in parallel because MouseGrabView * Made SpinnerView more testable * Moved more tests * SubViews to IReadOnlyCollection<View> * SubViews to IReadOnlyCollection<View> 2 * scrollbar tests * shortcut tests * Use InternalSubViews vs. _subviews * Nuked View.IsAdded. Added View.SuperViewChanged. * API doc updats * Unit Test tweak * Unit Test tweak
This commit is contained in:
@@ -33,7 +33,7 @@ public class DimTests
|
||||
Title = "w"
|
||||
};
|
||||
t.Add (w);
|
||||
t.LayoutSubviews ();
|
||||
t.LayoutSubViews ();
|
||||
|
||||
Assert.Equal (3, w.Width = 3);
|
||||
Assert.Equal (4, w.Height = 4);
|
||||
@@ -107,7 +107,7 @@ public class DimTests
|
||||
super.BeginInit ();
|
||||
super.EndInit ();
|
||||
|
||||
Exception exception = Record.Exception (super.LayoutSubviews);
|
||||
Exception exception = Record.Exception (super.LayoutSubViews);
|
||||
Assert.Null (exception);
|
||||
super.Dispose ();
|
||||
}
|
||||
@@ -169,7 +169,7 @@ public class DimTests
|
||||
Title = "w"
|
||||
};
|
||||
t.Add (w);
|
||||
t.LayoutSubviews ();
|
||||
t.LayoutSubViews ();
|
||||
|
||||
Assert.Equal (3, w.Width = 3);
|
||||
Assert.Equal (4, w.Height = 4);
|
||||
|
||||
Reference in New Issue
Block a user