예제 #1
0
        [SetUp] public void Init()
        {
            if (Directory.Exists(TestBasePath))
            {
                Directory.Delete(TestBasePath, true);
            }

            Directory.CreateDirectory(TestClientPath);
            Directory.CreateDirectory(TestRepositoryPath);

            string relativeRepositoryPath = PathHelper.MakeDirectoryPathRelative(
                TestRepositoryPath,
                TestClientPath);

            this.workEnv = new PackageManagerEnvironment(TestClientPath);
            this.setup   = new PackageSetup();
            this.setup.RepositoryUrls.Clear();
            this.setup.RepositoryUrls.Add(relativeRepositoryPath);
        }
예제 #2
0
        [TearDown] public void Cleanup()
        {
            this.workEnv = null;

            Directory.Delete(TestBasePath, true);
        }