Closed cancodewell closed 6 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!
Ok, thank you for the quick response!
Finally fixed the example. It should be live on the website shortly.
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.