Inheritance: HtmlTags.HtmlTag, IGrammarVisitor
コード例 #1
0
        private FixtureTag writeFixture(FixtureGraph fixture)
        {
            _fixtureTag = new FixtureTag(fixture);
            _top.Append(_fixtureTag);

            return _fixtureTag;
        }
コード例 #2
0
        public void write_a_div_with_the_id()
        {
            var tag = new FixtureTag(fixture);
            tag.TagName().ShouldEqual("div");

            tag.Id().ShouldEqual("Math");
        }
コード例 #3
0
        private FixtureTag writeFixture(FixtureGraph fixture)
        {
            _fixtureTag = new FixtureTag(fixture);
            _top.Append(_fixtureTag);

            return(_fixtureTag);
        }
コード例 #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();
        }
コード例 #5
0
        public void SetUp()
        {
            FixtureLibrary library =
                FixtureGraph.Library;

            // Look for the EmbeddedChoicesFixture
            fixture = library.FixtureFor("EmbeddedChoices");
            fixtureTag = new FixtureTag(fixture);
        }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
        }
コード例 #9
0
ファイル: GrammarWriter.cs プロジェクト: wbinford/storyteller
 private void writeFixture(FixtureGraph fixture)
 {
     _fixtureTag = new FixtureTag(fixture);
     _top.Child(_fixtureTag);
 }
コード例 #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);
        }