FitNesse.NET
Cell Handler Lists
The Cell Handlers currently active are held in cell handler lists. You can add and remove cell handlers from a cell handler list to change the cell handling behavior. The core Fit fixtures and the FitLibrary fixtures have had different default cell handling behavior, and to preserve backwards compatibility, there are two cell handler lists, one for core Fit and one for FitLibrary.

CellMatching
actual typeactual valueexpected valuecell handlersmatches
stringblankfitTrueblank is a core keyword
stringblankfitlibraryFalsebut not for fitlibrary

By adding a cell handler, the matching behavior is changed.
cell handler loader
loadBlankKeywordHandlerfitlibrary

CellMatching
actual typeactual valueexpected valuecell handlersmatches
stringblankfitlibraryTruenow works for fitlibrary

You can add and remove cell handlers in the Suite Configuration File.

You can add and remove handlers in the story test with the CellHandlerLoaderFixture.

CellHandlerLoader
loadBlankKeywordHandlerFitLibrary
removeBlankKeywordHandlerFit
resetFitLibrary
resetFit

You can add and remove handlers in fixture code.

Configuration.Instance.FitLibraryCellHandlers.Add("BlankKeywordHandler");
Configuration.Instance.FitCellHandlers.Remove("BlankKeywordHandler");

© Copyright 2007,2008 Syterra Software Inc. All rights reserved.