Пример #1
0
        public void SetUp()
        {
            FixtureLibrary library = FixtureLibrary.For(x => x.AddFixture <SentenceTargetFixture>());

            grammarTag =
                new GrammarTag(library.FixtureFor(typeof(SentenceTargetFixture).GetFixtureAlias()).GrammarFor("Go"));
            var writer = new SentenceWriter(grammarTag, new CellBuilderLibrary());

            writer.Write();
        }
Пример #2
0
        public void write_text()
        {
            var writer = new SentenceWriter(grammarTag, new CellBuilderLibrary());

            writer.Label(new Label("some text"));

            HtmlTag span = grammarTag.Children.First();

            span.TagName().ShouldEqual("span");
            span.Text().ShouldEqual("some text");
        }
Пример #3
0
        public void SetUp()
        {
            tag        = null;
            grammarTag = new GrammarTag(new Sentence
            {
                Name = "Math"
            });

            cell = new Cell("name", typeof(string));

            writer = new SentenceWriter(grammarTag, new CellBuilderLibrary());
        }
Пример #4
0
        public void SetUp()
        {
            var grammarTag = new GrammarTag(new Sentence
            {
                Name = "Math"
            });

            Cell cell = Cell.For <string>("name");

            cell.SelectionValues = new List <string>
            {
                "Jeremy",
                "Josh",
                "Chad"
            };

            var writer = new SentenceWriter(grammarTag, new CellBuilderLibrary());

            writer.Input(new TextInput(cell));

            select = grammarTag.Children.First();
        }
Пример #5
0
        public void WriteSentenceText(OutlineNode node, Sentence sentence, IStep step)
        {
            var writer = new SentenceWriter(node, step);

            sentence.Parts.Each(x => x.AcceptVisitor(writer));
        }
Пример #6
0
 public void WriteSentenceText(OutlineNode node, Sentence sentence, IStep step)
 {
     var writer = new SentenceWriter(node, step);
     sentence.Parts.Each(x => x.AcceptVisitor(writer));
 }