public void instructions_txt_is_ignored()
        {
            var mother = new DataMother("empty");
            mother.ToPath(TemplatePlan.InstructionsFile).WriteEmpty();

            var plan = mother.BuildSolutionPlan();
            plan.FileIsUnhandled(TemplatePlan.InstructionsFile).ShouldBeFalse();

            plan.Steps.OfType<CopyFileToSolution>().Any().ShouldBeFalse();
        }
        public void description_txt_is_ignored()
        {
            var mother = new DataMother("empty");
            mother.ToPath("description.txt").WriteEmpty();

            var plan = mother.BuildSolutionPlan();
            plan.FileIsUnhandled("description.txt").ShouldBeFalse();

            plan.Steps.OfType<CopyFileToSolution>().Any().ShouldBeFalse();
        }
Ejemplo n.º 3
0
        public void instructions_txt_is_ignored()
        {
            var mother = new DataMother("empty");

            mother.ToPath(TemplatePlan.InstructionsFile).WriteEmpty();

            var plan = mother.BuildSolutionPlan();

            plan.FileIsUnhandled(TemplatePlan.InstructionsFile).ShouldBeFalse();

            plan.Steps.OfType <CopyFileToSolution>().Any().ShouldBeFalse();
        }
Ejemplo n.º 4
0
        public void description_txt_is_ignored()
        {
            var mother = new DataMother("empty");

            mother.ToPath("description.txt").WriteEmpty();

            var plan = mother.BuildSolutionPlan();

            plan.FileIsUnhandled("description.txt").ShouldBeFalse();

            plan.Steps.OfType <CopyFileToSolution>().Any().ShouldBeFalse();
        }
        public void other_files_are_copied()
        {
            var mother = new DataMother("copied", false);
            mother.ToPath("foo.txt").WriteEmpty();
            mother.ToPath("bar.txt").WriteEmpty();
            mother.ToPath("deep","nested","topic.txt").WriteEmpty();

            var plan = mother.BuildSolutionPlan();
            plan.Steps.OfType<CopyFileToSolution>().ShouldHaveTheSameElementsAs(
                new CopyFileToSolution("bar.txt", "copied".AppendPath("bar.txt")),
                new CopyFileToSolution("foo.txt", "copied".AppendPath("foo.txt")),
                new CopyFileToSolution("deep/nested/topic.txt", "copied".AppendPath("deep","nested","topic.txt"))

                );
        }
Ejemplo n.º 6
0
        public void other_files_are_copied()
        {
            var mother = new DataMother("copied", false);

            mother.ToPath("foo.txt").WriteEmpty();
            mother.ToPath("bar.txt").WriteEmpty();
            mother.ToPath("deep", "nested", "topic.txt").WriteEmpty();

            var plan = mother.BuildSolutionPlan();

            plan.Steps.OfType <CopyFileToSolution>().ShouldHaveTheSameElementsAs(
                new CopyFileToSolution("bar.txt", "copied".AppendPath("bar.txt")),
                new CopyFileToSolution("foo.txt", "copied".AppendPath("foo.txt")),
                new CopyFileToSolution("deep/nested/topic.txt", "copied".AppendPath("deep", "nested", "topic.txt"))



                );
        }