Beispiel #1
0
 public static async Task Wait(this IImageStub image, int timeout = 1000)
 {
     while ((timeout -= 100) > 0)
     {
         if (image.IsLoading)
         {
             await Task.Delay(rnd.Next(100, 200));
         }
         else
         {
             break;
         }
     }
 }
Beispiel #2
0
 public static Task Wait(this IImageStub image, int timeout = 1000) =>
 AssertionExtensions.Wait(() => !image.IsLoading, timeout);