Ejemplo n.º 1
0
        public void should_not_find_any_type_from_excluded_assembly_with_name_starts_with()
        {
            //-----------------------------------------------------------------------------------------------------------
            // Arrange
            //-----------------------------------------------------------------------------------------------------------

            // None.

            //-----------------------------------------------------------------------------------------------------------
            // Act
            //-----------------------------------------------------------------------------------------------------------
            FromAssemblyDefiner instance = AssemblyScanner.FromAssemblyInThisApplicationDirectory();

            //-----------------------------------------------------------------------------------------------------------
            // Assert
            //-----------------------------------------------------------------------------------------------------------
            instance.ExcludeAssemblyNameStartsWith("FluentAssemblyScanner.Test.Ad")
            .BasedOn <IAdditionalAssemblyService>()
            .Filter()
            .Scan()
            .Count.Should().Be(0);
        }