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:
Tig
2025-03-08 15:42:17 -07:00
committed by GitHub
parent 85cf6619ed
commit acb5979e6c
226 changed files with 7235 additions and 7188 deletions

View File

@@ -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);