public void ShouldHandleRelativePaths() { // Change the working directory string oldWorkingDir = Environment.CurrentDirectory; Environment.CurrentDirectory = _tempDir; try { _store = new DirectoryStore("."); ShouldAllowToAddFolder(); } finally { // Restore the original working directory Environment.CurrentDirectory = oldWorkingDir; } }
public void SetUp() { _handler = new MockTaskHandler(); _tempDir = new TemporaryDirectory("0install-unit-tests"); _store = new DirectoryStore(_tempDir); }