示例#1
0
        public void can_resolve_grammars_created_by_a_public_method()
        {
            var fixture = new FixtureWithProgrammaticGrammars();

            fixture.Compile(CellHandling.Basic()).grammars.OfType<StubGrammarModel>().ShouldHaveTheSameElementsAs(
                new StubGrammarModel {key = "foo",},
                new StubGrammarModel {key = "bar",},
                new StubGrammarModel {key = "baz",}
                );
        }
示例#2
0
        public void can_resolve_grammars_created_by_a_public_method()
        {
            var fixture = new FixtureWithProgrammaticGrammars();

            fixture.Compile(CellHandling.Basic()).grammars.OfType <StubGrammarModel>().ShouldHaveTheSameElementsAs(
                new StubGrammarModel {
                key = "foo",
            },
                new StubGrammarModel {
                key = "bar",
            },
                new StubGrammarModel {
                key = "baz",
            }
                );
        }