Skip to content

Commit 94fa0db

Browse files
committed
Re-add partial class to repo
1 parent 72b89ce commit 94fa0db

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

Rubberduck.Parsing/Rubberduck.Parsing.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
<Compile Include="Grammar\VBAParser.cs" />
132132
<Compile Include="Grammar\VBAParserBaseListener.cs" />
133133
<Compile Include="Grammar\VBAParserBaseVisitor.cs" />
134+
<Compile Include="Grammar\VBAParserIdentifierContext.cs" />
134135
<Compile Include="Grammar\VBAParserListener.cs" />
135136
<Compile Include="Grammar\VBAParserVisitor.cs" />
136137
<Compile Include="Inspections\Abstract\IQuickFixProvider.cs" />

RubberduckTests/Refactoring/RenameTests.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,12 +1540,12 @@ End Sub
15401540
[TestMethod]
15411541
public void RenameRefactoring_CheckAllRefactorCallPaths()
15421542
{
1543-
const string inputCode1 =
1543+
const string inputCode =
15441544
@"
15451545
Private Sub Foo()
15461546
End Sub
15471547
";
1548-
const string expectedCode1 =
1548+
const string expectedCode =
15491549
@"
15501550
Private Sub Goo()
15511551
End 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

Comments
 (0)