public void should_not_find_any_type_from_excluded_assembly_with_name_contains() { //----------------------------------------------------------------------------------------------------------- // Arrange //----------------------------------------------------------------------------------------------------------- // None. //----------------------------------------------------------------------------------------------------------- // Act //----------------------------------------------------------------------------------------------------------- FromAssemblyDefiner instance = AssemblyScanner.FromAssemblyInThisApplicationDirectory(); //----------------------------------------------------------------------------------------------------------- // Assert //----------------------------------------------------------------------------------------------------------- instance.ExcludeAssemblyNameContains("AdditionalAssembly") .BasedOn <IAdditionalAssemblyService>() .Filter() .Scan() .Count.Should().Be(0); }