@@ -59,48 +59,6 @@ public void GetAzureContext()
59
59
Assert . Equal ( "test" , context . Subscription . SubscriptionName ) ;
60
60
}
61
61
62
- [ Fact ]
63
- [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
64
- public void SelectAzureContextWithSubscriptionAndTenant ( )
65
- {
66
- var cmdlt = new SetAzureRMContextCommand ( ) ;
67
- // Setup
68
- cmdlt . CommandRuntime = commandRuntimeMock ;
69
- cmdlt . SubscriptionId = "db1ab6f0-4769-4b27-930e-01e2ef9c123c" ;
70
- cmdlt . TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" ;
71
-
72
- // Act
73
- cmdlt . InvokeBeginProcessing ( ) ;
74
- cmdlt . ExecuteCmdlet ( ) ;
75
- cmdlt . InvokeEndProcessing ( ) ;
76
-
77
- // Verify
78
- Assert . True ( commandRuntimeMock . OutputPipeline . Count == 1 ) ;
79
- var context = ( PSAzureContext ) commandRuntimeMock . OutputPipeline [ 0 ] ;
80
- Assert . Equal ( "db1ab6f0-4769-4b27-930e-01e2ef9c123c" , context . Subscription . SubscriptionId ) ;
81
- Assert . Equal ( "72f988bf-86f1-41af-91ab-2d7cd011db47" , context . Tenant . TenantId ) ;
82
- }
83
-
84
- [ Fact ]
85
- [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
86
- public void SelectAzureContextWithSubscriptionAndNoTenant ( )
87
- {
88
- var cmdlt = new SetAzureRMContextCommand ( ) ;
89
- // Setup
90
- cmdlt . CommandRuntime = commandRuntimeMock ;
91
- cmdlt . SubscriptionId = "db1ab6f0-4769-4b27-930e-01e2ef9c123c" ;
92
-
93
- // Act
94
- cmdlt . InvokeBeginProcessing ( ) ;
95
- cmdlt . ExecuteCmdlet ( ) ;
96
- cmdlt . InvokeEndProcessing ( ) ;
97
-
98
- // Verify
99
- Assert . True ( commandRuntimeMock . OutputPipeline . Count == 1 ) ;
100
- var context = ( PSAzureContext ) commandRuntimeMock . OutputPipeline [ 0 ] ;
101
- Assert . Equal ( "db1ab6f0-4769-4b27-930e-01e2ef9c123c" , context . Subscription . SubscriptionId ) ;
102
- }
103
-
104
62
[ Fact ]
105
63
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
106
64
public void SelectAzureContextWithNoSubscriptionAndTenant ( )
0 commit comments