@@ -2386,34 +2386,34 @@ End Sub
2386
2386
[ Category ( "Rename" ) ]
2387
2387
public void RenameRefactoring_DoesNotWarnForUDTMember_Issue4349 ( )
2388
2388
{
2389
- var tdo = new RenameTestsDataObject ( selection : "VS" , newName : "verySatisfiedResponses " ) ;
2389
+ var tdo = new RenameTestsDataObject ( selection : "VS" , newName : "VerySatisfiedResponses " ) ;
2390
2390
var inputOutput = new RenameTestModuleDefinition ( "Module1" , ComponentType . StandardModule )
2391
2391
{
2392
2392
Input =
2393
2393
@"Private Type TMonthScoreInfo
2394
- verySatisfiedResponses As Long
2394
+ VerySatisfiedResponses As Long
2395
2395
End Type
2396
2396
2397
2397
Private monthScoreInfo As TMonthScoreInfo
2398
2398
2399
2399
Public Property Get V|S() As Long
2400
- VS = monthScoreInfo.verySatisfiedResponses
2400
+ VS = monthScoreInfo.VerySatisfiedResponses
2401
2401
End Property
2402
2402
Public Property Let VS(ByVal theVal As Long)
2403
- monthScoreInfo.verySatisfiedResponses = theVal
2403
+ monthScoreInfo.VerySatisfiedResponses = theVal
2404
2404
End Property" ,
2405
2405
Expected =
2406
2406
@"Private Type TMonthScoreInfo
2407
- verySatisfiedResponses As Long
2407
+ VerySatisfiedResponses As Long
2408
2408
End Type
2409
2409
2410
2410
Private monthScoreInfo As TMonthScoreInfo
2411
2411
2412
- Public Property Get verySatisfiedResponses () As Long
2413
- verySatisfiedResponses = monthScoreInfo.verySatisfiedResponses
2412
+ Public Property Get VerySatisfiedResponses () As Long
2413
+ VerySatisfiedResponses = monthScoreInfo.VerySatisfiedResponses
2414
2414
End Property
2415
- Public Property Let verySatisfiedResponses (ByVal theVal As Long)
2416
- monthScoreInfo.verySatisfiedResponses = theVal
2415
+ Public Property Let VerySatisfiedResponses (ByVal theVal As Long)
2416
+ monthScoreInfo.VerySatisfiedResponses = theVal
2417
2417
End Property"
2418
2418
} ;
2419
2419
@@ -2436,7 +2436,7 @@ public void RenameRefactoring_DoesNotWarnForEnumMember_Issue4349()
2436
2436
End Enum
2437
2437
2438
2438
Public Property Get V|erySatisfiedID() As Long
2439
- VS = MonthScoreTypes.VerySatisfiedResponse
2439
+ VerySatisfiedID = MonthScoreTypes.VerySatisfiedResponse
2440
2440
End Property" ,
2441
2441
Expected =
2442
2442
@"Private Enum MonthScoreTypes
@@ -2445,7 +2445,39 @@ End Enum
2445
2445
End Enum
2446
2446
2447
2447
Public Property Get VerySatisfiedResponse() As Long
2448
- VS = MonthScoreTypes.VerySatisfiedResponse
2448
+ VerySatisfiedResponse = MonthScoreTypes.VerySatisfiedResponse
2449
+ End Property" ,
2450
+ } ;
2451
+
2452
+ PerformExpectedVersusActualRenameTests ( tdo , inputOutput ) ;
2453
+ tdo . MsgBox . Verify ( m => m . ConfirmYesNo ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < bool > ( ) ) , Times . Never ) ;
2454
+ }
2455
+
2456
+ [ Test ]
2457
+ [ Category ( "Refactorings" ) ]
2458
+ [ Category ( "Rename" ) ]
2459
+ public void RenameRefactoring_DoesNotWarnForMember_Issue4349 ( )
2460
+ {
2461
+ var tdo = new RenameTestsDataObject ( selection : "VerySatisfiedResponse" , newName : "VerySatisfiedID" ) ;
2462
+ var inputOutput = new RenameTestModuleDefinition ( "Module1" , ComponentType . StandardModule )
2463
+ {
2464
+ Input =
2465
+ @"Private Enum MonthScoreTypes
2466
+ VerySa|tisfiedResponse
2467
+ VeryDissatisfiedResponse
2468
+ End Enum
2469
+
2470
+ Public Property Get VerySatisfiedID() As Long
2471
+ VerySatisfiedID = MonthScoreTypes.VerySatisfiedResponse
2472
+ End Property" ,
2473
+ Expected =
2474
+ @"Private Enum MonthScoreTypes
2475
+ VerySatisfiedID
2476
+ VeryDissatisfiedResponse
2477
+ End Enum
2478
+
2479
+ Public Property Get VerySatisfiedID() As Long
2480
+ VerySatisfiedID = MonthScoreTypes.VerySatisfiedID
2449
2481
End Property" ,
2450
2482
} ;
2451
2483
0 commit comments