It would be very helpful if SpecDefinition could return a reference to itself. For example:
With Specs.It("should be a good example")
Set Foo = Bar.FooBarIt()
VerifyIsAnObject(.Self, Foo)
End With
Private Function VerifyIsAnObject(ByRef SpecsIt As SpecDefinition, ByRef Foo As Bar)
With SpecsIt
.Expect(Foo...).ToBe...
End With
End Function
While I understand RunMatcher exists, you may not want to make your various functions public. RunMatcher also doesn't support the fluent Expect().ToBe() syntax used throughout the rest of our suites.
It would be very helpful if
SpecDefinition
could return a reference to itself. For example:While I understand RunMatcher exists, you may not want to make your various functions public. RunMatcher also doesn't support the fluent Expect().ToBe() syntax used throughout the rest of our suites.