public void SearchWebMatrixCuratedFeed() { string packageName = "NuGetGallery.FunctionalTests.SearchWebMatrixCuratedFeed"; string ticks = DateTime.Now.Ticks.ToString(); string version = new System.Version(ticks.Substring(0, 6) + "." + ticks.Substring(6, 6) + "." + ticks.Substring(12, 6)).ToString(); string packageFullPath = PackageCreationHelper.CreateWebMatrixCuratedPackage(packageName, version); int exitCode = CmdLineHelper.UploadPackage(packageFullPath, UrlHelper.V2FeedPushSourceUrl); Assert.IsTrue((exitCode == 0), "The package upload via Nuget.exe didnt suceed properly. Check the logs to see the process error and output stream"); // The feed could update anytime in the next 5 minutes and this test would be considered a success. bool applied = false; for (int i = 0; i < 10 && applied == false; i++) { System.Threading.Thread.Sleep(30000); if (ClientSDKHelper.CheckIfPackageExistsInSource(packageName, UrlHelper.WebMatrixCuratedFeedUrl)) { applied = true; } } Assert.IsTrue(applied, "Package {0} is not found in the site {1} after uploading.", packageName, UrlHelper.WebMatrixCuratedFeedUrl); }