Example #1
0
        public void PublicApiHelpers_GenerateTypeDefinitionsForAssembly_Breakdance()
        {
            var definitions = PublicApiHelpers.GenerateTypeDefinitionsForAssembly("CloudNimble.Breakdance.Assemblies.dll");

            definitions.Should().NotBeNullOrEmpty();
            definitions.Should().HaveCount(22);
        }
Example #2
0
        public void PublicApiHelpers_GenerateMemberDefinitions_SomeStaticClass()
        {
            var type        = typeof(SomeStaticClass);
            var classResult = PublicApiHelpers.GenerateMemberDefinitions(type);

            classResult.Should().NotBeNullOrEmpty();
        }
Example #3
0
        public void WritePublicApiManifest(string path)
        {
            var report   = PublicApiHelpers.GetPublicApiSurfaceReport("CloudNimble.Breakdance.Assemblies.dll");
            var fullPath = Path.Combine(path, "Baselines//CloudNimble.Breakdance.Assemblies.txt");

            if (!Directory.Exists(Path.GetDirectoryName(fullPath)))
            {
                Directory.CreateDirectory(Path.GetDirectoryName(fullPath));
            }
            File.WriteAllText(fullPath, report);
        }
Example #4
0
        public void PublicApiHelpers_GetPublicApiSurfaceReport_UnknownAssembly()
        {
            var report = PublicApiHelpers.GetPublicApiSurfaceReport("Azkaban.dll");

            report.Should().BeNullOrWhiteSpace();
        }
Example #5
0
        public void PublicApiHelpers_GetPublicApiSurfaceReport_FluentAssertions()
        {
            var report = PublicApiHelpers.GetPublicApiSurfaceReport("FluentAssertions.dll");

            report.Should().NotBeNullOrWhiteSpace();
        }
Example #6
0
        public void PublicApiHelpers_GetPublicApiSurfaceReport_Breakdance()
        {
            var report = PublicApiHelpers.GetPublicApiSurfaceReport("CloudNimble.Breakdance.Assemblies.dll");

            report.Should().NotBeNullOrWhiteSpace();
        }