public void RestorePackageFromV2Feed() { ClientSDKHelper.ClearMachineCache(); //clear local cache. try { string packageId = Constants.TestPackageId; //the package name shall be fixed as it really doesnt matter which package we are trying to install. string version = "1.0.0"; Task <string> downloadTask = ODataHelper.DownloadPackageFromFeed(packageId, version, "Restore"); string filename = downloadTask.Result; //check if the file exists. Assert.IsTrue(File.Exists(filename), " Package restore from V2 feed didnt work"); string downloadedPackageId = ClientSDKHelper.GetPackageIdFromNupkgFile(filename); //Check that the downloaded Nupkg file is not corrupt and it indeed corresponds to the package which we were trying to download. Assert.IsTrue(downloadedPackageId.Equals(packageId), "Unable to unzip the package restored via V2 Feed. Check log for details"); } catch (Exception e) { Assert.Fail(e.Message); } }