public void creates_a_new_directory_if_it_does_not_already_exist() { var solutionDirectory = new SolutionDirectory("foo"); var plan = TemplatePlan.CreateClean("solution"); solutionDirectory.Alter(plan); Directory.Exists("solution".AppendPath("foo")).ShouldBeTrue(); }
public void create_a_deep_directory() { var solutionDirectory = new SolutionDirectory("foo/bar"); var plan = TemplatePlan.CreateClean("solution"); solutionDirectory.Alter(plan); Directory.Exists("solution".AppendPath("foo")).ShouldBeTrue(); Directory.Exists("solution".AppendPath("foo", "bar")).ShouldBeTrue(); }
public void does_not_cause_any_problems_when_the_directory_already_exists() { var solutionDirectory = new SolutionDirectory("foo"); var plan = TemplatePlan.CreateClean("solution"); Directory.CreateDirectory("solution".AppendPath("foo")); solutionDirectory.Alter(plan); Directory.Exists("solution".AppendPath("foo")).ShouldBeTrue(); }
protected bool Equals(SolutionDirectory other) { return(string.Equals(_relativePath, other._relativePath)); }
protected bool Equals(SolutionDirectory other) { return string.Equals(_relativePath, other._relativePath); }