MattHoneycutt / SpecsFor

SpecsFor is a light-weight Behavior-Driven Development framework that focuses on ease of use for *developers* by minimizing testing friction.
http://specsfor.com
MIT License
197 stars 70 forks source link

Attribute-based Given contexts not supported? #105

Closed cancodewell closed 6 years ago

cancodewell commented 7 years ago

On http://specsfor.com/examples.cshtml, there is a sample using the "Given" attribute and a parameterized constructor of the SpecsFor base class. However, both do not exist in SpecsFor, neither in the source code here on Github nor the SpecsFor package that I have installed from NuGet.

On the other hand, after installing from NuGet, I have found ReSharper templates (in packages\SpecsFor.5.0.1\Templates\Resharper) that rely on using the "Given" attribute and a parameterized constructor of the SpecsFor base class, these templates are: Attributes-File Templates.xml Attributes-Live Templates.xml

Thus, code generated by these templates can´t be compiled.

MattHoneycutt commented 7 years ago

Ugh, I need to update those examples! The parameterized-Given attribute was removed some time ago. Thanks for bringing that to my attention!

cancodewell commented 7 years ago

Ok, thank you for the quick response!

MattHoneycutt commented 6 years ago

Finally fixed the example. It should be live on the website shortly.