@@ -1540,12 +1540,12 @@ End Sub
15401540 [ TestMethod ]
15411541 public void RenameRefactoring_CheckAllRefactorCallPaths ( )
15421542 {
1543- const string inputCode1 =
1543+ const string inputCode =
15441544@"
15451545Private Sub Foo()
15461546End Sub
15471547" ;
1548- const string expectedCode1 =
1548+ const string expectedCode =
15491549@"
15501550Private Sub Goo()
15511551End Sub
@@ -1554,17 +1554,19 @@ End Sub
15541554
15551555 foreach ( var param in refactorParams )
15561556 {
1557- var tdo = new RenameTestsDataObject ( ) ;
1558- tdo . SelectionTarget = "Foo" ;
1559- tdo . SelectionLineIdentifier = "Foo()" ;
1560- tdo . SelectionModuleName = "Class1" ;
1561- tdo . NewName = "Goo" ;
1562- AddTestComponent ( tdo , tdo . SelectionModuleName , inputCode1 , ComponentType . ClassModule ) ;
1557+ var tdo = new RenameTestsDataObject
1558+ {
1559+ SelectionTarget = "Foo" ,
1560+ SelectionLineIdentifier = "Foo()" ,
1561+ SelectionModuleName = "Class1" ,
1562+ NewName = "Goo"
1563+ } ;
1564+ AddTestComponent ( tdo , tdo . SelectionModuleName , inputCode , ComponentType . ClassModule ) ;
15631565
15641566 SetupAndRunRenameRefactorTest ( tdo , param ) ;
15651567
1566- var rewriter1 = tdo . ParserState . GetRewriter ( RetrieveComponent ( tdo , tdo . SelectionModuleName ) . CodeModule . Parent ) ;
1567- Assert . AreEqual ( expectedCode1 , rewriter1 . GetText ( ) ) ;
1568+ var rewriter = tdo . ParserState . GetRewriter ( RetrieveComponent ( tdo , tdo . SelectionModuleName ) . CodeModule . Parent ) ;
1569+ Assert . AreEqual ( expectedCode , rewriter . GetText ( ) ) ;
15681570 tdo . MsgBox . Verify ( m => m . Show ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < MessageBoxButtons > ( ) , It . IsAny < MessageBoxIcon > ( ) ) , Times . Never ) ;
15691571 }
15701572 }
0 commit comments