logo
  • Jobs
  • About Me
  • Contact
  • Home
« Best post of the year
Pandora »

ActionFixtures with .NET

Posted May 12th, 2006 by Matt Berther

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).

1 Comment

This entry was posted on Friday, May 12th, 2006 at 12:49 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Cory Foy
May 15th, 2006

Thanks for the comment Matt. I have a second part I’m working on, and I’ll be sure to include that as part of it.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
-->

flag
Favorite Charity
wounded warrior project
Search
Social
  • mattberther on twitter
  • mattberther on linkedin
Syndication
Archives
  • January 2010
  • September 2009
  • July 2009
  • June 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2008
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
mattberther.com © 2003 - 2010