File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -221,19 +221,20 @@ public void PopupPageT_Close_ShouldThrowOperationCanceledException_WhenTokenIsCa
221221 public void TapGestureRecognizer_VerifyCanBeDismissedByTappingOutsideOfPopup_ShouldNotExecuteWhenEitherFalse ( )
222222 {
223223 // Arrange
224- var view = new Popup
225- {
226- CanBeDismissedByTappingOutsideOfPopup = false
227- } ;
228- var popupOptions = new PopupOptions
229- {
230- CanBeDismissedByTappingOutsideOfPopup = false
231- } ;
224+ var view = new Popup ( ) ;
225+ var popupOptions = new PopupOptions ( ) ;
232226
233227 // Act
234228 var popupPage = new PopupPage ( view , popupOptions ) ;
235229 var tapGestureRecognizer = popupPage . Content . Children . OfType < BoxView > ( ) . Single ( ) . GestureRecognizers . OfType < TapGestureRecognizer > ( ) . Single ( ) ;
236230
231+ // Assert
232+ Assert . True ( tapGestureRecognizer . Command ? . CanExecute ( null ) ) ;
233+
234+ // Act
235+ view . CanBeDismissedByTappingOutsideOfPopup = false ;
236+ popupOptions . CanBeDismissedByTappingOutsideOfPopup = false ;
237+
237238 // Assert
238239 Assert . False ( tapGestureRecognizer . Command ? . CanExecute ( null ) ) ;
239240
You can’t perform that action at this time.
0 commit comments