Skip to content

Commit

Permalink
Add compiler flag for RunMatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
timhall committed Dec 31, 2016
1 parent f8b84e5 commit acedf94
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/SpecExpectation.cls
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ Attribute VB_Exposed = True
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '
Option Explicit

''
' @feature RunMatcher
' @compatibility: Platforms / applications that support Application.Run
' Platforms: Windows
' Applications: Excel, Word, Access
''
#Const EnableRunMatcher = True

' --------------------------------------------- '
' Properties
' --------------------------------------------- '
Expand Down Expand Up @@ -405,6 +413,7 @@ End Function
' @param {String} Message
' @param {...} Arguments for custom matcher
''
#If EnableRunMatcher Then
Public Sub RunMatcher(Name As String, Message As String, ParamArray Arguments())
Dim Expected As String
Dim i As Integer
Expand All @@ -431,6 +440,7 @@ Public Sub RunMatcher(Name As String, Message As String, ParamArray Arguments())
Check Application.Run(Name, Me.Actual), Message
End If
End Sub
#End If

' ============================================= '
' Private Methods
Expand Down

0 comments on commit acedf94

Please sign in to comment.