Recently, I've gotten very interested in FitNesse and how it can be used to enhance the quality of both legacy and new applications. I purchased and have been reading the Fit bible (Fit for Developing Software : Framework for Integrated Tests). This is an absolutely amazing book and really helps to understand the immense capabilities of Fit.
We are using Fitnesse and have been kind of muddling our way through figuring things out. Cory has an excellent article that talks about how to implement an ActionFixture in C#. However, there were certain things about how he chose to implement them that bothered me a little.
I'd like to add some things to his article. It is not necessary to derive from ActionFixture to implement an action fixture. As a matter of fact, everything Im seeing in the Fit book is that you should derive from fixture. This gets around having to define a constructor to work around an issue with deriving action fixture. Because you do that, you can go back to the expected syntax for defining your action fixture
|!-fit.ActionFixture-!| |start|!-FitnessTutorial.CalculatorTest-!| |check|display|blank| |press|one| |check|display|1|
The other thing to watch out for is that if you set up your Fitnesse site to point at your project output folder, you will need to set the Copy Local property on the fit.dll to false. Otherwise, you will end up with wierd errors suggesting that you did not derive from fit.Fixture (when you really did).