How do I catch generic fault exceptions in Fitnesse?
Posted
by Dan Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Dan Ryan
Published on 2010-03-09T15:47:04Z
Indexed on
2010/03/11
5:48 UTC
Read the original article
Hit count: 322
fitnesse
Previously within my Fitnesse fixture I was specifying an expected WCF exception using:
exception[FaultException]
Since then I have converted the WCF service to return a strongly typed FaultContract. I am now getting the following failure message:
exception[FaultException`1: "A file with the name DMS Documents/testFileWord.doc already exists. It was last modified by SHAREPOINT\system on 09 Mar 2010 15:36:14 -0000."]
This is not unexpected but how do I check for strongly typed fault exceptions? Please note I cannot include the fault message as part of the check as it contains a date which changes (I check this separately).
© Stack Overflow or respective owner