fitSharp
Fixtures Using Procedures

do

This is a gallery of common fixtures using procedures.

when test is

story test fixture
checktest result
definebobname
setnameBob

definechangethenamenewname
setnamenewname
returnname

defineisnamed
returnname

action
startsample domain
pressbobname
checkis namedBob
enterchangethenameTed

sample column
changethenameisnamed?
BobBob

sample row domain
is named
Bob
Carol

sample calculate domain
thenamechange
BobBob

do
withnewsample domain
changethenameBob
checkisnamedBob

sample setup domain
changethename
Bob

definebobname
setnameBob

definechangethenamenewname
setnamenewname
returnname

defineisnamed
returnname

action
startsample domain
pressbobname

setnameBob
checkis namedBob

returnname
enterchangethenameTed

setnameTed
returnname

sample column
changethenameisnamed?
Bob

setnameBob
returnname
Bob

returnname

sample row domain
is named
Bob

returnname
Carol missing
Ted surplus

sample calculate domain
thenamechange
BobBob

setnameBob
returnname

do
withnewsample domain
changethename

setnameBob
returnname
Bob
checkisnamedBob

returnname

sample setup domain
changethename
Bob

setnameBob
returnname

definebobname
setnameBob

definechangethenamenewname
setnamenewname
returnname

defineisnamed
returnname

action
startsample domain
pressbobname
checkis namedBob
enterchangethenameTed

sample column
changethenameisnamed?
BobBob

sample row domain
is named
Bob
Carol

sample calculate domain
thenamechange
BobBob

do
withnewsample domain
changethenameBob
checkisnamedBob

sample setup domain
changethename
Bob
then result is
definebobname
setnameBob

definechangethenamenewname
setnamenewname
returnname

defineisnamed
returnname

action
startsample domain
pressbobname

setnameBob
checkis namedBob

returnname
enterchangethenameTed

setnameTed
returnname

sample column
changethenameisnamed?
Bob

setnameBob
returnname
Bob

returnname

sample row domain
is named
Bob

returnname
Carol missing
Ted surplus

sample calculate domain
thenamechange
BobBob

setnameBob
returnname

do
withnewsample domain
changethename

setnameBob
returnname
Bob
checkisnamedBob

returnname

sample setup domain
changethename
Bob

setnameBob
returnname

© Copyright Syterra Software Inc. All rights reserved.