public void DiscoverPackageMetadata_ExecutesEmbeddedLocationHeuristics()
        {
            var heuristic = new FakeHeuristic();

            _disc = new PackageMetadataLocator(new MetadataDiscoveryHeuristics {
                heuristic
            });

            _disc.DiscoverPackageMetadata(_discoveryRoot);

            Assert.That(heuristic.Executed, Is.True);
        }
Exemple #2
0
 public Packager(PackageFileLocator packageFileLocator, PackageMetadataLocator metaDataLocator, PackageConstructor constructor)
 {
     _packageFileLocator = packageFileLocator;
     _metaDataLocator    = metaDataLocator;
     _constructor        = constructor;
 }
 public void SetUp()
 {
     _discoveryRoot = "";
     _disc          = new PackageMetadataLocator(new MetadataDiscoveryHeuristics());
 }