File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/Accounts/Authentication.Test Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,20 @@ public void CanHandleShouldProcessExceptionForConfirm()
144
144
} ) ;
145
145
}
146
146
147
+ [ Fact ]
148
+ [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
149
+ public void CanHandleConfirmSetToFalse ( )
150
+ {
151
+ Mock < ICommandRuntime > mockRuntime ;
152
+ var cmdlet = SetupCmdlet ( true , false , out mockRuntime ) ;
153
+ cmdlet . MyInvocation . BoundParameters [ "Confirm" ] = new SwitchParameter ( false ) ;
154
+ var job = cmdlet . ExecuteAsJob ( "Test Job" ) as AzureLongRunningJob < AzureStreamTestCmdlet > ;
155
+ WaitForCompletion ( job , j =>
156
+ {
157
+ ValidateCompletedCmdlet ( job ) ;
158
+ } ) ;
159
+ }
160
+
147
161
[ Fact ]
148
162
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
149
163
public void CanHandleShouldProcessExceptionForWhatIf ( )
You can’t perform that action at this time.
0 commit comments