Skip to main content

Microsoft Silverlight

Answered Question How to test an Synchronse method using SilverlightRSS Feed

(0)

gauthamshetty86
gauthams...

Member

Member

109 points

118 Posts

How to test an Synchronse method using Silverlight

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
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: How to test an Synchronse method using Silverlight

Hello,

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();

 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


gauthamshetty86
gauthams...

Member

Member

109 points

118 Posts

Re: Re: How to test an Synchronse method using Silverlight

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 Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft
Answered Question

Re: Re: How to test an Synchronse method using Silverlight

Hi Gauthamshetty86,

Please reference to Justin's article here.  Also, Jeff Wilcox wrote a great article here.

Best regards,

Jonathan

 

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities