File tree Expand file tree Collapse file tree 2 files changed +132
-34
lines changed
src/ResourceManager/Profile/Commands.Profile.Test
SessionRecords/Microsoft.Azure.Commands.Profile.Test.SubscriptionCmdletTests Expand file tree Collapse file tree 2 files changed +132
-34
lines changed Original file line number Diff line number Diff line change 24
24
using System ;
25
25
using Microsoft . Azure . Commands . Profile . Models ;
26
26
using Microsoft . WindowsAzure . Commands . Test . Utilities . Common ;
27
+ using System . Management . Automation ;
27
28
28
29
namespace Microsoft . Azure . Commands . ResourceManager . Profile . Test
29
30
{
@@ -58,7 +59,7 @@ public void GetAzureContext()
58
59
var context = ( PSAzureContext ) commandRuntimeMock . OutputPipeline [ 0 ] ;
59
60
Assert . Equal ( "test" , context . Subscription . SubscriptionName ) ;
60
61
}
61
-
62
+
62
63
[ Fact ]
63
64
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
64
65
public void SelectAzureContextWithNoSubscriptionAndTenant ( )
@@ -76,7 +77,8 @@ public void SelectAzureContextWithNoSubscriptionAndTenant()
76
77
// Verify
77
78
Assert . True ( commandRuntimeMock . OutputPipeline . Count == 1 ) ;
78
79
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 ) ;
80
82
}
81
83
82
84
[ Fact ]
You can’t perform that action at this time.
0 commit comments