Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public void SetUp()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-unit-tests");
     _store   = new DirectoryStore(_tempDir);
 }