@@ -294,8 +294,8 @@ public void EncapsulatePrivateField()
294
294
var presenterAction = Support . SetParametersForSingleTarget ( "fizz" , "Name" ) ;
295
295
296
296
var actualCode = Support . RefactoredCode ( inputCode . ToCodeString ( ) , presenterAction ) ;
297
- StringAssert . Contains ( "Public Property Get Name() As Integer" , actualCode ) ;
298
- StringAssert . Contains ( "Public Property Let Name(" , actualCode ) ;
297
+ StringAssert . Contains ( "Private Property Get Name() As Integer" , actualCode ) ;
298
+ StringAssert . Contains ( "Private Property Let Name(" , actualCode ) ;
299
299
StringAssert . Contains ( $ "(ByVal { Support . RHSIdentifier } As Integer)", actualCode ) ;
300
300
StringAssert . Contains ( "Name = fizz" , actualCode ) ;
301
301
StringAssert . Contains ( $ "fizz = { Support . RHSIdentifier } ", actualCode ) ;
@@ -323,7 +323,7 @@ End Enum
323
323
var presenterAction = Support . UserAcceptsDefaults ( ) ;
324
324
var actualCode = Support . RefactoredCode ( inputCode . ToCodeString ( ) , presenterAction ) ;
325
325
StringAssert . Contains ( "Private numberType1 As NumberTypes" , actualCode ) ;
326
- StringAssert . Contains ( "Public Property Get NumberType() As NumberTypes", actualCode ) ;
326
+ StringAssert . Contains ( $ " { fieldAccessibility } Property Get NumberType() As NumberTypes", actualCode ) ;
327
327
StringAssert . Contains ( "NumberType = numberType1" , actualCode ) ;
328
328
}
329
329
@@ -352,7 +352,7 @@ Private numberT|ype As NumberTypes{declarationList ?? string.Empty}
352
352
var actualCode = Support . RefactoredCode ( inputCode . ToCodeString ( ) , presenterAction ) ;
353
353
var expectedPropertyType = enumTypeAccessibility == "Public" ? "NumberTypes" : "Long" ;
354
354
StringAssert . Contains ( "Private numberType1 As NumberTypes" , actualCode ) ;
355
- StringAssert . Contains ( $ "Public Property Get NumberType() As { expectedPropertyType } ", actualCode ) ;
355
+ StringAssert . Contains ( $ "Private Property Get NumberType() As { expectedPropertyType } ", actualCode ) ;
356
356
StringAssert . Contains ( "NumberType = numberType1" , actualCode ) ;
357
357
}
358
358
@@ -368,8 +368,8 @@ public void EncapsulatePrivateFieldInList()
368
368
369
369
var actualCode = Support . RefactoredCode ( inputCode . ToCodeString ( ) , presenterAction ) ;
370
370
StringAssert . Contains ( "Private fizz1 As Integer, fuzz As Integer," , actualCode ) ;
371
- StringAssert . Contains ( "Public Property Get Fizz() As Integer" , actualCode ) ;
372
- StringAssert . Contains ( "Public Property Let Fizz(" , actualCode ) ;
371
+ StringAssert . Contains ( "Private Property Get Fizz() As Integer" , actualCode ) ;
372
+ StringAssert . Contains ( "Private Property Let Fizz(" , actualCode ) ;
373
373
StringAssert . Contains ( $ "(ByVal { Support . RHSIdentifier } As Integer)", actualCode ) ;
374
374
StringAssert . Contains ( "Fizz = fizz1" , actualCode ) ;
375
375
StringAssert . Contains ( $ "fizz1 = { Support . RHSIdentifier } ", actualCode ) ;
@@ -387,8 +387,8 @@ public void EncapsulatePrivateField_Defaults()
387
387
var presenterAction = Support . UserAcceptsDefaults ( ) ;
388
388
389
389
var actualCode = Support . RefactoredCode ( inputCode . ToCodeString ( ) , presenterAction ) ;
390
- StringAssert . Contains ( "Public Property Get Fizz() As Integer" , actualCode ) ;
391
- StringAssert . Contains ( "Public Property Let Fizz(" , actualCode ) ;
390
+ StringAssert . Contains ( "Private Property Get Fizz() As Integer" , actualCode ) ;
391
+ StringAssert . Contains ( "Private Property Let Fizz(" , actualCode ) ;
392
392
StringAssert . Contains ( $ "(ByVal { Support . RHSIdentifier } As Integer)", actualCode ) ;
393
393
StringAssert . Contains ( "Fizz = fizz1" , actualCode ) ;
394
394
StringAssert . Contains ( $ "fizz1 = { Support . RHSIdentifier } ", actualCode ) ;
0 commit comments