public void ShouldUnpackCogToCogDirectory() { CogInstallationService service = new CogInstallationService(); service.InstallCog(new LocalCogRepository(), "ninject", "1.0"); Assert.True(Directory.Exists(CogInstallationService.COGSPATH + "ninject-1.0"), "ninject-1.0 directory not created"); Assert.True(File.Exists(CogInstallationService.COGSPATH + "ninject-1.0/cog/Ninject.Core.dll"), "files not created"); }
static void Main(string[] args) { CogInstallationService cis = new CogInstallationService(); string[] nameversion = cis.ParseCogName(args[1]); cis.InstallCog(new CogServerRepository(), nameversion[0], nameversion[1]); }