public void Generate() { // ARRANGE var assembly = typeof(TestServer).Assembly; // ACT var d = ApiDescription.GenerateFor(assembly); // ASSERT File.WriteAllText(@"../../../Conventions/synergy.web.api.testing.md", d); }
public void Generate() { // ARRANGE var assembly = typeof(Fail).Assembly; // ACT var publicApi = ApiDescription.GenerateFor(assembly); // ASSERT var writer = new MarkdownTextWriter(publicApi); var approvalNamer = new PublicApi.PublicApiGenerator.AssemblyPathNamer(assembly); Approvals.Verify(writer, approvalNamer, Approvals.GetReporter()); }