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]
class SettingsRepositoryTest
{
string _savedSettings;
SettingsRepository _savedRepository;
[SetUp]
public void SetUp()
{
_savedSettings = zaaReloaded2.UserSettings.Default.SettingsRepository;
_savedRepository = zaaReloaded2.UserSettings.Default.SettingsRepository;
}
[TearDown]
public void TearDown()
{
zaaReloaded2.UserSettings.Default.SettingsRepository = _savedSettings;
zaaReloaded2.UserSettings.Default.SettingsRepository = _savedRepository;
zaaReloaded2.UserSettings.Default.Save();
}