public void StartEmbeddedSection(EmbeddedSection section, IStep step)
 {
     withNewNode(step, Icon.EmbeddedSection, node =>
     {
         node.AddText(section.Label);
         addRearrangeCommands(node);
         StepLeaf leaf = section.LeafFor(step);
         node.Holder = leaf;
         _configurer.ConfigurePartAdders(node, section.Fixture, leaf);
     });
 }
        public void adding_an_embedded_section_then_a_sentence_under_a_paragraph_should_still_have_adder_commands()
        {
            var embedded = new EmbeddedSection(new FixtureGraph("Embed"), "the label", "embed");
            treeBuilder.StartEmbeddedSection(embedded, step);

            var sentence = new Sentence();
            var sentenceStep = new Step();
            treeBuilder.Sentence(sentence, sentenceStep);

            nodeBuilder.AssertWasCalled(x => x.ConfigureRearrangeCommands(treeBuilder.LastNode, embedded.LeafFor(step), sentenceStep));
        }