public void PickAny_count_should_be_greater_than_zero() { //----------------------------------------------------------------------------------------------------------- // Arrange //----------------------------------------------------------------------------------------------------------- // None. //----------------------------------------------------------------------------------------------------------- // Act //----------------------------------------------------------------------------------------------------------- FromAssemblyDefiner instance = AssemblyScanner.FromAssemblyInThisApplicationDirectory(); //----------------------------------------------------------------------------------------------------------- // Assert //----------------------------------------------------------------------------------------------------------- instance.PickAny().Filter().Scan().Count.Should().BeGreaterThan(0); }
public void when_use_with_filter_with_non_abstract_classes_should_not_return_any_abstract() { //----------------------------------------------------------------------------------------------------------- // Arrange //----------------------------------------------------------------------------------------------------------- // None. //----------------------------------------------------------------------------------------------------------- // Act //----------------------------------------------------------------------------------------------------------- FromAssemblyDefiner instance = AssemblyScanner.FromAssemblyInThisApplicationDirectory(); //----------------------------------------------------------------------------------------------------------- // Assert //----------------------------------------------------------------------------------------------------------- List <Type> scannedTypes = instance.PickAny() .Filter() .Classes() .NonAbstract() .Scan(); scannedTypes.Should().NotContain(typeof(AbstractDbContext)); }