Inheritance: HtmlTags.HtmlTag, IGrammarVisitor
Ejemplo n.º 1
0
        private FixtureTag writeFixture(FixtureGraph fixture)
        {
            _fixtureTag = new FixtureTag(fixture);
            _top.Append(_fixtureTag);

            return _fixtureTag;
        }
Ejemplo n.º 2
0
        public void write_a_div_with_the_id()
        {
            var tag = new FixtureTag(fixture);
            tag.TagName().ShouldEqual("div");

            tag.Id().ShouldEqual("Math");
        }
Ejemplo n.º 3
0
        private FixtureTag writeFixture(FixtureGraph fixture)
        {
            _fixtureTag = new FixtureTag(fixture);
            _top.Append(_fixtureTag);

            return(_fixtureTag);
        }
Ejemplo n.º 4
0
        public void do_not_write_remove_link_for_the_mandatory_autoselect_grammar()
        {
            var fixture =
                FixtureGraph.Library.FixtureFor("MandatorySelection");

            var fixtureTag = new FixtureTag(fixture);
            fixtureTag.Children.First(x => x.HasClass("StartWithTheNumber")).Children.Any(x => x is RemoveLinkTag).
                    ShouldBeFalse();
        }
Ejemplo n.º 5
0
        public void SetUp()
        {
            FixtureLibrary library =
                FixtureGraph.Library;

            // Look for the EmbeddedChoicesFixture
            fixture = library.FixtureFor("EmbeddedChoices");
            fixtureTag = new FixtureTag(fixture);
        }
Ejemplo n.º 6
0
 public void the_last_child_should_be_a_tags_tag()
 {
     var tag = new FixtureTag(fixture);
     tag.Children.Last().ShouldBeOfType<TagsTag>().ShouldHaveClass(GrammarConstants.TAGS).ShouldHaveClass(
         GrammarConstants.STEP);
 }
Ejemplo n.º 7
0
 public void the_first_child_should_be_a_comment_tag()
 {
     var tag = new FixtureTag(fixture);
     tag.Children.First().ShouldBeOfType<CommentTag>().ShouldHaveClass(GrammarConstants.COMMENT).ShouldHaveClass(
         GrammarConstants.STEP);
 }
Ejemplo n.º 8
0
        public void SetUp()
        {
            sentence = new Sentence
            {
                Name = "Something"
            };

            var fixture = new FixtureStructure("Math");
            fixture.Policies.Tag(sentence.Name, "abc");
            fixture.Policies.Tag(sentence.Name, "def");
            fixture.Policies.Tag(Guid.NewGuid().ToString(), "tuv");

            fixtureTag = new FixtureTag(fixture);
            grammarTag = fixtureTag.Add(sentence);
        }
Ejemplo n.º 9
0
 private void writeFixture(FixtureGraph fixture)
 {
     _fixtureTag = new FixtureTag(fixture);
     _top.Child(_fixtureTag);
 }
Ejemplo n.º 10
0
        public void SetUp()
        {
            FixtureLibrary library =
                FixtureLibrary.For(x => x.AddFixturesFromAssemblyContaining<EmbeddedChoicesFixture>());

            // Look for the EmbeddedChoicesFixture
            fixture = library.FixtureFor("EmbeddedChoices");
            fixtureTag = new FixtureTag(fixture);
        }