Exemplo n.º 1
0
        public void should_use_the_embedded_grammar_title_in_the_forward()
        {
            var fixture = new FakeEmbeddedFixture();
            var model   = fixture.Compile(CellHandling.Basic());

            var grammar = model.FindGrammar("BuildUp").ShouldBeOfType <EmbeddedSection>();

            grammar.title.ShouldBe("Gimme an Address");
        }
Exemplo n.º 2
0
        public void should_use_the_explicit_title_of_an_embedded_grammar()
        {
            var fixture = new FakeEmbeddedFixture();
            var model   = fixture.Compile(CellHandling.Basic());

            var grammar = model.FindGrammar("Embedded").ShouldBeOfType <EmbeddedSection>();

            grammar.title.ShouldBe("I wanna do some math");
            grammar.TitleOrFormat().ShouldBe("I wanna do some math");
        }