public void combines_the_list_of_all_errors() { var graph = new FixtureStructure("Math"); graph.AddStructure("key1", new StubGrammarStructure().AddError("error1")); graph.AddStructure("key2", new StubGrammarStructure().AddError("error1").AddError("error 2")); graph.AllErrors().Count().ShouldEqual(3); }
public void SetUp() { fixture = new FixtureStructure(); fixture.AddStructure("Hidden1", new Sentence()); fixture.AddStructure("Hidden2", new Sentence()); fixture.AddStructure("NotHidden3", new Sentence()); fixture.AddStructure("NotHidden4", new Sentence()); var constraints = new Policies(); constraints.HideGrammar("Hidden1"); constraints.HideGrammar("Hidden2"); fixture.Policies = constraints; }
public void SetUp() { fixtureStructure = new FixtureStructure("something"); structure = new StubGrammarStructure(); fixtureStructure.AddStructure("grammar1", structure); }
public FixtureStructure BuildTopLevelGraph() { var fixture = new FixtureStructure("Test"); fixture.Policies.SelectionMode = SelectionMode.OneOrMore; fixture.Policies.AddGrammarText = "Add Section"; _fixtures.Where(x => !x.Policies.IsPrivate).Each(x => { var grammar = new EmbeddedSection(x, x.Label ?? x.Name, x.Name); grammar.Style = EmbedStyle.TitledAndIndented; fixture.AddStructure(x.Name, grammar); }); return fixture; }