Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7950527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:18:03+00:00 2026-06-04T02:18:03+00:00

I am writing Silverlight tests that rely on data loaded at the start of

  • 0

I am writing Silverlight tests that rely on data loaded at the start of the test, something like this:

string[] testVectors = new string[20];
EnqueueCallback( Load some data );
EnqueueConditional( Wait for loading of data to finish );
EnqueueCallback( Populate testVectors using the loaded data );

Next I want to enqueue more callbacks and conditions using the test vectors. But how do I loop?????

I can’t do this:

for(int iTest=0; iTest<20; iTest++ )
{
   EnqueueConditional( Run test for testVector[iTest] );
   EnqueueConditional( Wait for test to finish );
}

…because the test vector strings do not exists when the for loop runs.

Any ideas?

Thanks for reading!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:18:05+00:00Added an answer on June 4, 2026 at 2:18 am

    All you want to do is queue another action to execute later, it just happens that this action includes queueing some more dependent actions.

    What you can do is enqueue a callback which nests the remainder of your test, either directly or by chaining to another method.

    EnqueueCallback(...);
    ...
    EnqueueCallback(() => 
    {
        for(int iTest=0; iTest<20; iTest++ )
        {
            EnqueueConditional( ... );
        }
    });
    

    Just probably don’t want to then put anything un-nested below the nested callback – it can be executed/queued before the nested things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a silverlight application that resembles a shopping cart system. This app can
I am writing a Silverlight application that will be both reading and writing data
I would like to log output test data when running test with the Silverlight
I am writing Silverlight UI test automation using this article as a guide: http://msmvps.com/blogs/theproblemsolver/archive/2009/01/26/unit-testing-in-silverlight-part-4-the-ui.aspx
I have been writing unit tests using NUnit and Moq with my Silverlight code
During a Mix10 presentation , the presenter (Charlie Kindel) said that when writing Silverlight
In a Silverlight application, instead of consuming and writing (wcf) wrappers around messages that
I am currently writing a Silverlight application that will view documents. The main panel
I'm writing a Silverlight 4 application and would like to check when opening the
I'm trying to build a Silverlight App that accesses and presents data from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.