private static Stream DescribeType(Type type, SlashdocDictionary slashdoc) { var stream = new MemoryStream(); var language = new CSharpSignatureProvider(); using (var writer = new ApiReferenceHtmlWriter(stream, false, "Xyz", slashdoc, language, new Mock <ILog>().Object)) { writer.DescribeType(type, new SlashdocSummaryHtmlFormatter(DummyAssembly, language)); } stream.Seek(0, SeekOrigin.Begin); return(stream); }
private static void DescribeTheSlashdocMappingTestClass(bool enableMissingSummaryWarnings, ILog logger) { var language = new CSharpSignatureProvider(); using (var stream = new MemoryStream()) { using (var writer = new ApiReferenceHtmlWriter(stream, false, "Xyz", new SlashdocDictionary(), language, logger)) { writer.EnableMissingSummaryWarnings = enableMissingSummaryWarnings; writer.DescribeType(typeof(TestData.Xyz.Foo.SlashdocMappingTestClass), new SlashdocSummaryHtmlFormatter(DummyAssembly, language)); } } }
private static Stream DescribeType(Type type, SlashdocDictionary slashdoc) { var stream = new MemoryStream(); var language = new CSharpSignatureProvider(); using (var writer = new ApiReferenceHtmlWriter(stream, false, "Xyz", slashdoc, language, new Mock<ILog>().Object)) { writer.DescribeType(type, new SlashdocSummaryHtmlFormatter(DummyAssembly, language)); } stream.Seek(0, SeekOrigin.Begin); return stream; }