protected void RunPowerShellTest(params string[] scripts) { using (UndoContext context = UndoContext.Current) { context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2)); try { SetupManagementClients(); // Create the resource group this.TryRegisterSubscriptionForResource(); this.TryCreateResourceGroup(this.resourceGroupName, DataLakeStoreTestsBase.resourceGroupLocation); helper.SetupEnvironment(AzureModule.AzureResourceManager); helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1", helper.RMProfileModule, helper.GetRMModulePath(@"AzureRM.DataLakeStore.psd1")); helper.RunPowerShellTest(scripts); } finally { context.UndoAll(); } } }