@@ -51,40 +51,40 @@ public void BindCommandThrowsArgumentNullExceptionWhenParameterHandlersNull()
5151 [ Test ]
5252 public void BindCommandWithDefaults ( )
5353 {
54- var textCell = new Button
54+ var button = new Button
5555 {
5656 BindingContext = viewModel
5757 } ;
5858
59- textCell . BindCommand ( static ( ViewModel vm ) => vm . Command ) ;
59+ button . BindCommand ( static ( ViewModel vm ) => vm . Command ) ;
6060
61- BindingHelpers . AssertTypedBindingExists ( textCell , Button . CommandProperty , BindingMode . Default , viewModel ) ;
62- Assert . That ( BindingHelpers . GetBinding ( textCell , Button . CommandParameterProperty ) , Is . Null ) ;
61+ BindingHelpers . AssertTypedBindingExists ( button , Button . CommandProperty , BindingMode . Default , viewModel ) ;
62+ Assert . That ( BindingHelpers . GetBinding ( button , Button . CommandParameterProperty ) , Is . Null ) ;
6363 }
6464
6565 [ Test ]
6666 public void BindCommandWithParameters ( )
6767 {
6868 ArgumentNullException . ThrowIfNull ( viewModel ) ;
6969
70- var textCell = new Button
70+ var button = new Button
7171 {
7272 BindingContext = viewModel
7373 } ;
7474
75- textCell . BindCommand (
75+ button . BindCommand (
7676 static ( ViewModel vm ) => vm . Command ,
7777 commandBindingMode : BindingMode . OneTime ,
7878 parameterGetter : static ( ViewModel vm ) => vm . Id ,
7979 parameterBindingMode : BindingMode . OneWay ) ;
8080
81- BindingHelpers . AssertTypedBindingExists ( textCell , Button . CommandProperty , BindingMode . OneTime , viewModel ) ;
82- BindingHelpers . AssertTypedBindingExists ( textCell , Button . CommandParameterProperty , BindingMode . OneWay , viewModel ) ;
81+ BindingHelpers . AssertTypedBindingExists ( button , Button . CommandProperty , BindingMode . OneTime , viewModel ) ;
82+ BindingHelpers . AssertTypedBindingExists ( button , Button . CommandParameterProperty , BindingMode . OneWay , viewModel ) ;
8383
8484 Assert . Multiple ( ( ) =>
8585 {
86- Assert . That ( viewModel . Command , Is . EqualTo ( textCell . Command ) ) ;
87- Assert . That ( viewModel . Id , Is . EqualTo ( textCell . CommandParameter ) ) ;
86+ Assert . That ( viewModel . Command , Is . EqualTo ( button . Command ) ) ;
87+ Assert . That ( viewModel . Id , Is . EqualTo ( button . CommandParameter ) ) ;
8888 } ) ;
8989 }
9090
@@ -778,4 +778,4 @@ public NestedViewModel? Model
778778 set => SetProperty ( ref field , value ) ;
779779 }
780780 }
781- }
781+ }
0 commit comments