コード例 #1
0
        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();
        }
コード例 #2
0
        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));
 }
コード例 #4
0
 protected bool Equals(ProjectDirectory other)
 {
     return string.Equals(_relativePath, other._relativePath);
 }