fitSharp
Symbol Handlers
The symbol save operator (>>) and the symbol recall operator (<<) can be used to collect a value at one place in a story test and then use it in other places.

The symbol save operator can be used in any expected value cell. Instead of comparing the actual value to an expected value, the actual value is saved with the symbol name.

CellHandlerStory
stringstring?
something>>mysymbol something
null>>nullsymbol null

The symbol recall operator can be used in any input or expected value cell. The value used will be the last value saved with the symbol name.

CellHandlerStory
stringstring?
something< something
< somethingsomething
<<nullsymbol nullnull
null<<nullsymbol null

Symbols are now also used, by default, with FitLibrary fixtures.

InfoFixture
setresult6
checkresult>>six 6
setresult<<six 6
checkresult<<six 6

Symbols can be erased with the Clear Symbols Fixture.

Notes:

This is a seperate feature from the FitNesse wiki symbol feature.

© Copyright Syterra Software Inc. All rights reserved.