Step 4: Remove MockConsoleDriver and add FakeDriver tests

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-26 20:30:47 +00:00
parent 359e6a5d7e
commit 42bf7526e6
5 changed files with 329 additions and 213 deletions

View File

@@ -63,7 +63,8 @@ public class SchemeTests
public void GetAttribute_ReturnsCorrectAttribute_Via_Mock ()
{
var view = new View { SchemeName = "Base" };
view.Driver = new MockConsoleDriver ();
view.Driver = new FakeDriver ();
view.Driver.Init ();
view.Driver.SetAttribute (new Attribute (Color.Red, Color.Green));
// Act
@@ -103,7 +104,8 @@ public class SchemeTests
public void SetAttributeForRole_SetsCorrectAttribute ()
{
var view = new View { SchemeName = "Base" };
view.Driver = new MockConsoleDriver ();
view.Driver = new FakeDriver ();
view.Driver.Init ();
view.Driver.SetAttribute (new Attribute (Color.Red, Color.Green));
var previousAttribute = view.SetAttributeForRole (VisualRole.Focus);