mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user