Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public DiskImplementationStoreTest()
 {
     _handler             = new MockTaskHandler();
     _tempDir             = new TemporaryDirectory("0install-unit-tests");
     _implementationStore = new DiskImplementationStore(_tempDir);
 }