@@ -8651,8 +8651,8 @@ public void Modify_Ok()
86518651 pb . Add ( a => a . ShowExtendEditButton , false ) ;
86528652 pb . Add ( a => a . ShowExtendDeleteButton , false ) ;
86538653 } ) ;
8654- Assert . True ( CanEdit ( cut . Instance ) ) ;
8655- Assert . True ( CanDelete ( cut . Instance ) ) ;
8654+ Assert . True ( ProhibitEdit ( cut . Instance ) ) ;
8655+ Assert . True ( ProhibitDelete ( cut . Instance ) ) ;
86568656
86578657 cut . SetParametersAndRender ( pb =>
86588658 {
@@ -8661,8 +8661,8 @@ public void Modify_Ok()
86618661 pb . Add ( a => a . DisableExtendEditButton , true ) ;
86628662 pb . Add ( a => a . DisableExtendDeleteButton , true ) ;
86638663 } ) ;
8664- Assert . True ( CanEdit ( cut . Instance ) ) ;
8665- Assert . True ( CanDelete ( cut . Instance ) ) ;
8664+ Assert . True ( ProhibitEdit ( cut . Instance ) ) ;
8665+ Assert . True ( ProhibitDelete ( cut . Instance ) ) ;
86668666
86678667 cut . SetParametersAndRender ( pb =>
86688668 {
@@ -8680,14 +8680,14 @@ public void Modify_Ok()
86808680 return true ;
86818681 } ) ;
86828682 } ) ;
8683- Assert . True ( CanEdit ( cut . Instance ) ) ;
8684- Assert . True ( CanDelete ( cut . Instance ) ) ;
8683+ Assert . True ( ProhibitEdit ( cut . Instance ) ) ;
8684+ Assert . True ( ProhibitDelete ( cut . Instance ) ) ;
86858685 }
86868686
8687- static bool CanEdit ( Table < Foo > @this )
8687+ static bool ProhibitEdit ( Table < Foo > @this )
86888688 {
86898689 var ret = false ;
8690- var methodInfo = @this . GetType ( ) . GetMethod ( "CanEdit " , BindingFlags . Instance | BindingFlags . NonPublic ) ;
8690+ var methodInfo = @this . GetType ( ) . GetMethod ( "ProhibitEdit " , BindingFlags . Instance | BindingFlags . NonPublic ) ;
86918691 if ( methodInfo != null )
86928692 {
86938693 var result = methodInfo . Invoke ( @this , null ) ;
@@ -8699,10 +8699,10 @@ static bool CanEdit(Table<Foo> @this)
86998699 return ret ;
87008700 }
87018701
8702- static bool CanDelete ( Table < Foo > @this )
8702+ static bool ProhibitDelete ( Table < Foo > @this )
87038703 {
87048704 var ret = false ;
8705- var methodInfo = @this . GetType ( ) . GetMethod ( "CanDelete " , BindingFlags . Instance | BindingFlags . NonPublic ) ;
8705+ var methodInfo = @this . GetType ( ) . GetMethod ( "ProhibitDelete " , BindingFlags . Instance | BindingFlags . NonPublic ) ;
87068706 if ( methodInfo != null )
87078707 {
87088708 var result = methodInfo . Invoke ( @this , null ) ;
0 commit comments