This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When trying to use the unit test frameworkthat ships with VS2008 to create a unit test for any method in a project which uses mindscape lightspeed the IDE refuses to add the test and errors out mentioned the there is an assembly referce not resolved which is a reference to Lucene.net
Appreciate your help on below.
Thanks |
|
|
Hi, Unfortunately the built in Microsoft unit testing framework is fairly nieve and will inspect LightSpeed for all the dependencies is may need. This means every provider file that we ship with LightSpeed. If you were to use any other testing framework (nunit for example) it would work fine. The work around for this is to add all the providers as references to your test project. We ship everything that LightSpeed may depend on in the c:\program files\mindscape\LightSpeed\Providers directory. There you will find the lucene DLL, the other database provider dlls etc. If you add the lucene one and attempt the test run you'll see that it will likely fail looking for another assembly (for example, the SQLite one - even if you're not using SQLite). Unfortunately there isn't anything we can do to resolve this issue as it's with Microsoft's testing tool. The only annoyance is you'll need to have references to everything LightSpeed could have required even though your tests will never need them. Keep in mind this is only needed with your test project - not the project you're testing (if I recall correctly from when this issue was first noticed). I hope that helps, John-Daniel Trask |
|