示例#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;
            }
        }
示例#2
0
 public DiskImplementationStoreTest()
 {
     _handler             = new MockTaskHandler();
     _tempDir             = new TemporaryDirectory("0install-unit-tests");
     _implementationStore = new DiskImplementationStore(_tempDir);
 }