Пример #1
0
        public void add_instructions_simple()
        {
            var plan = new TemplatePlan("root");

            plan.AddInstructions("some foo");

            plan.WriteInstructions();

            new FileSystem().ReadStringFromFile("root".AppendPath(TemplatePlan.InstructionsFile))
            .ShouldContain("some foo");
        }
Пример #2
0
        public void add_instructions_with_substitution()
        {
            var plan = new TemplatePlan("root");

            plan.Substitutions.Set("%SOLUTION_NAME%", "Foo");
            plan.AddInstructions("the solution is '%SOLUTION_NAME%'");

            plan.WriteInstructions();

            new FileSystem().ReadStringFromFile("root".AppendPath(TemplatePlan.InstructionsFile))
            .ShouldContain("the solution is 'Foo'");
        }