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