public void starting_from_scratch() { var step = new GitIgnoreStep("Gemfile.lock", "CommonAssemblyInfo.cs", "bin", "obj"); step.Alter(thePlan); ignoreFileHasOnce("Gemfile.lock"); ignoreFileHasOnce("CommonAssemblyInfo.cs"); ignoreFileHasOnce("bin"); ignoreFileHasOnce("obj"); }
public void starting_from_an_existing_file() { thePlan.AlterFile(".gitignore", list => list.Add("bin")); var step = new GitIgnoreStep("Gemfile.lock", "CommonAssemblyInfo.cs", "bin", "obj"); step.Alter(thePlan); ignoreFileHasOnce("Gemfile.lock"); ignoreFileHasOnce("CommonAssemblyInfo.cs"); ignoreFileHasOnce("bin"); ignoreFileHasOnce("obj"); }