protected override void beforeEach()
        {
            _grammar = null;
            fixture  = new MathFixture();
            ClassUnderTest.FixtureName = "Math";

            MockFor <IFixtureContext>().Stub(x => x.RetrieveFixture(ClassUnderTest.FixtureName)).Return(fixture);
        }
Beispiel #2
0
        public void integrated_test_for_the_default_value_coming_all_the_way_through()
        {
            var fixture  = new MathFixture();
            var sentence = fixture["StartWith"].ToStructure(new FixtureLibrary()).ShouldBeOfType <Sentence>();
            var cell     = sentence.Cells[0].ToInputCell();
            var buildTag = new CellBuilderLibrary().BuildTag(cell);

            buildTag.MetaData("defaultValue").ShouldEqual(cell.DefaultValue);
        }
        public void fixture_puts_a_fixture_key_on_all_grammars()
        {
            var fixture = new MathFixture();

            fixture.Compile(CellHandling.Basic());
            var allGrammars = fixture.AllGrammars().ToArray();

            allGrammars.Each(x => x.Key.ShouldNotBeNull());
        }
Beispiel #4
0
        public void get_header_attribute_off_of_table()
        {
            var  fixture  = new MathFixture();
            var  sentence = fixture["StartWith"].ToStructure(new FixtureLibrary()).ShouldBeOfType <Sentence>();
            Cell cell     = sentence.Cells.First();

            cell.DefaultValue.ShouldEqual("11");

            cell.ToInputCell().DefaultValue.ShouldEqual("11");

            var tag = new CellTag(cell, new Step());

            tag.MetaData("defaultValue").ShouldEqual("11");
        }