Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NUnit.Agent.Core.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<File Path="build.ps1" />
<File Path="build.sh" />
<File Path="NuGet.config" />
<File Path="src/Directory.Build.props" />
<File Path="src/Directory.Packages.props" />
<File Path="src/Nullable.props" />
</Folder>
<Folder Name="/Solution Items/.config/">
<File Path=".config/dotnet-tools.json" />
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core.tests/Runners/TestAgentRunnerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace NUnit.Engine.Runners
#if NETFRAMEWORK
[TestFixture(typeof(TestDomainRunner))]
#endif
public class TestAgentRunnerTests<TRunner> : ITestEventListener
internal class TestAgentRunnerTests<TRunner> : ITestEventListener
where TRunner : TestAgentRunner
{
protected TestPackage _package;
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/CallbackHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace NUnit.Engine
{
public class CallbackHandler : MarshalByRefObject, ICallbackEventHandler
internal class CallbackHandler : MarshalByRefObject, ICallbackEventHandler
{
public string? Result { get; private set; }

Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Drivers/DriverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace NUnit.Engine.Drivers
/// The DriverService provides drivers able to load and run tests
/// using various frameworks.
/// </summary>
public class DriverService : IDriverService
internal class DriverService : IDriverService
{
#if NETFRAMEWORK
private const string TYPE_EXTENSION_PATH = "/NUnit/Engine/TypeExtensions/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace NUnit.Engine.Drivers
{
public sealed class InvalidAssemblyFrameworkDriver : IFrameworkDriver
internal sealed class InvalidAssemblyFrameworkDriver : IFrameworkDriver
{
private readonly string _name;
private readonly string _fullname;
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Drivers/NUnit2DriverFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace NUnit.Engine.Drivers
{
public class NUnit2DriverFactory : IDriverFactory
internal class NUnit2DriverFactory : IDriverFactory
{
private const string NUNIT_FRAMEWORK = "nunit.framework";
private const string NUNITLITE_FRAMEWORK = "nunitlite";
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Drivers/NUnit3DriverFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace NUnit.Engine.Drivers
{
public class NUnit3DriverFactory : IDriverFactory
internal class NUnit3DriverFactory : IDriverFactory
{
internal const string NUNIT_FRAMEWORK = "nunit.framework";
private static readonly Logger log = InternalTrace.GetLogger(typeof(NUnit3DriverFactory));
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Drivers/NUnitFrameworkApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace NUnit.Engine.Drivers
{
public interface NUnitFrameworkApi
internal interface NUnitFrameworkApi
{
/// <summary>
/// Loads the tests in an assembly.
Expand Down
4 changes: 2 additions & 2 deletions src/nunit.agent.core/Drivers/NUnitFrameworkApi2018.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ namespace NUnit.Engine.Drivers
/// may be used for NUnit 3.10 or higher.
/// </summary>
#if NETFRAMEWORK
public class NUnitFrameworkApi2018 : MarshalByRefObject, NUnitFrameworkApi
internal class NUnitFrameworkApi2018 : MarshalByRefObject, NUnitFrameworkApi
#else
public class NUnitFrameworkApi2018 : NUnitFrameworkApi
internal class NUnitFrameworkApi2018 : NUnitFrameworkApi
#endif
{
private static readonly Logger log = InternalTrace.GetLogger(nameof(NUnitFrameworkApi2018));
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Drivers/NUnitFrameworkDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace NUnit.Engine.Drivers
/// NUnitFrameworkDriver is used by the test-runner to load and run
/// tests using the NUnit framework assembly, versions 3 and up.
/// </summary>
public class NUnitFrameworkDriver : IFrameworkDriver
internal class NUnitFrameworkDriver : IFrameworkDriver
{
private static readonly Version MINIMUM_NUNIT_VERSION = new(3, 2, 0);
private static readonly Logger log = InternalTrace.GetLogger(nameof(NUnitFrameworkDriver));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace NUnit.Engine.Drivers
{
public class ProvidedPathsAssemblyResolver
internal class ProvidedPathsAssemblyResolver
{
private static readonly Logger log = InternalTrace.GetLogger(typeof(ProvidedPathsAssemblyResolver));

Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/RunTestsCallbackHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace NUnit.Engine
{
public class RunTestsCallbackHandler : MarshalByRefObject, ICallbackEventHandler
internal class RunTestsCallbackHandler : MarshalByRefObject, ICallbackEventHandler
{
private readonly ITestEventListener? _listener;

Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Runners/DomainManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace NUnit.Engine.Runners
/// The DomainManager class handles the creation and unloading
/// of domains as needed and keeps track of all existing domains.
/// </summary>
public class DomainManager
internal class DomainManager
{
private static readonly Logger log = InternalTrace.GetLogger(typeof(DomainManager));

Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Runners/LocalTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace NUnit.Engine.Runners
/// <summary>
/// LocalTestRunner runs tests in the current application domain.
/// </summary>
public class LocalTestRunner : TestAgentRunner
internal class LocalTestRunner : TestAgentRunner
{
public LocalTestRunner(TestPackage package) : base(package)
{
Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Runners/TestAgentRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace NUnit.Engine.Runners
/// deal directly with a framework driver. It loads and runs tests in a single
/// assembly, creating an <see cref="IFrameworkDriver"/> to do so.
/// </summary>
public abstract class TestAgentRunner : ITestEngineRunner
internal abstract class TestAgentRunner : ITestEngineRunner
{
private readonly Logger log = InternalTrace.GetLogger(typeof(TestAgentRunner));

Expand Down
2 changes: 1 addition & 1 deletion src/nunit.agent.core/Runners/TestDomainRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace NUnit.Engine.Runners
/// TestDomainRunner loads and runs tests in a separate
/// domain whose lifetime it controls.
/// </summary>
public class TestDomainRunner : TestAgentRunner
internal class TestDomainRunner : TestAgentRunner
{
private static readonly Logger log = InternalTrace.GetLogger(typeof(TestDomainRunner));

Expand Down
12 changes: 6 additions & 6 deletions src/nunit.agent.core/TestAssemblyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static string GetAssemblyLocationInfo(Assembly assembly)

#region ResolutionStrategy Classes

public abstract class ResolutionStrategy
internal abstract class ResolutionStrategy
{
public string Name => GetType().Name;
public int Calls { get; set; }
Expand All @@ -141,7 +141,7 @@ public abstract bool TryToResolve(
AssemblyLoadContext loadContext, AssemblyName assemblyName, [NotNullWhen(true)] out Assembly? loadedAssembly);
}

public class TrustedPlatformAssembliesStrategy : ResolutionStrategy
internal class TrustedPlatformAssembliesStrategy : ResolutionStrategy
{
private static readonly Logger log = InternalTrace.GetLogger(typeof(TrustedPlatformAssembliesStrategy));
public override bool TryToResolve(
Expand Down Expand Up @@ -181,7 +181,7 @@ bool FileMatchesAssembly(string fileName) =>
}
}

public class RuntimeLibrariesStrategy : ResolutionStrategy
internal class RuntimeLibrariesStrategy : ResolutionStrategy
{
private static readonly Logger log = InternalTrace.GetLogger(typeof(RuntimeLibrariesStrategy));

Expand Down Expand Up @@ -244,7 +244,7 @@ public override bool TryToResolve(
}
}

public class AdditionalRuntimesStrategy : ResolutionStrategy
internal class AdditionalRuntimesStrategy : ResolutionStrategy
{
private string _runtimeName;
private bool _x86;
Expand Down Expand Up @@ -273,14 +273,14 @@ public override bool TryToResolve(AssemblyLoadContext loadContext, AssemblyName
}
}

public class WindowsDesktopStrategy : AdditionalRuntimesStrategy
internal class WindowsDesktopStrategy : AdditionalRuntimesStrategy
{
public WindowsDesktopStrategy(bool x86) : base("Microsoft.WindowsDesktop.App", x86)
{
}
}

public class AspNetCoreStrategy : AdditionalRuntimesStrategy
internal class AspNetCoreStrategy : AdditionalRuntimesStrategy
{
public AspNetCoreStrategy(bool x86) : base("Microsoft.AspNetCore.App", x86)
{
Expand Down