From e02f96cab091fc6a0d622f85b7302d7c48480aca Mon Sep 17 00:00:00 2001 From: George Cook Date: Sun, 10 May 2020 12:35:31 -0500 Subject: [PATCH] fix(mocks): Fixes crash on multi expect --- src/BaseTestSuite.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BaseTestSuite.bs b/src/BaseTestSuite.bs index eb90b0cb..a5a811cc 100644 --- a/src/BaseTestSuite.bs +++ b/src/BaseTestSuite.bs @@ -1493,6 +1493,7 @@ public function Mock(target, methodName, expectedInvocations = 1, expectedArgs = mock = m.mocks[id] if mock <> invalid and mock.methodName = methodName and mock.target.__rooibosTargetId = target.__rooibosTargetId fake = mock + fake.lineNumbers.push(lineNumber) exit for end if end for