DataSet XML serializer utility for unit testing

Quite a while ago I wanted to do some unit testing with DataSet’s and DataTable’s as input. In code, there isn’t really an easy way to generate them, especially if you want them to be a realistic subset of the real data in your database.

My solution was to build a program that acted like SQL Server’s Management Studio, but who’s output is a serialized DataSet. The resulting XML can simply be embedded into your unit test project. In your unit test, you simply deserialize the DataSet XML into a DataSet.

DataSet XML Serializer

Is anyone interested in me posting the source code and compiled EXE? I’ll have to clean it up a bit, so I wanted to see if there was enough interest, of if it’s something I’ll just keep using in-house.

Kick It!

2 Comments so far »

  1. Jonathan Wise said,

    Wrote on April 14, 2008 @ 12:33 pm

    I’d be interested in both! I’m always pulling together sample XML datasets for prototyping and testing…

  2. .NET XML DataSet Generator from a SQL Query said,

    Wrote on April 27, 2008 @ 10:01 pm

    [...] As promised, I’ve now made the .NET XML DataSet Generator available on Google Code. [...]

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: