public void adding_a_close_link_adds_to_itself_if_there_is_no_header_tag()
        {
            var sentence = new Sentence
            {
                Name   = "ThisGrammar",
                Parent = new FixtureGraph()
            };

            var tag = new GrammarTag(sentence);

            tag.AddDeleteLink();

            tag.Children.Last().ShouldBeOfType <RemoveLinkTag>();
        }
        public void adding_a_close_link_adds_to_the_header_tag_if_it_exists()
        {
            var sentence = new Sentence
            {
                Name   = "ThisGrammar",
                Parent = new FixtureGraph()
            };

            var tag    = new GrammarTag(sentence);
            var header = new HeaderTag();

            tag.Append(header);

            tag.AddDeleteLink();

            tag.Children.Count.ShouldEqual(1);

            Debug.WriteLine(tag.ToString());

            header.FirstChild().Children.Count(x => x is RemoveLinkTag).ShouldEqual(1);
        }