FitNesse.NET
Exception Keyword Handler
The exception keyword specifies an exception as an expected value.

do

withtypestory test

checktest result
sample domain

usecolumnwithcurrent
messagethrow exception?
oh noexception["oh no"]
oopsexception[ApplicationException]
nullexception[NullReferenceException]
helpexception[ApplicationException: "help"]
OKexception[ApplicationException]
sample domain

usecolumnwithcurrent
messagethrow exception?
oh noexception["oh no"]
oopsexception[ApplicationException]
nullexception[NullReferenceException]
helpexception[ApplicationException: "help"]
OKexception[ApplicationException] expected
no exception actual

checktest result
sample domain

cell handler loader
loadexception keyword handlerfitlibrary

setmessageoh no
checkthrow exceptionexception["oh no"]
sample domain

cell handler loader
loadexception keyword handlerfitlibrary

setmessageoh no
checkthrow exceptionexception["oh no"]
© Copyright 2007,2008 Syterra Software Inc. All rights reserved.