Esempio n. 1
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);
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        public void write_a_div_with_the_id()
        {
            var tag = new FixtureTag(fixture);

            tag.TagName().ShouldEqual("div");

            tag.Id().ShouldEqual("Math");
        }
Esempio n. 4
0
        public void SetUp()
        {
            FixtureLibrary library =
                FixtureLibrary.For(x => x.AddFixturesFromAssemblyContaining <EmbeddedChoicesFixture>());

            // Look for the EmbeddedChoicesFixture
            fixture    = library.FixtureFor("EmbeddedChoices");
            fixtureTag = new FixtureTag(fixture);
        }
Esempio n. 5
0
        public void do_not_write_remove_link_for_the_mandatory_autoselect_grammar()
        {
            var fixture =
                FixtureLibrary.For(x => x.AddFixture <MandatorySelectionFixture>()).FixtureFor("MandatorySelection");

            var fixtureTag = new FixtureTag(fixture);

            fixtureTag.Children.First(x => x.HasClass("StartWithTheNumber")).Children.Any(x => x is RemoveLinkTag).
            ShouldBeFalse();
        }
Esempio n. 6
0
        public void SetUp()
        {
            sentence = new Sentence
            {
                Name = "Something"
            };

            var fixture = new FixtureGraph("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);
        }