Example #1
0
        public void should_not_find_any_type_from_excluded_assembly_with_name_ends_with()
        {
            //-----------------------------------------------------------------------------------------------------------
            // Arrange
            //-----------------------------------------------------------------------------------------------------------

            // None.

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

            //-----------------------------------------------------------------------------------------------------------
            // Assert
            //-----------------------------------------------------------------------------------------------------------
            instance.ExcludeAssemblyNameEndsWith("embly")
            .BasedOn <IAdditionalAssemblyService>()
            .Filter()
            .Scan()
            .Count.Should().Be(0);
        }