FitNesse.NET
String Handler
The String Handler compares strings with options to ignore white space and ignore case. Cell prefixes can be used to identify the cells that use the handler, or it can be used on all cells with string types.

When String Handler is used without any cell prefixes, it should be inserted into the cell handler list before any of the keyword handlers, so that the keyword handlers can process the cell before String Handler does.

configuration setup
set valuefit.CellHandlersBlankKeywordHandlerStringHandler

The default option is to ignore whitespace.

string
fieldfield?
h e l l o he llo
nullfail[he llo]

A cell prefix can be configured to identify the cells to be compared by the handler.

configuration setup
addfitnesse.handlers.StringHandlerw-

string
fieldfield?
h e l l o w-he llo
h e l l o fail[he llo]

Comparison options can be configured for a cell prefix.

configuration setup
addfitnesse.handlers.StringHandleri-,IgnoreCase
addfitnesse.handlers.StringHandlerw*,IgnoreWhitespace
addfitnesse.handlers.StringHandlerb!,IgnoreCase,IgnoreWhitespace

string
fieldfield?
helloi-HeLlo
hellofail[i-he llo]
hellofail[HeLlo]
h e l l o w*he llo
h e l l o b!He Llo

Comparison options can be configured for an empty prefix.

configuration setup
addfitnesse.handlers.StringHandler,IgnoreCase

string
fieldfield?
helloHeLlo
h e l l o fail[he llo]

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