Fix SettingsRepositoryTest.

This commit is contained in:
daniel 2017-03-06 06:17:11 +01:00
parent cc0573c326
commit c23fd4986d

View File

@ -27,18 +27,18 @@ namespace Tests.Controller
[TestFixture] [TestFixture]
class SettingsRepositoryTest class SettingsRepositoryTest
{ {
string _savedSettings; SettingsRepository _savedRepository;
[SetUp] [SetUp]
public void SetUp() public void SetUp()
{ {
_savedSettings = zaaReloaded2.UserSettings.Default.SettingsRepository; _savedRepository = zaaReloaded2.UserSettings.Default.SettingsRepository;
} }
[TearDown] [TearDown]
public void TearDown() public void TearDown()
{ {
zaaReloaded2.UserSettings.Default.SettingsRepository = _savedSettings; zaaReloaded2.UserSettings.Default.SettingsRepository = _savedRepository;
zaaReloaded2.UserSettings.Default.Save(); zaaReloaded2.UserSettings.Default.Save();
} }