-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SettingsService #907
Conversation
src/NUnitEngine/EngineApiVersion.cs
Outdated
@@ -4,5 +4,5 @@ | |||
|
|||
[assembly: AssemblyProduct("NUnit Engine API")] | |||
[assembly: AssemblyVersion("3.0.0.0")] | |||
[assembly: AssemblyInformationalVersion("3.13.0")] | |||
[assembly: AssemblyInformationalVersion("4.0.0")] | |||
[assembly: AssemblyFileVersion("3.13.0")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think you've missed a version here. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's also a version stored in the Cake file, which should be updated in sync with these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your right that I missed one. I'll fix.
However, the cake file was updated when I created dev-4.0 so doesn't need to be changed here.
{ | ||
IService service = _serviceManager.GetService(typeof(ISettings)); | ||
Assert.That(service, Is.SameAs(_settingsService)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to remove this test, rather than refactor in the same way as above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized it duplicated a check made in the InitializeServices test.
private const string SETTINGS_FILE = "Nunit30Settings.xml"; | ||
|
||
public SettingsService(bool writeable) | ||
: base(Path.Combine(NUnitConfiguration.ApplicationDirectory, SETTINGS_FILE), writeable) { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think NUnitConfigurations.AppDirectory
can also be removed now - it was only used to store settings, I think? 🙂
Fixes #873