Ejemplo n.º 1
0
        public void add_a_nuget_spec_should_add_it_to_the_collection_and_set_itself_as_the_publisher_to_the_spec()
        {
            var spec = new NugetSpec("fubucore", "somefile.nuspec");

            var solution = new Solution(new SolutionConfig()
            {
                SourceFolder = "src"
            }, "directory1");

            solution.AddNugetSpec(spec);

            spec.Publisher.ShouldBeTheSameAs(solution);
            solution.PublishedNugets.ShouldContain(spec);
        }
Ejemplo n.º 2
0
 private static void readNugetSpecs(string directory, SolutionConfig config, FileSystem system, Solution solution)
 {
     system.FindFiles(directory.AppendPath(config.NugetSpecFolder), new FileSet(){
         Include = "*.nuspec"
     })
         .Each(file =>
         {
             var spec = NugetSpec.ReadFrom(file);
             solution.AddNugetSpec(spec);
         });
 }