コード例 #1
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();
        }
コード例 #2
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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #5
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"))

                );
        }
コード例 #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"))



                );
        }