I've inherited a program containing a very large class file of some 6,000 lines of unruly and totally undocumented code. I'm starting the refactoring process by creating unit tests, but I'm having trouble figuring out the best way to quickly create an instance of this class for testing. Tens of thousands of instances are made of this class when the application is launched, but instantiating it by hand isn't really practical since it has hundreds of attributes and the way that these instances are being constructed is not at all transparent to me. Is there a way I can grab an instance of the class in Visual Studio during debugging to somehow put it in a unit test?
I played around with using this Object Exporter extension, but making this very large and complicated class serializable/deserializable is proving to be it's own can of worms. Are there any other suggestions people have for quickly getting started with unit testing an enormous class file?