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

story test fixture

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

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

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