views:

76

answers:

0

The Silverlight Unit test Framework defines a process for dealing with Async calls (derive test class from Microsoft.Silverlight.Testing.SilverlightTest, add Asynchronous attribute, use EnqueueXXX methods.) Considering the separation that SpecFlow presents between the test class and the steps:

  • Can these tools be brought to bear to wait on Silverlight method calls within the test that behave asynchronously (such as making web service calls)?
  • If they cannot, what is the guidance for handling this behavior in SpecFlow test files? (Perhaps use an AutoResetEvent that gets tripped in an event handler and wait on it?)