Skip to content

Commit

Permalink
Merge pull request #907 from nunit/issue-873
Browse files Browse the repository at this point in the history
Remove SettingsService
  • Loading branch information
CharliePoole authored Mar 1, 2021
2 parents fc27cf7 + 8f618c5 commit 326ca5b
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 678 deletions.
4 changes: 2 additions & 2 deletions src/NUnitConsole/ConsoleVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using System.Reflection;

[assembly: AssemblyProduct("NUnit Console Runner")]
[assembly: AssemblyVersion("3.13.0")]
[assembly: AssemblyInformationalVersion("3.13.0")]
[assembly: AssemblyVersion("4.0.0")]
[assembly: AssemblyInformationalVersion("4.0.0")]
4 changes: 2 additions & 2 deletions src/NUnitEngine/EngineApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

[assembly: AssemblyProduct("NUnit Engine API")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyInformationalVersion("3.13.0")]
[assembly: AssemblyFileVersion("3.13.0")]
[assembly: AssemblyInformationalVersion("4.0.0")]
[assembly: AssemblyFileVersion("4.0.0")]
4 changes: 2 additions & 2 deletions src/NUnitEngine/EngineVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using System.Reflection;

[assembly: AssemblyProduct("NUnit Engine")]
[assembly: AssemblyVersion("3.13.0")]
[assembly: AssemblyInformationalVersion("3.13.0")]
[assembly: AssemblyVersion("4.0.0")]
[assembly: AssemblyInformationalVersion("4.0.0")]
79 changes: 0 additions & 79 deletions src/NUnitEngine/nunit.engine.api/ISettings.cs

This file was deleted.

16 changes: 0 additions & 16 deletions src/NUnitEngine/nunit.engine.core/Internal/NUnitConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,5 @@ public static string EngineDirectory
return _engineDirectory;
}
}

private static string _applicationDirectory;
public static string ApplicationDirectory
{
get
{
if (_applicationDirectory == null)
{
_applicationDirectory = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"NUnit");
}

return _applicationDirectory;
}
}
}
}
13 changes: 10 additions & 3 deletions src/NUnitEngine/nunit.engine.tests/Api/ServiceLocatorTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt

using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;

namespace NUnit.Engine.Api.Tests
Expand All @@ -18,8 +16,17 @@ public void CreateEngine()
_testEngine.InternalTraceLevel = InternalTraceLevel.Off;
}

[TestCase(typeof(ISettings))]
[TestCase(typeof(ITestFilterService))]
[TestCase(typeof(IExtensionService))]
[TestCase(typeof(Services.ProjectService))]
#if NETFRAMEWORK
[TestCase(typeof(Services.DomainManager))]
[TestCase(typeof(IRuntimeFrameworkService))]
[TestCase(typeof(ITestAgency))]
#endif
[TestCase(typeof(IDriverService))]
[TestCase(typeof(IResultService))]
[TestCase(typeof(ITestRunnerFactory))]
public void CanAccessService(Type serviceType)
{
IService service = _testEngine.Services.GetService(serviceType) as IService;
Expand Down
99 changes: 0 additions & 99 deletions src/NUnitEngine/nunit.engine.tests/Internal/SettingsGroupTests.cs

This file was deleted.

87 changes: 0 additions & 87 deletions src/NUnitEngine/nunit.engine.tests/Internal/SettingsStoreTests.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ void IService.StartService()

void IService.StopService()
{
_status = ServiceStatus.Stopped;
_status = FailToStop
? ServiceStatus.Error
: ServiceStatus.Stopped;
}

// Set to true to cause the service to give
// an error result when started
public bool FailToStart { get; set; }

// Set to true to cause the service to give
// an error result when stopped
public bool FailToStop { get; set; }
}
}

This file was deleted.

Loading

0 comments on commit 326ca5b

Please sign in to comment.