Ejemplo n.º 1
0
 public void ShouldReturnNameAndVersionArray()
 {
     CogInstallationService service = new CogInstallationService();
     string version = "ninject-1.0";
     string[] nameversion = service.ParseCogName(version);
     Assert.Equal<string>(nameversion[0], "ninject");
     Assert.Equal<string>(nameversion[1], "1.0");
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     CogInstallationService cis = new CogInstallationService();
     string[] nameversion = cis.ParseCogName(args[1]);
     cis.InstallCog(new CogServerRepository(), nameversion[0], nameversion[1]);
 }