File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace RubberduckTests
10
10
[ TestFixture ]
11
11
public class CodeBuilderTests
12
12
{
13
- private const string RHSIdentifier = "RHS" ;
13
+ private static string _rhsIdentifier = Rubberduck . Resources . Refactorings . Refactorings . CodeBuilder_DefaultPropertyRHSParam ;
14
14
15
15
[ TestCase ( "fizz" , DeclarationType . Variable , "Integer" ) ]
16
16
[ TestCase ( "FirstValue" , DeclarationType . UserDefinedTypeMember , "Long" ) ]
@@ -193,7 +193,7 @@ Private fuzz As ETestType2
193
193
declarationType ,
194
194
testParams ,
195
195
PropertyLetBlockFromPrototypeTest ) ;
196
- StringAssert . Contains ( $ "Property Let { testParams . Identifier } (ByVal { RHSIdentifier } As { typeName } )", result ) ;
196
+ StringAssert . Contains ( $ "Property Let { testParams . Identifier } (ByVal { _rhsIdentifier } As { typeName } )", result ) ;
197
197
}
198
198
199
199
[ TestCase ( "fizz" , DeclarationType . Variable , "Variant" ) ]
@@ -219,7 +219,7 @@ Private fizz As Variant
219
219
testParams ,
220
220
PropertySetBlockFromPrototypeTest ) ;
221
221
222
- StringAssert . Contains ( $ "Property Set { testParams . Identifier } (ByVal { RHSIdentifier } As { typeName } )", result ) ;
222
+ StringAssert . Contains ( $ "Property Set { testParams . Identifier } (ByVal { _rhsIdentifier } As { typeName } )", result ) ;
223
223
}
224
224
225
225
[ TestCase ( DeclarationType . PropertyLet ) ]
Original file line number Diff line number Diff line change 1
- using Moq ;
2
- using Rubberduck . Common ;
3
- using Rubberduck . Parsing . Rewriter ;
1
+ using Rubberduck . Parsing . Rewriter ;
4
2
using Rubberduck . Parsing . Symbols ;
5
- using Rubberduck . Parsing . UIContext ;
6
3
using Rubberduck . Parsing . VBA ;
7
4
using Rubberduck . Refactorings ;
8
5
using Rubberduck . Refactorings . EncapsulateField ;
@@ -19,7 +16,7 @@ namespace RubberduckTests.Refactoring.EncapsulateField
19
16
{
20
17
public class EncapsulateFieldTestSupport : InteractiveRefactoringTestBase < IEncapsulateFieldPresenter , EncapsulateFieldModel >
21
18
{
22
- public string RHSIdentifier => "RHS" ;
19
+ public string RHSIdentifier => Rubberduck . Resources . Refactorings . Refactorings . CodeBuilder_DefaultPropertyRHSParam ;
23
20
24
21
public string StateUDTDefaultType => $ "T{ MockVbeBuilder . TestModuleName } ";
25
22
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class ImplementInterfaceRefactoringActionTests : RefactoringActionTestBas
15
15
{
16
16
private string _todoImplementMessage = "Err.Raise 5 'TODO implement interface member" ;
17
17
18
- private const string RHSIdentifier = "RHS" ;
18
+ private static string _rhsIdentifier = Rubberduck . Resources . Refactorings . Refactorings . CodeBuilder_DefaultPropertyRHSParam ;
19
19
20
20
[ Test ]
21
21
[ Category ( "Refactorings" ) ]
@@ -494,7 +494,7 @@ Private Property Get Interface1_Foo() As Long
494
494
{ _todoImplementMessage }
495
495
End Property
496
496
497
- Private Property Let Interface1_Foo(ByVal { RHSIdentifier } As Long)
497
+ Private Property Let Interface1_Foo(ByVal { _rhsIdentifier } As Long)
498
498
{ _todoImplementMessage }
499
499
End Property
500
500
" ;
@@ -519,7 +519,7 @@ Private Property Get Interface1_Foo() As Object
519
519
{ _todoImplementMessage }
520
520
End Property
521
521
522
- Private Property Set Interface1_Foo(ByVal { RHSIdentifier } As Object)
522
+ Private Property Set Interface1_Foo(ByVal { _rhsIdentifier } As Object)
523
523
{ _todoImplementMessage }
524
524
End Property
525
525
" ;
@@ -546,11 +546,11 @@ Private Property Get Interface1_Foo() As Variant
546
546
{ _todoImplementMessage }
547
547
End Property
548
548
549
- Private Property Let Interface1_Foo(ByVal { RHSIdentifier } As Variant)
549
+ Private Property Let Interface1_Foo(ByVal { _rhsIdentifier } As Variant)
550
550
{ _todoImplementMessage }
551
551
End Property
552
552
553
- Private Property Set Interface1_Foo(ByVal { RHSIdentifier } As Variant)
553
+ Private Property Set Interface1_Foo(ByVal { _rhsIdentifier } As Variant)
554
554
{ _todoImplementMessage }
555
555
End Property
556
556
" ;
You can’t perform that action at this time.
0 commit comments