コード例 #1
0
        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);
        }
コード例 #2
0
        private ApiListing CreateApiListingDocument(Assembly assembly)
        {
            var generator = new ApiListingGenerator(assembly, TestFilters);

            return(generator.GenerateApiListing());
        }