Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
- Remove explicit Scripting.Dictionary reference
  • Loading branch information
timhall committed Oct 27, 2014
1 parent d1b36e6 commit 6c8398a
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 21 deletions.
Binary file modified Excel-TDD - Blank - Inline.xlsm
Binary file not shown.
Binary file modified Excel-TDD - Blank.xlsm
Binary file not shown.
22 changes: 17 additions & 5 deletions build/dev.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Main
Sub Main()
' On Error Resume Next

PrintLn "Excel-TDD v1.3.1 Development"
PrintLn "Excel-TDD v1.4.0 Development"

ExcelWasOpen = OpenExcel(Excel)

Expand Down Expand Up @@ -236,7 +236,7 @@ Sub Import(ModulesDescription, Workbook)
Import "specs", Workbook
Exit Sub
Case Else
PrintLn "ERROR: Unknown modules description, " & ModulesDescription
PrintLn "ERROR: Unknown modules description: " & ModulesDescription
Exit Sub
End Select

Expand All @@ -259,15 +259,27 @@ Sub Export(ModulesDescription, Workbook)
Case "SRC"
Modules = Src
Folder = SrcFolder
Case "INLINE"
Modules = InlineRunner
Folder = SrcFolder
Case "DISPLAY"
Modules = DisplayRunner
Folder = SrcFolder
Case "EXTENSIONS"
Modules = WorkbookExtensions
Folder = SrcFolder
Case "HELPERS"
Modules = Helpers
Folder = SrcFolder
Case "SPECS"
Modules = Specs
Folder = SpecsFolder
Case "ALL"
Export "src", Workbook
Export "specs", Workbook
Import "src", Workbook
Import "specs", Workbook
Exit Sub
Case Else
PrintLn "ERROR: Unknown modules description, " & ModulesDescription
PrintLn "ERROR: Unknown modules description: " & ModulesDescription
Exit Sub
End Select

Expand Down
Binary file modified examples/Excel-TDD - Example - Inline.xlsm
Binary file not shown.
Binary file modified examples/Excel-TDD - Example - Runner.xlsm
Binary file not shown.
Binary file modified specs/Excel-TDD - Specs.xlsm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/BlankIWBProxy.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
''
' BlankIWBProxy v1.3.1
' BlankIWBProxy v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Blank implementation of IWBProxy
Expand Down
4 changes: 2 additions & 2 deletions src/DisplayRunner.bas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Attribute VB_Name = "DisplayRunner"
''
' DisplayRunner v1.3.1
' DisplayRunner v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Runner with sheet output
Expand Down Expand Up @@ -203,7 +203,7 @@ Private Sub OutputSpec(Spec As SpecDefinition, ByRef Row As Integer, Optional In
Sheet.Cells(Row, ResultCol) = Spec.ResultName
Row = Row + 1

If Spec.FailedExpectations.count > 0 Then
If Spec.FailedExpectations.Count > 0 Then
Dim Exp As SpecExpectation
For Each Exp In Spec.FailedExpectations
Sheet.Cells(Row, DescCol) = Indentation & "X " & Exp.FailureMessage
Expand Down
2 changes: 1 addition & 1 deletion src/IScenario.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' IScenario v1.3.1
' IScenario v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Interface for creating and running scenarios on workbooks
Expand Down
2 changes: 1 addition & 1 deletion src/IWBProxy.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' IWBProxy v1.3.1
' IWBProxy v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Interface for generic workbook proxies
Expand Down
2 changes: 1 addition & 1 deletion src/InlineRunner.bas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Attribute VB_Name = "InlineRunner"
''
' InlineRunner v1.3.1
' InlineRunner v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Runner for outputting results of specs to Immediate window
Expand Down
2 changes: 1 addition & 1 deletion src/Scenario.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' Scenario v1.3.1
' Scenario v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Generic implementation of scenario
Expand Down
2 changes: 1 addition & 1 deletion src/SpecDefinition.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' SpecDefinition v1.3.1
' SpecDefinition v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Provides helpers and acts as workbook proxy
Expand Down
2 changes: 1 addition & 1 deletion src/SpecExpectation.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' SpecExpectation v1.3.1
' SpecExpectation v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Provides various tests that can be performed for a provided value
Expand Down
2 changes: 1 addition & 1 deletion src/SpecHelpers.bas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Attribute VB_Name = "SpecHelpers"
''
' SpecHelpers v1.3.1
' SpecHelpers v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' General utilities for specs
Expand Down
2 changes: 1 addition & 1 deletion src/SpecSuite.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' SpecSuite v1.3.1
' SpecSuite v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' A collection of specs with the workbook that they act on
Expand Down
10 changes: 5 additions & 5 deletions src/WBProxy.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' WBProxy v1.3.1
' WBProxy v1.4.0
' (c) Tim Hall - https://github.com/timhall/Excel-TDD
'
' Generic implementation of workbook proxy
Expand Down Expand Up @@ -112,17 +112,17 @@ Private Property Set IWBProxy_Instance(Value As Workbook)
Set Instance = Value
End Property

Public Property Get Mapping() As Scripting.IDictionary
Public Property Get Mapping() As Dictionary
Set Mapping = IWBProxy_Mapping
End Property
Private Property Get IWBProxy_Mapping() As Scripting.IDictionary
Private Property Get IWBProxy_Mapping() As Dictionary
If pMapping Is Nothing Then: Set pMapping = New Dictionary
Set IWBProxy_Mapping = pMapping
End Property
Public Property Set Mapping(Value As Scripting.IDictionary)
Public Property Set Mapping(Value As Dictionary)
Set IWBProxy_Mapping = Value
End Property
Private Property Set IWBProxy_Mapping(Value As Scripting.IDictionary)
Private Property Set IWBProxy_Mapping(Value As Dictionary)
Set pMapping = Value
End Property

Expand Down

0 comments on commit 6c8398a

Please sign in to comment.