public void LoadFromFiltersMembersOnTheInternalNamespace() { // Arrange var serialized = @"{ ""AssemblyIdentity"": ""Test"", ""Types"": [ { ""Name"": ""Scenarios.Internal.ExcludedType"" } ] }"; // Act var report = ApiListingGenerator.LoadFrom(serialized, new Func <ApiElement, bool>[] { ApiListingFilters.IsInInternalNamespace }); // Assert Assert.NotNull(report); Assert.NotNull(report.Types); Assert.Empty(report.Types); }
private ApiListing CreateApiListingDocument(Assembly assembly) { var generator = new ApiListingGenerator(assembly, TestFilters); return(generator.GenerateApiListing()); }