Document MockConsoleDriver purpose and verify naming consistency

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-27 02:35:12 +00:00
parent 0132aebd77
commit 1dd0978287

View File

@@ -2,6 +2,27 @@
using System.Text;
/// <summary>
/// Minimal mock <see cref="IConsoleDriver"/> implementation for parallelizable unit tests.
/// This is a lightweight stub that provides just enough driver functionality for tests that need
/// to set driver properties but don't need full Application initialization or I/O simulation.
/// </summary>
/// <remarks>
/// <para>
/// <strong>Purpose:</strong> This mock is specifically designed for tests in the
/// UnitTestsParallelizable project that need to test view behavior in isolation without
/// the overhead of full driver initialization. It's intentionally minimal and thread-safe.
/// </para>
/// <para>
/// <strong>Not a replacement for FakeDriver:</strong> For tests that need full Application
/// initialization, event firing, input simulation, or output verification, use
/// <see cref="FakeDriver"/> in the UnitTests project with <see cref="AutoInitShutdownAttribute"/>.
/// </para>
/// <para>
/// <strong>Thread Safety:</strong> Each test creates its own instance, making it safe for
/// parallel test execution.
/// </para>
/// </remarks>
internal class MockConsoleDriver : IConsoleDriver
{
public event EventHandler<Attribute>? AttributeSet;