LinqConnect and NUnit
Posted: Thu 10 Mar 2016 13:12
Hi,
Hope someone can help. I've setup a test project with NUnit with the aim of writing some unit tests for the main project.
I run the main project locally which all works fine and it connects to our Oracle database to pull back data. In my test project I've dropped in web.config from the main project, renaming it to app.config. Debugging shows that it is able to find and pull back the connection string fine.
The bit I'm stuck on because when I run the test to fire off a method in the main project it keeps coming up with 'Can not obtain Oracle client information from registry. Make sure that Oracle Client Software is installed, or use Direct mode of connecting to server.'
I'm lost as to what the test project is lacking, I've tried adding additional references but no luck there either. Any suggestions?
Notes:
Solution is made up of 3 projects, x1 for our main methods, x1 for web GUI, x1 test project. The first two projects work fine, it's just this new test project that isn't playing ball.
Thanks.
Hope someone can help. I've setup a test project with NUnit with the aim of writing some unit tests for the main project.
I run the main project locally which all works fine and it connects to our Oracle database to pull back data. In my test project I've dropped in web.config from the main project, renaming it to app.config. Debugging shows that it is able to find and pull back the connection string fine.
The bit I'm stuck on because when I run the test to fire off a method in the main project it keeps coming up with 'Can not obtain Oracle client information from registry. Make sure that Oracle Client Software is installed, or use Direct mode of connecting to server.'
I'm lost as to what the test project is lacking, I've tried adding additional references but no luck there either. Any suggestions?
Notes:
Solution is made up of 3 projects, x1 for our main methods, x1 for web GUI, x1 test project. The first two projects work fine, it's just this new test project that isn't playing ball.
Thanks.