@@ -62,7 +62,7 @@ public void AddsAzureEnvironment()
62
62
cmdlet . ExecuteCmdlet ( ) ;
63
63
cmdlet . InvokeEndProcessing ( ) ;
64
64
65
- commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSObject > ( ) ) , Times . Once ( ) ) ;
65
+ commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSAzureEnvironment > ( ) ) , Times . Once ( ) ) ;
66
66
ProfileClient client = new ProfileClient ( profile ) ;
67
67
AzureEnvironment env = client . GetEnvironmentOrDefault ( "KaTaL" ) ;
68
68
Assert . Equal ( env . Name , cmdlet . Name ) ;
@@ -91,7 +91,7 @@ public void AddsEnvironmentWithMinimumInformation()
91
91
cmdlet . ExecuteCmdlet ( ) ;
92
92
cmdlet . InvokeEndProcessing ( ) ;
93
93
94
- commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSObject > ( ) ) , Times . Once ( ) ) ;
94
+ commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSAzureEnvironment > ( ) ) , Times . Once ( ) ) ;
95
95
ProfileClient client = new ProfileClient ( profile ) ;
96
96
AzureEnvironment env = client . Profile . Environments [ "KaTaL" ] ;
97
97
Assert . Equal ( env . Name , cmdlet . Name ) ;
@@ -146,9 +146,9 @@ public void AddsEnvironmentWithStorageEndpoint()
146
146
{
147
147
var profile = new AzureProfile ( ) ;
148
148
Mock < ICommandRuntime > commandRuntimeMock = new Mock < ICommandRuntime > ( ) ;
149
- PSObject actual = null ;
149
+ PSAzureEnvironment actual = null ;
150
150
commandRuntimeMock . Setup ( f => f . WriteObject ( It . IsAny < object > ( ) ) )
151
- . Callback ( ( object output ) => actual = ( PSObject ) output ) ;
151
+ . Callback ( ( object output ) => actual = ( PSAzureEnvironment ) output ) ;
152
152
AddAzureEnvironmentCommand cmdlet = new AddAzureEnvironmentCommand ( )
153
153
{
154
154
CommandRuntime = commandRuntimeMock . Object ,
@@ -162,11 +162,11 @@ public void AddsEnvironmentWithStorageEndpoint()
162
162
cmdlet . ExecuteCmdlet ( ) ;
163
163
cmdlet . InvokeEndProcessing ( ) ;
164
164
165
- commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSObject > ( ) ) , Times . Once ( ) ) ;
165
+ commandRuntimeMock . Verify ( f => f . WriteObject ( It . IsAny < PSAzureEnvironment > ( ) ) , Times . Once ( ) ) ;
166
166
ProfileClient client = new ProfileClient ( profile ) ;
167
167
AzureEnvironment env = client . Profile . Environments [ "KaTaL" ] ;
168
168
Assert . Equal ( env . Name , cmdlet . Name ) ;
169
- Assert . Equal ( env . Endpoints [ AzureEnvironment . Endpoint . PublishSettingsFileUrl ] , actual . GetVariableValue < string > ( AzureEnvironment . Endpoint . PublishSettingsFileUrl . ToString ( ) ) ) ;
169
+ Assert . Equal ( env . Endpoints [ AzureEnvironment . Endpoint . PublishSettingsFileUrl ] , actual . PublishSettingsFileUrl ) ;
170
170
}
171
171
172
172
[ Fact ]
0 commit comments