Unit Tests

C

Cam

Hi have a question about unit testing web services. I have created a web
service that has public and private methods.I would like to generate unit
tests but when I generate the unit tests I get a message that says "Web
reference to target project could not be updated. Please make sure the
project builds. You may also need to manually update, or re-add the web
reference to the test project.". I did the following. I have made sure the
project builds without any errors. I updated the web reference. I have spent
a day and half reading out this subject and can't seem to figure it out.

Any help would greatly appreciated.
Cam
 
S

Simon Hart

How are you generating the Web Service proxy from your nUnit project? I will
assume via VS.NET. What happens when you right click the Web Service proxy
dll under the "Web References" folder in VS.NET and choose "Update Web
Reference"?

Simon.
 
C

Cam

Thanks for your reply.
I'm using VS 2005 Team System so I'm not using NUnit. But to answer your
question. Yes I'm generating the proxy via VS.NET. Nothing happens when I
update the Web References. No errors, No Messages. I just have no clue why
it isn't working.

Cam
 
S

Simon Hart

Have you tried using WSDL.exe instead?

Simon.

Cam said:
Thanks for your reply.
I'm using VS 2005 Team System so I'm not using NUnit. But to answer your
question. Yes I'm generating the proxy via VS.NET. Nothing happens when I
update the Web References. No errors, No Messages. I just have no clue why
it isn't working.

Cam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top