Beispiel #1
0
 private void VerifyYieldAfterLast(AsyncEnumerator <int> .AsyncConsumer consumer)
 {
     try
     {
         consumer.YieldAsync(1).AwaitSynchronously();
         Assert.Fail();
     }
     catch (InvalidOperationException)
     { }
 }