Fix SettingsRepositoryTest.
This commit is contained in:
parent
cc0573c326
commit
c23fd4986d
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user