Complete Rows/Cols read-only refactor - fix all test files

- Fixed all test files to use SetScreenSize() instead of setting Rows/Cols
- Updated ApplicationTests, ApplicationScreenTests, AddRuneTests, ClipRegionTests, ConsoleDriverTests
- All UnitTests now build and FakeDriver tests pass (21/21)
- Source of truth is now IConsoleDriver.Screen via backing fields

Work items for future:
- Rename OnSizeChanged to OnScreenChanged
- Fix AutoInitShutdownAttribute.FakeResize

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-26 21:47:19 +00:00
parent 82e28d1a4f
commit 9fb77a353e
5 changed files with 11 additions and 14 deletions

View File

@@ -627,9 +627,8 @@ public class ApplicationTests
Assert.Equal (new (0, 0, 80, 25), driver.Screen);
Assert.Equal (new (0, 0, 80, 25), Application.Screen);
// TODO: Should not be possible to manually change these at whim!
driver.Cols = 100;
driver.Rows = 30;
// Use SetScreenSize to change screen dimensions
driver.SetScreenSize (100, 30);
// IConsoleDriver.Screen isn't assignable
//driver.Screen = new (0, 0, driver.Cols, Rows);