public void simple_directory_does_not_already_exist()
        {
            var dir = new ProjectDirectory("content");

            dir.Alter(csProjFile, null);

            TemplateLibrary.FileSystem.DirectoryExists("temp-solution", "MyProj", "content")
                .ShouldBeTrue();
        }
        public void no_problem_if_the_directory_already_exists()
        {
            var dir = new ProjectDirectory("content");

            TemplateLibrary.FileSystem.CreateDirectory("temp-solution", "MyProj", "content");

            dir.Alter(csProjFile, null);

            TemplateLibrary.FileSystem.DirectoryExists("temp-solution", "MyProj", "content")
                .ShouldBeTrue();
        }
示例#3
0
 protected bool Equals(ProjectDirectory other)
 {
     return(string.Equals(_relativePath, other._relativePath));
 }
 protected bool Equals(ProjectDirectory other)
 {
     return string.Equals(_relativePath, other._relativePath);
 }