Exemplo n.º 1
0
        public void TestThat_ArtifactWithDependencyDetectsCorrectDependency()
        {
            var dependencyHandler = new ArtifactDependencyHandler();
            var settings          = new ConDepSettings {
                Options = { Assembly = GetType().Assembly }
            };

            var artifact = new MyArtifactDependentOnStandardArtifact();

            dependencyHandler.PopulateWithDependencies(artifact, settings);
            Assert.That(artifact.Dependencies.Single(), Is.InstanceOf <MyStandardArtifact1>());
        }
Exemplo n.º 2
0
        public void TestThat_ArtifactWithDependencyDetectsCorrectDependency()
        {
            var dependencyHandler = new RunbookDependencyHandler();
            var settings          = new ConDepSettings {
                Options = { Assembly = GetType().Assembly }
            };

            var artifact = new MyArtifactDependentOnStandardArtifact();
            var runbooks = dependencyHandler.GetDependeciesForRunbook(artifact, settings);

            Assert.That(runbooks.First(), Is.InstanceOf <MyStandardArtifact1>());
        }