Unit Testing and Subsonic
OK well the 2 are only ever so slightly related but it annoyed me enough that now that i have found the answer i feel i need to share it with all that might need the help.
Basically i have the version of visual studio that allows you to generate unit tests from your code automatically , while this is all cool and interesting not to mention time saving, it never ever worked for me.
Now i have been trying to get this working for a while because manually writing unit tests can become quite time consuming , especially if you have a nice backlog of stuff that need to be tested. For the most part studio got it all right generating a project for me and allowing me to select my language of choice , but when ever it got to the part where i had to select my project that i want to generate code for , it would pop up with a error about a unresolved DLL (MySQL.Data 5.0.*) which was in the correct folder and was referenced in my project correctly. What initially threw me off was the fact that i was able to compile and build my application yet i could not create the test automatically and they both referenced the same DLL.
Then in a moment of clarity it hit me , the DLL had not been added to the Gac . So a few dos commands later and voila i can now generate Unit Test Automatically :) .
Not sure how many people will find this useful but you never know.
~stalkerh
3 Comments to “Unit Testing and Subsonic”
Leave a Reply








nice one mate, I was too lazy to actually find a solution to it but this makes a lot of sense!
you should also consider enabling anonymous comments ;)
I would if only i knew how :( , goes to search through the options
let me know if you find it and I’ll help you out man :)