GetCloudRuntimes() public method

Retrieve currently available cloud runtimes
public GetCloudRuntimes ( Microsoft.WindowsAzure.Management.CloudService.Model.ServicePathInfo paths, string manifest ) : CloudRuntimeCollection
paths Microsoft.WindowsAzure.Management.CloudService.Model.ServicePathInfo service path info
manifest string The manifest to use to get current runtime info - default is the cloud manifest
return CloudRuntimeCollection
 public void TestGetRuntimes()
 {
     using (FileSystemHelper files = new FileSystemHelper(this))
     {
         AzureService service = new AzureService(files.RootPath, serviceName, null);
         service.AddWebRole(Resources.NodeScaffolding);
         string manifest = RuntimePackageHelper.GetTestManifest(files);
         CloudRuntimeCollection collection = service.GetCloudRuntimes(service.Paths, manifest);
         RuntimePackageHelper.ValidateRuntimesMatchManifest(manifest, collection);
     }
 }
        public void TestGetRuntimes()
        {
            using (FileSystemHelper files = new FileSystemHelper(this))
            {
                AzureService service = new AzureService(files.RootPath, serviceName, null);
                string manifest = RuntimePackageHelper.GetTestManifest(files);
                CloudRuntimeCollection expected = service.GetCloudRuntimes(service.Paths, manifest);

                cmdlet.GetAzureRuntimesProcess(string.Empty, Path.Combine(files.RootPath, serviceName), manifest);

                List<CloudRuntimePackage> actual = writer.OutputChannel[0] as List<CloudRuntimePackage>;

                Assert.AreEqual<int>(expected.Count, actual.Count);
                Assert.IsTrue(expected.All<CloudRuntimePackage>( p => actual.Any<CloudRuntimePackage>(p2 => p2.PackageUri.Equals(p.PackageUri))));
            }
        }