public void no_hidden_grammars_in_fixture_model() { var compiledFixture = FixtureLibrary.CreateCompiledFixture(CellHandling.Basic(), typeof(TopicFolderFixture)); compiledFixture.Model.grammars.OrderBy(x => x.key).Select(x => x.key) .ShouldHaveTheSameElementsAs("AllTopicsShouldBe", "CheckTopic", "ForFile", "TheTopicsAre", "TODO", "WriteFile"); }
public void build_for_grammar_that_blows_up_in_a_method() { var compiled = FixtureLibrary.CreateCompiledFixture(CellHandling.Basic(), typeof(FixtureWithGrammarThatBlowsUp)); var grammar = compiled.Model.FindGrammar("Bad"); grammar.key.ShouldBe("Bad"); grammar.errors.Single() .error.ShouldContain("No!"); }
public void build_for_fixture_that_blows_up() { var compiled = FixtureLibrary.CreateCompiledFixture(CellHandling.Basic(), typeof(FixtureThatBlowsUp)); compiled.Model.implementation.ShouldBe(typeof(FixtureThatBlowsUp).FullName); }