@@ -221,7 +221,7 @@ public void TestGroupResultVertical()
221221 ws . Range ( 6 , 12 , 7 , 12 ) . Merge ( ) ;
222222 ws . Range ( 9 , 12 , 10 , 12 ) . Merge ( ) ;
223223
224- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
224+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
225225 Substitute . For < ITemplateProcessor > ( ) )
226226 {
227227 GroupBy = "1,2, 3 , 4,5,6,7,8,9,10,11" ,
@@ -291,7 +291,7 @@ public void TestGroupResultVertical_WithoutGroupingBlankValues()
291291
292292 ws . Range ( 2 , 7 , 3 , 7 ) . Merge ( ) ;
293293
294- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
294+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
295295 Substitute . For < ITemplateProcessor > ( ) )
296296 {
297297 GroupBy = "1,2, 3 , 4,5,6" ,
@@ -414,7 +414,7 @@ public void TestGroupResultHorizontal()
414414 ws . Range ( 12 , 6 , 12 , 7 ) . Merge ( ) ;
415415 ws . Range ( 12 , 9 , 12 , 10 ) . Merge ( ) ;
416416
417- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
417+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
418418 Substitute . For < ITemplateProcessor > ( ) )
419419 {
420420 GroupBy = "1,2, 3 , 4,5,6,7,8,9,10,11" ,
@@ -485,7 +485,7 @@ public void TestGroupResultHorizontal_WithoutGroupingBlankValues()
485485
486486 ws . Range ( 7 , 2 , 7 , 3 ) . Merge ( ) ;
487487
488- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
488+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
489489 Substitute . For < ITemplateProcessor > ( ) )
490490 {
491491 GroupBy = "1,2, 3 , 4,5,6" ,
@@ -527,7 +527,7 @@ public void TestIfGroupByPropertyIsEmpty()
527527 ws . Cell ( 8 , 3 ) . Value = "Pear" ;
528528 ws . Cell ( 9 , 3 ) . Value = "Pear" ;
529529
530- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
530+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
531531 Substitute . For < ITemplateProcessor > ( ) ) { GroupBy = null } ;
532532
533533 var method = panel . GetType ( ) . GetMethod ( "GroupResult" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
@@ -536,14 +536,14 @@ public void TestIfGroupByPropertyIsEmpty()
536536
537537 Assert . AreEqual ( 0 , ws . MergedRanges . Count ) ;
538538
539- panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
539+ panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
540540 Substitute . For < ITemplateProcessor > ( ) ) { GroupBy = string . Empty } ;
541541 SetResultRange ( panel , range ) ;
542542 method . Invoke ( panel , null ) ;
543543
544544 Assert . AreEqual ( 0 , ws . MergedRanges . Count ) ;
545545
546- panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
546+ panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
547547 Substitute . For < ITemplateProcessor > ( ) ) { GroupBy = " " } ;
548548 SetResultRange ( panel , range ) ;
549549 method . Invoke ( panel , null ) ;
@@ -563,15 +563,15 @@ public void TestIfGroupByPropertyIsInvalid()
563563 ws . Cell ( 2 , 2 ) . Value = "One" ;
564564 ws . Cell ( 3 , 2 ) . Value = "One" ;
565565
566- var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
566+ var panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
567567 Substitute . For < ITemplateProcessor > ( ) ) { GroupBy = "str" } ;
568568 var method = panel . GetType ( ) . GetMethod ( "GroupResult" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
569569 SetResultRange ( panel , range ) ;
570570
571571 ExceptionAssert . ThrowsBaseException < InvalidCastException > ( ( ) => method . Invoke ( panel , null ) ,
572572 $ "Parse \" GroupBy\" property failed. Cannot convert value \" str\" to { nameof ( Int32 ) } ") ;
573573
574- panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLNamedRange > ( ) , new object ( ) ,
574+ panel = new ExcelDataSourcePanel ( "Stub" , Substitute . For < IXLDefinedName > ( ) , new object ( ) ,
575575 Substitute . For < ITemplateProcessor > ( ) ) { GroupBy = "1, 1.4" } ;
576576 SetResultRange ( panel , range ) ;
577577
0 commit comments