Skip to content

Commit acedf94

Browse files
committed
Add compiler flag for RunMatcher
1 parent f8b84e5 commit acedf94

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/SpecExpectation.cls

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ Attribute VB_Exposed = True
1919
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '
2020
Option Explicit
2121

22+
''
23+
' @feature RunMatcher
24+
' @compatibility: Platforms / applications that support Application.Run
25+
' Platforms: Windows
26+
' Applications: Excel, Word, Access
27+
''
28+
#Const EnableRunMatcher = True
29+
2230
' --------------------------------------------- '
2331
' Properties
2432
' --------------------------------------------- '
@@ -405,6 +413,7 @@ End Function
405413
' @param {String} Message
406414
' @param {...} Arguments for custom matcher
407415
''
416+
#If EnableRunMatcher Then
408417
Public Sub RunMatcher(Name As String, Message As String, ParamArray Arguments())
409418
Dim Expected As String
410419
Dim i As Integer
@@ -431,6 +440,7 @@ Public Sub RunMatcher(Name As String, Message As String, ParamArray Arguments())
431440
Check Application.Run(Name, Me.Actual), Message
432441
End If
433442
End Sub
443+
#End If
434444

435445
' ============================================= '
436446
' Private Methods

0 commit comments

Comments
 (0)