public void generate_should_pass_assemblies_to_parser_when_set_directly() { var parser = MockRepository.GenerateMock<IAssemblyXmlParser>(); var generator = new DocumentationGenerator(StubAssemblyLoader, StubXmlLoader, parser, StubWriter, StubResourceManager, StubEventAggregator); generator.SetXmlContent(new[] { "content" }); generator.Generate(); parser.AssertWasCalled(x => x.CreateDocumentModel(null, null), x => x.Constraints(Is.Anything(), List.ContainsAll(new[] { "content" }))); }
public void generate_should_pass_assemblies_to_parser_when_set_directly() { var parser = MockRepository.GenerateMock <IAssemblyXmlParser>(); var generator = new DocumentationGenerator(StubAssemblyLoader, StubXmlLoader, parser, StubWriter, StubResourceManager, StubEventAggregator); generator.SetXmlContent(new[] { "content" }); generator.Generate(); parser.AssertWasCalled(x => x.CreateDocumentModel(null, null), x => x.Constraints(Is.Anything(), List.ContainsAll(new[] { "content" }))); }