File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Rubberduck.Main/ComClientLibrary/UnitTesting
RubberduckTests/IntegrationTests Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static void ResumeFake(String typename)
5555 {
5656 if ( fake . GetType ( ) . Name == typename )
5757 {
58- fake . DisableHook ( ) ;
58+ fake . EnableHook ( ) ;
5959 return ;
6060 }
6161 }
Original file line number Diff line number Diff line change @@ -737,14 +737,16 @@ Public Sub TestIssue4476()
737737 'Arrange:
738738 Fakes.Now.PassThrough = True
739739 Fakes.Date .PassThrough = True
740+ Dim retVal As Variant
740741
741742 'Act:
742- Debug.Print Now
743- Debug.Print Date '<== KA-BOOOM
743+ retVal = Now
744+ retVal = Date '<== KA-BOOOM
745+ retVal = Now 'ensure fake reinstated
744746
745747 'Assert:
746- Fakes.Now.Verify.AtLeastOnce
747- Fakes.Date .Verify.AtLeastOnce
748+ Fakes.Now.Verify.Exactly 2
749+ Fakes.Date .Verify.Once
748750
749751TestExit:
750752 Exit Sub
You can’t perform that action at this time.
0 commit comments