Is it possible to write effective unit tests for unstructured code?
I was reading through the various answers to this question. It explains the implications of unit testing procedural and OOP code, but there is very little mention about unstructured code.
In my personal experience, I've only written unit tests for functions and class methods. I imagine that it would be difficult indeed to test unstructured code, but I'm also curious to know if it's possible, and what the best practices are for unit testing such code.