Ejemplo n.º 1
0
 public void CheckAccountNameAvailabilityInvalidCredential()
 {
     if (isResourceMode)
     {
         PowerShellAgent.RemoveAzureSubscriptionIfExists();
         CommandAgent.Logout();
         string accountName = AccountUtils.GenerateAvailableAccountName();
         Test.Assert(!CommandAgent.CheckNameAvailability(accountName), "Check name availability should fail.");
         ExpectedContainErrorMessage("No subscription found in the context.");
     }
 }