Unit Testing WCF Async Calls in VS2010

I have a WCF service with a lot of methods, in excess of 100.  I want to create some unit tests for this service.

I can use the non-async calls and test those, but our app uses the async versions, so the tests are not really as valid as they could be.

However, standard unit testing within VS2010 is for sync tests only, an async test will fail the test before we get the actual results.

I have spent hours searching the web for a simple way to do this, but all async tests seem to be related to Silverlight.  

I have found, and tied the NuGet Async unit tests for Vs2010, but this requires the calling method to return a task, which the standard WCF methods don't.

I find it hard to believe that Microsoft would give such useful methods as WCF, async calls, and unit tests, but then don;t let them work together without writing mountains of code for each test.

Does anyone have a simple way to achieve this?  

Many thanks
LVL 6
townsmaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

townsmaAuthor Commented:
For those in a similar situation, I just found a simple way to do what I need.

http://jason.agostoni.net/2006/07/14/visual-studio-unit-testing-an-asynchronous-event-callback/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.