meekrosoft / fff

A testing micro framework for creating function test doubles
Other
766 stars 167 forks source link

Auto-counting macros for declaration and definition of fake #18

Closed aunsbjerg closed 7 years ago

aunsbjerg commented 7 years ago

As per Mike's suggestion, I took a stab at adding autocounting macro for declaring and defining fakes. This should make it simpler to create global fakes that can be using across test suites within the same compilation unit.

I adapted the unit tests for the global fakes to use the new macros - tests still pass - and I added a small section to the readme, for others to see.

I'm a complete rookie when it comes to git/github and ruby. So be gentle :)

/ Mikkel