Skip to content

Commit c5c79e2

Browse files
author
Hovsep Mkrtchyan
committed
Fixed failing tests
1 parent e82498b commit c5c79e2

File tree

2 files changed

+132
-34
lines changed

2 files changed

+132
-34
lines changed

src/ResourceManager/Profile/Commands.Profile.Test/ContextCmdletTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
using System;
2525
using Microsoft.Azure.Commands.Profile.Models;
2626
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
27+
using System.Management.Automation;
2728

2829
namespace Microsoft.Azure.Commands.ResourceManager.Profile.Test
2930
{
@@ -58,7 +59,7 @@ public void GetAzureContext()
5859
var context = (PSAzureContext) commandRuntimeMock.OutputPipeline[0];
5960
Assert.Equal("test", context.Subscription.SubscriptionName);
6061
}
61-
62+
6263
[Fact]
6364
[Trait(Category.AcceptanceType, Category.CheckIn)]
6465
public void SelectAzureContextWithNoSubscriptionAndTenant()
@@ -76,7 +77,8 @@ public void SelectAzureContextWithNoSubscriptionAndTenant()
7677
// Verify
7778
Assert.True(commandRuntimeMock.OutputPipeline.Count == 1);
7879
var context = (PSAzureContext)commandRuntimeMock.OutputPipeline[0];
79-
Assert.Equal("72f988bf-86f1-41af-91ab-2d7cd011db47", context.Tenant.TenantId);
80+
// TenantId is not sufficient to change the context.
81+
Assert.NotEqual("72f988bf-86f1-41af-91ab-2d7cd011db47", context.Tenant.TenantId);
8082
}
8183

8284
[Fact]

0 commit comments

Comments
 (0)