private FixtureTag writeFixture(FixtureGraph fixture) { _fixtureTag = new FixtureTag(fixture); _top.Append(_fixtureTag); return _fixtureTag; }
public void write_a_div_with_the_id() { var tag = new FixtureTag(fixture); tag.TagName().ShouldEqual("div"); tag.Id().ShouldEqual("Math"); }
private FixtureTag writeFixture(FixtureGraph fixture) { _fixtureTag = new FixtureTag(fixture); _top.Append(_fixtureTag); return(_fixtureTag); }
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(); }
public void SetUp() { FixtureLibrary library = FixtureGraph.Library; // Look for the EmbeddedChoicesFixture fixture = library.FixtureFor("EmbeddedChoices"); fixtureTag = new FixtureTag(fixture); }
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); }
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); }
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); }
private void writeFixture(FixtureGraph fixture) { _fixtureTag = new FixtureTag(fixture); _top.Child(_fixtureTag); }
public void SetUp() { FixtureLibrary library = FixtureLibrary.For(x => x.AddFixturesFromAssemblyContaining<EmbeddedChoicesFixture>()); // Look for the EmbeddedChoicesFixture fixture = library.FixtureFor("EmbeddedChoices"); fixtureTag = new FixtureTag(fixture); }