Corrupted DataSet in C# for failure testing

Posted by dcp on Stack Overflow See other posts from Stack Overflow or by dcp
Published on 2010-03-23T16:07:19Z Indexed on 2010/03/23 16:13 UTC
Read the original article Hit count: 372

Filed under:
|

Does anybody know of a way to create a DataSet such that when I call GetXml() on the DataSet I will get an exception? I'm trying to write some failure testing for this scenario and am having a hard time. Is it possible?

© Stack Overflow or respective owner

Related posts about c#

Related posts about unit-testing