APD.IntegrationTests.VCS.Git.When_I_want_to_use_the_git_plugin_Context.assure_repository_is_not_already_cloned C# (CSharp) Метод

assure_repository_is_not_already_cloned() приватный Метод

private assure_repository_is_not_already_cloned ( ) : void
Результат void
        protected void assure_repository_is_not_already_cloned()
        {
            if (Directory.Exists(reposDir))
                DeleteFileSystemInfo(new DirectoryInfo(reposDir));

            if (Directory.Exists(reposDir))
            {
                Debug.WriteLine(
                    "Permission to delete the repository directory is denied. Please delete the contents of " +
                    reposDir + " manually and run the test again.");
                Assert.Fail();
            }
        }
When_I_want_to_use_the_git_plugin_Context