Ejemplo n.º 1
0
        public void can_customize_cell_display_and_usage()
        {
            var fixture  = new AddressCheckerFixture();
            var model    = fixture.Compile(CellHandling.Basic());
            var sentence = model.FindGrammar("City").As <Sentence>();

            sentence.cells[0].options.Length.ShouldBe(3);
            sentence.cells[0].editor.ShouldBe("select");
        }
Ejemplo n.º 2
0
        public void has_all_the_props_and_fields()
        {
            var fixture = new AddressCheckerFixture();

            fixture.Compile(CellHandling.Basic());

            fixture["City"].ShouldBeOfType <CheckPropertyGrammar>();
            fixture["County"].ShouldBeOfType <CheckPropertyGrammar>();
            fixture["Area.Name"].ShouldBeOfType <CheckPropertyGrammar>();
        }