Skip to content
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

Merged
merged 4 commits into from
Mar 1, 2021
Merged

Remove SettingsService #907

merged 4 commits into from
Mar 1, 2021

Conversation

CharliePoole
Copy link
Member

Fixes #873

@CharliePoole CharliePoole requested a review from a team March 1, 2021 10:02
@@ -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")]
Copy link
Member

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. 🙂

Copy link
Member

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?

Copy link
Member Author

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));
}
Copy link
Member

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?

Copy link
Member Author

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) { }
Copy link
Member

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? 🙂

@CharliePoole CharliePoole merged commit 326ca5b into dev-4.0 Mar 1, 2021
@CharliePoole CharliePoole deleted the issue-873 branch March 1, 2021 23:02
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