public static void Success (string packageName, NuGetOperations operation, bool waitForWarning = true) { new WaitForNuGet { Operation = operation, PackageName = packageName, WaitForSuccess = true, WaitForWarning = waitForWarning }.Wait (); }
public static void Success(string packageName, NuGetOperations operation, bool waitForWarning = true, UITestBase testContext = null) { var waitPackage = new WaitForNuGet { Operation = operation, PackageName = packageName, WaitForSuccess = true, WaitForWarning = waitForWarning }; if (testContext != null) { testContext.ReproStep(string.Format("Wait for one of these messages:\n\t{0}", string.Join("\t\n", waitPackage.ToMessages()))); } waitPackage.Wait(); }
public static void Success (string packageName, NuGetOperations operation, bool waitForWarning = true, UITestBase testContext = null) { var waitPackage = new WaitForNuGet { Operation = operation, PackageName = packageName, WaitForSuccess = true, WaitForWarning = waitForWarning }; if (testContext != null) { testContext.ReproStep (string.Format ("Wait for one of these messages:\n\t{0}", string.Join ("\t\n", waitPackage.ToMessages ()))); } waitPackage.Wait (); }