Skip to content

Make non-api classes internal - #13

Merged
CharliePoole merged 2 commits into
mainfrom
issue-886
Oct 7, 2026
Merged

CharliePoole merged 2 commits into
mainfrom
issue-886

Conversation

@CharliePoole

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Several resolver strategy implementation classes remain publicly exported despite the stated visibility goal.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Restricts internal agent-core implementation types from public consumption, supporting NUnit-Console#886.

Changes:

  • Makes runner, driver, callback, and framework API implementations internal.
  • Updates the affected generic test fixture.
  • Adds shared build properties to solution items.
File Description
NUnit.Agent.Core.slnx Adds shared build files to solution items.
RunTestsCallbackHandler.cs Internalizes callback implementation.
CallbackHandler.cs Internalizes callback implementation.
Runners/​TestDomainRunner.cs Internalizes domain runner.
Runners/​TestAgentRunner.cs Internalizes runner base class.
Runners/​LocalTestRunner.cs Internalizes local runner.
Runners/​DomainManager.cs Internalizes domain management.
Drivers/​ProvidedPathsAssemblyResolver.cs Internalizes assembly resolver.
Drivers/​NUnitFrameworkDriver.cs Internalizes framework driver.
Drivers/​NUnitFrameworkApi2018.cs Internalizes framework API implementation.
Drivers/​NUnitFrameworkApi.cs Internalizes framework API contract.
Drivers/​NUnit3DriverFactory.cs Internalizes NUnit 3 factory.
Drivers/​NUnit2DriverFactory.cs Internalizes NUnit 2 factory.
Drivers/​InvalidAssemblyFrameworkDriver.cs Internalizes invalid-assembly driver.
Drivers/​DriverService.cs Internalizes driver service.
TestAgentRunnerTests.cs Aligns fixture visibility with its constraint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

namespace NUnit.Engine.Drivers
{
public interface NUnitFrameworkApi
internal interface NUnitFrameworkApi
@CharliePoole
CharliePoole merged commit 00f252a into main Oct 7, 2026
3 checks passed
@CharliePoole
CharliePoole deleted the issue-886 branch October 7, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants