Skip to content

Commit 6c8398a

Browse files
committed
v1.4.0
- Remove explicit Scripting.Dictionary reference
1 parent d1b36e6 commit 6c8398a

17 files changed

+33
-21
lines changed

Diff for: Excel-TDD - Blank - Inline.xlsm

658 Bytes
Binary file not shown.

Diff for: Excel-TDD - Blank.xlsm

11.6 KB
Binary file not shown.

Diff for: build/dev.vbs

+17-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Main
8181
Sub Main()
8282
' On Error Resume Next
8383

84-
PrintLn "Excel-TDD v1.3.1 Development"
84+
PrintLn "Excel-TDD v1.4.0 Development"
8585

8686
ExcelWasOpen = OpenExcel(Excel)
8787

@@ -236,7 +236,7 @@ Sub Import(ModulesDescription, Workbook)
236236
Import "specs", Workbook
237237
Exit Sub
238238
Case Else
239-
PrintLn "ERROR: Unknown modules description, " & ModulesDescription
239+
PrintLn "ERROR: Unknown modules description: " & ModulesDescription
240240
Exit Sub
241241
End Select
242242

@@ -259,15 +259,27 @@ Sub Export(ModulesDescription, Workbook)
259259
Case "SRC"
260260
Modules = Src
261261
Folder = SrcFolder
262+
Case "INLINE"
263+
Modules = InlineRunner
264+
Folder = SrcFolder
265+
Case "DISPLAY"
266+
Modules = DisplayRunner
267+
Folder = SrcFolder
268+
Case "EXTENSIONS"
269+
Modules = WorkbookExtensions
270+
Folder = SrcFolder
271+
Case "HELPERS"
272+
Modules = Helpers
273+
Folder = SrcFolder
262274
Case "SPECS"
263275
Modules = Specs
264276
Folder = SpecsFolder
265277
Case "ALL"
266-
Export "src", Workbook
267-
Export "specs", Workbook
278+
Import "src", Workbook
279+
Import "specs", Workbook
268280
Exit Sub
269281
Case Else
270-
PrintLn "ERROR: Unknown modules description, " & ModulesDescription
282+
PrintLn "ERROR: Unknown modules description: " & ModulesDescription
271283
Exit Sub
272284
End Select
273285

Diff for: examples/Excel-TDD - Example - Inline.xlsm

-30 Bytes
Binary file not shown.

Diff for: examples/Excel-TDD - Example - Runner.xlsm

11.3 KB
Binary file not shown.

Diff for: specs/Excel-TDD - Specs.xlsm

16.1 KB
Binary file not shown.

Diff for: src/BlankIWBProxy.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = False
1010
''
11-
' BlankIWBProxy v1.3.1
11+
' BlankIWBProxy v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Blank implementation of IWBProxy

Diff for: src/DisplayRunner.bas

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Attribute VB_Name = "DisplayRunner"
22
''
3-
' DisplayRunner v1.3.1
3+
' DisplayRunner v1.4.0
44
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
55
'
66
' Runner with sheet output
@@ -203,7 +203,7 @@ Private Sub OutputSpec(Spec As SpecDefinition, ByRef Row As Integer, Optional In
203203
Sheet.Cells(Row, ResultCol) = Spec.ResultName
204204
Row = Row + 1
205205

206-
If Spec.FailedExpectations.count > 0 Then
206+
If Spec.FailedExpectations.Count > 0 Then
207207
Dim Exp As SpecExpectation
208208
For Each Exp In Spec.FailedExpectations
209209
Sheet.Cells(Row, DescCol) = Indentation & "X " & Exp.FailureMessage

Diff for: src/IScenario.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' IScenario v1.3.1
11+
' IScenario v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Interface for creating and running scenarios on workbooks

Diff for: src/IWBProxy.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' IWBProxy v1.3.1
11+
' IWBProxy v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Interface for generic workbook proxies

Diff for: src/InlineRunner.bas

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Attribute VB_Name = "InlineRunner"
22
''
3-
' InlineRunner v1.3.1
3+
' InlineRunner v1.4.0
44
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
55
'
66
' Runner for outputting results of specs to Immediate window

Diff for: src/Scenario.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' Scenario v1.3.1
11+
' Scenario v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Generic implementation of scenario

Diff for: src/SpecDefinition.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' SpecDefinition v1.3.1
11+
' SpecDefinition v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Provides helpers and acts as workbook proxy

Diff for: src/SpecExpectation.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' SpecExpectation v1.3.1
11+
' SpecExpectation v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Provides various tests that can be performed for a provided value

Diff for: src/SpecHelpers.bas

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Attribute VB_Name = "SpecHelpers"
22
''
3-
' SpecHelpers v1.3.1
3+
' SpecHelpers v1.4.0
44
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
55
'
66
' General utilities for specs

Diff for: src/SpecSuite.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' SpecSuite v1.3.1
11+
' SpecSuite v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' A collection of specs with the workbook that they act on

Diff for: src/WBProxy.cls

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = True
1010
''
11-
' WBProxy v1.3.1
11+
' WBProxy v1.4.0
1212
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
1313
'
1414
' Generic implementation of workbook proxy
@@ -112,17 +112,17 @@ Private Property Set IWBProxy_Instance(Value As Workbook)
112112
Set Instance = Value
113113
End Property
114114

115-
Public Property Get Mapping() As Scripting.IDictionary
115+
Public Property Get Mapping() As Dictionary
116116
Set Mapping = IWBProxy_Mapping
117117
End Property
118-
Private Property Get IWBProxy_Mapping() As Scripting.IDictionary
118+
Private Property Get IWBProxy_Mapping() As Dictionary
119119
If pMapping Is Nothing Then: Set pMapping = New Dictionary
120120
Set IWBProxy_Mapping = pMapping
121121
End Property
122-
Public Property Set Mapping(Value As Scripting.IDictionary)
122+
Public Property Set Mapping(Value As Dictionary)
123123
Set IWBProxy_Mapping = Value
124124
End Property
125-
Private Property Set IWBProxy_Mapping(Value As Scripting.IDictionary)
125+
Private Property Set IWBProxy_Mapping(Value As Dictionary)
126126
Set pMapping = Value
127127
End Property
128128

0 commit comments

Comments
 (0)