Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools How to test an Synchronse method using Silverlight
3 replies. Latest Post by Jonathan Shen – MSFT on July 7, 2009.
(0)
gauthams...
Member
109 points
118 Posts
07-02-2009 6:39 AM |
Hello,
How to test an ASynchronse method using Silverlight.
and also to fill the value of Private Variable of an class using ASynchronse method .
Thanks in advance.
mchlsync
Star
14606 points
2,730 Posts
07-02-2009 2:56 PM |
Could you please elborate your requirement a bit more details?
Why and what do you want to test? Are you talking about Unit Test?
For example:
var client = new MyServiceClient ();client.GetDataCompleted += (sender, e) => { if(e.Error != null){ //Check the result here // e.Result; }
}
client.GetDataAsync();
07-04-2009 12:45 AM |
Yes, I am talking about unit test:
and the same case I am talking about.
Sir,Can you plz eloborate your explaination with good example.
Thankyou,
I am looking forward to your reply
Jonathan...
All-Star
24939 points
2,425 Posts
07-07-2009 5:02 AM |
Hi Gauthamshetty86,
Please reference to Justin's article here. Also, Jeff Wilcox wrote a great article here.
Best regards,
Jonathan